jancis38 Posted March 17, 2007 Report Share Posted March 17, 2007 (edited) Šī pamācība ir domāta, lai HLTV *.dem failus var novilkt no tavas web lapeles. Tātad.. Ejam uz savu CS direktoriju.. Atveram vaļā failu hltv.cfg Ierakstām: connect "tava servera IP" name "HLTV vārds" record "../../../../../Web/www/demo/" PS. Ja jums nav šāda direktorija tad nomainām to, bet folderi demo atstājam, velāk varēsi pats izlabot! hltv.cfg failu veram ciet un saglabājam! Tālak ej uz sawu www mapīti. Uztaisam folderi ar nosaukumu "demo" Palaižam "hltv.exe" kurš atrodas tajā paša vietā kur hltv.cfg Ja vis izdodās un parādas uzraksts ka *.dem fails rakstās, tad hltv.exe konsolē ierakstām stop. Tad atkal ejam uz www mapīti, kur būs jūsu uztaisītais "demo" folderis, atveram viņu, un pārbaudam vai *.dem fails tur ir, ja ir tad vis ir chikiniekā. Pēctam uztaisat failu "demo.php" Kurā ierakstiet sekojošo: <?php if ($handle = opendir('C:/Web/www/demo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { $gabali = explode("-", $file); $date = $gabali[1]; $mape = $gabali[2]; $mapesgabali = explode(".", $mape); $name = $mapesgabali[0]; $year = substr($date,0,2); $month = substr($date,2,2); $day = substr($date,4,2); $hour = substr($date,6,2); $minute = substr($date,8,2); echo "<center> $day.$month.$year $hour:$minute $name <a href=\"demo/$file\">Novilkt</a></br></center>"; } } closedir($handle); } ?> Veram ciet un saglabājam! Tad ejam uz šejieni, un pārbaudam, vai ir iespējams novilkt, *.dem failu, ja visu izdarījāt pareizi, tad visam vajadzētu iet! Noteikti esam ievērojuši ka iskats ir šausmīgi biedējoš! Tāpēc šo te kodu: <?php if ($handle = opendir('C:/Web/www/demo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { $gabali = explode("-", $file); $date = $gabali[1]; $mape = $gabali[2]; $mapesgabali = explode(".", $mape); $name = $mapesgabali[0]; $year = substr($date,0,2); $month = substr($date,2,2); $day = substr($date,4,2); $hour = substr($date,6,2); $minute = substr($date,8,2); echo "<center> $day.$month.$year $hour:$minute $name <a href=\"demo/$file\">Novilkt</a></br></center>"; } } closedir($handle); } ?> ierakstām savā "index.php" vai kādā citā *.php failā! Tas nu takā būtu vis! P.S. Ja kkas nesanāk tad ejam uz šejieni P.P.S Ja ir kkādas problēmas tad rakstat! ? jancis38 // All rights reserved. Edited March 17, 2007 by jancis38 Link to comment Share on other sites More sharing options...
NaGe Posted March 17, 2007 Report Share Posted March 17, 2007 beidzot kaads apnemies uzrakstiit labu pamacibu.... Link to comment Share on other sites More sharing options...
Propeleritis Posted March 17, 2007 Report Share Posted March 17, 2007 Pilnigi piekritu malacis puika Link to comment Share on other sites More sharing options...
jancis38 Posted March 17, 2007 Author Report Share Posted March 17, 2007 (edited) Izdomāju uztrakstīt, jo pašam šitādā veidā baigi labi sanāca! Tagad gudroju, kā lai uztaisi dienas bildes skriptu, bet nekas nesanāk baigi grbias webā! Edited March 17, 2007 by jancis38 Link to comment Share on other sites More sharing options...
Domino Posted March 17, 2007 Report Share Posted March 17, 2007 a var kautka to fii4u uztaisit kad nu piemeram uz kkadu times.lv vai kko citu visu sataisa un viss lai iet es zinu ka times vieta nebuus bet sitads butu pietiekams SendOver File Size Limit: 2GB Download Limit: Unlimited File Life: 7 Days (Deleted only if there is no download activity in 7 days) Link to comment Share on other sites More sharing options...
jancis38 Posted March 17, 2007 Author Report Share Posted March 17, 2007 a var kautka to fii4u uztaisit kad nu piemeram uz kkadu times.lv vai kko citu visu sataisa un viss lai iet es zinu ka times vieta nebuus bet sitads butu pietiekams SendOver File Size Limit: 2GB Download Limit: Unlimited File Life: 7 Days (Deleted only if there is no download activity in 7 days) Var mēģināt, bet baigi jačakarejas! :/ Un šitādā veidā ieksh times.lv man liekas ka nevar. Link to comment Share on other sites More sharing options...
novijas Posted March 19, 2007 Report Share Posted March 19, 2007 (edited) a kur tiesi connect "tava servera IP" name "HLTV vārds" record "../../../../../Web/www/demo/" sitais jaaraksta???? mans hltv.cfg izskataas saadi // HLTV Proxy configuration file // HLTV proxy runs this file on start up // This file should only be edited if you want to broadcast a game // set HLTV proxy name as shown in score board name "HLTV Proxy" // set HLTV name, how it should appear in game server browsers // hostname "My HLTV Proxy" // set offline info text clients will see as reject reason if HLTV isn't broadcasting yet offlinetext "Sorry, game is delayed. Please try again later." // delays broadcasting for 30 seconds delay 30.0 // allow 3.5 KByte/sec as client rate. This is good a value // for internet broadcasts. On LAN you may set this value to 10000 maxrate 3500 // log HLTV console in proxy.log // logfile 1 // local chatting for HLTV spectators enabled chatmode 1 // if game server is password protected, enable this line // serverpassword "mypassword" // proxy's adim password for rcon, commentator etc. // adminpassword "mypassword" // show message for 5 seconds each 60 seconds in center of X axis (-1) and // above help text bar (0.85). Color given as hexadecimal RGBA . loopcmd 1 60 localmsg "You're watching HLTV. Visit www.valvesoftware.com" 5 -1 0.85 FFA000FF // hltv.tga will be shown instead of the default HLTV logo in spectator GUI // bannerfile "hltv.tga" // these commands will be executed on connecting spectator client and may be used // to adjust settings for HLTV (for example voice parameters) signoncommands "voice_scale 2; voice_overdrive 16; volume 0.5; echo Voice adjusted for HLTV" echo hltv.cfg loaded. Edited March 19, 2007 by novijas Link to comment Share on other sites More sharing options...
Reecall Posted March 19, 2007 Report Share Posted March 19, 2007 a kur tiesi connect "tava servera IP" name "HLTV vārds" record "../../../../../Web/www/demo/" sitais jaaraksta???? tik apdāvinātiem kā tev to nesaprast Link to comment Share on other sites More sharing options...
Chakijzz Posted March 22, 2007 Report Share Posted March 22, 2007 (edited) Kkas tas tāds? Kā tos skriptus ielikt? Edited March 22, 2007 by Chakijzz Link to comment Share on other sites More sharing options...
de.Fault Posted March 22, 2007 Report Share Posted March 22, 2007 kāda jēga taisīt pamācību, ja @ php esi nulle un tie skripteļi nav tevis rakstīti? Link to comment Share on other sites More sharing options...
jonass Posted March 22, 2007 Report Share Posted March 22, 2007 kāda jēga taisīt pamācību, ja @ php esi nulle un tie skripteļi nav tevis rakstīti? Varbūt tāpēc ka daudzi to nezin un tā ir noderīga lieta, bet ko es te runāju, stulba ideja. Link to comment Share on other sites More sharing options...
efekts123 Posted March 22, 2007 Report Share Posted March 22, 2007 kāda jēga taisīt pamācību, ja @ php esi nulle un tie skripteļi nav tevis rakstīti? Shis ownzzzzzz plds par pamaaciibu !!!!! Link to comment Share on other sites More sharing options...
Chakijzz Posted March 23, 2007 Report Share Posted March 23, 2007 Bet kā var uzlikt lai demku secība būtu nevis no augšas uz leju, bet no lejas uz augšu? Ato kad iet iekšā vajag šķirt uz pašu leju (nu tagad tā nav jo nav tik daudz demkas, bet tā būs) Link to comment Share on other sites More sharing options...
jancis38 Posted March 24, 2007 Author Report Share Posted March 24, 2007 (edited) ? lai sazipojas: <?php if ($handle = opendir('C:/Web/www/demo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { $gabali = explode("-", $file); $date = $gabali[1]; $mape = $gabali[2]; $mapesgabali = explode(".", $mape); $name = $mapesgabali[0]; $year = substr($date,0,2); $month = substr($date,2,2); $day = substr($date,4,2); $hour = substr($date,6,2); $minute = substr($date,8,2); echo "<center> $day.$month.$year $hour:$minute $name <a href=\"demo/$file\">Novilkt</a></br></center>"; } } closedir($handle); } ?> <?php function zipcompressfile($source,$destination,$filename,$level=false) { $dest=$destination.$filename.'.zip'; $mode='wb'.$level; $error=false; if($fp_out=gzopen($dest,$mode)) { if($fp_in=fopen($source.$filename,'rb')) { while(!feof($fp_in)) { gzwrite($fp_out,fread($fp_in,1024*512)); } fclose($fp_in); } else { $error=true; } gzclose($fp_out); } else $error=true; if($error) return false; else return $dest; } $demo_dir = 'C:/Web/www/demo2/'; // Folder with .dem files $dl_dir = 'C:/Web/www/demo/'; // Folder, where to put compressed files $handle = opendir($demo_dir); if ($handle) { while (false !== ($fails = readdir($handle))) { if ( preg_match("/(.*).dem/", $fails, $demo) ) { zipcompressfile($demo_dir, $dl_dir, $fails); } } closedir($handle); } ?> ? Apmainam hltc.cfg uz šito: connect "tava servera IP" name "HLTV vārds" record "../../../../../Web/www/demo2/" ? Iekš www mapītē uztaisam jaunu mapīti demo2 Tad pārbaudām, vai *.dem faili rakstās iekš folderī demo2, ja vis ir kārtībā, tad ejam uz savu HLTV Demo sadaļu, un ja visu izdarījāt pareizi, tad turpmākie dem faili būs iekš *.zip Edited March 24, 2007 by jancis38 Link to comment Share on other sites More sharing options...
Chakijzz Posted March 25, 2007 Report Share Posted March 25, 2007 ? lai sazipojas: ? Apmainam hltc.cfg uz šito: ? Iekš www mapītē uztaisam jaunu mapīti demo2 Tad pārbaudām, vai *.dem faili rakstās iekš folderī demo2, ja vis ir kārtībā, tad ejam uz savu HLTV Demo sadaļu, un ja visu izdarījāt pareizi, tad turpmākie dem faili būs iekš *.zip Kad es spiežu Novilkt, man ieet tajā pašā lapā, bet palielinās par vienu demo, nu nemāku to paskaidrot, screen zemāk. Link to comment Share on other sites More sharing options...
jancis38 Posted March 25, 2007 Author Report Share Posted March 25, 2007 hvz. man itkā vis strādā, tad izmanto to kas nesazipojas, tas strādā ideāli! Link to comment Share on other sites More sharing options...
Chakijzz Posted March 27, 2007 Report Share Posted March 27, 2007 (edited) A kur tas jāraksta par to sazipošanu? Tajā demo.php vai index.php demo mapē, vai uztaisīt jaunu .php failu demo2 mapē? Edited March 27, 2007 by Chakijzz Link to comment Share on other sites More sharing options...
WhY Posted May 29, 2007 Report Share Posted May 29, 2007 Ka jaraksta lai man HLTV raksta no C:/lollol/pubs/, uz D:/prgoram files/... ??? Link to comment Share on other sites More sharing options...
ashais13 Posted May 30, 2007 Report Share Posted May 30, 2007 (edited) Man viss iet šeit es rakstiju šādi <?php if ($handle = opendir('C:/wamp/www/demo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { $gabali = explode("-", $file); $date = $gabali[1]; $mape = $gabali[2]; $mapesgabali = explode(".", $mape); $name = $mapesgabali[0]; $year = substr($date,0,2); $month = substr($date,2,2); $day = substr($date,4,2); $hour = substr($date,6,2); $minute = substr($date,8,2); echo "<center> $day.$month.$year $hour:$minute $name <a href=\"http://manaadrese/demo/$file\">Novilkt</a></br></center>"; } } closedir($handle); } ?> newis šadi <?php if ($handle = opendir('C:/Web/www/demo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { $gabali = explode("-", $file); $date = $gabali[1]; $mape = $gabali[2]; $mapesgabali = explode(".", $mape); $name = $mapesgabali[0]; $year = substr($date,0,2); $month = substr($date,2,2); $day = substr($date,4,2); $hour = substr($date,6,2); $minute = substr($date,8,2); echo "<center> $day.$month.$year $hour:$minute $name <a href=\"demo/$file\">Novilkt</a></br></center>"; } } closedir($handle); } ?> Un man viss ir ok!! Edited May 30, 2007 by ashais13 Link to comment Share on other sites More sharing options...
overmind Posted May 31, 2007 Report Share Posted May 31, 2007 Sazipošanas skripts nav obligāti jāliek kopā ar to indeksēšanas skriptu. tas tikai nogruza lapu. Nokačā šote. Izdari kā bildītēs. Link to comment Share on other sites More sharing options...
loxinjsh Posted July 1, 2007 Report Share Posted July 1, 2007 A kapeec man nerakstaas tajaa demo mapiitee tas fails?? Un tur ir rakstiits ka nevar atveert kkaadu director.cfg Plz help Link to comment Share on other sites More sharing options...
keka Posted July 2, 2007 Report Share Posted July 2, 2007 Es gribeju uzprasīt kapēc man nevar novilkt tos Demo??? http://cs-haoss.hopto.org/demo/demo un kad es piemeram kadu velku tad vienkārši aiziet tā http://cs-haoss.hopto.org/demo/demo/demo/demo utt. Kapēc Tā? Link to comment Share on other sites More sharing options...
Gest3r Posted July 2, 2007 Report Share Posted July 2, 2007 keka man tada pate problema help ludzu Link to comment Share on other sites More sharing options...
GuskiS Posted July 2, 2007 Report Share Posted July 2, 2007 demo mapiitee tas fails?? Un tur ir rakstiits ka nevar atveert kkaadu director.cfg Plz help man ta liekas uztaisi www mape demo mapi un tad shito ieraksti hltv.cfg: record "../../../../../AppServ/www/demo/" un tad vis strada Link to comment Share on other sites More sharing options...
ChiganS Posted August 25, 2007 Report Share Posted August 25, 2007 Es gribēju pajautāt...vai var izdarīt lai būtu pieejams download skaits...nu tipa cik reizes ir nowilkts,,, ?? Var kāds tad plz biki pilveiktot to otro skriptu ? Link to comment Share on other sites More sharing options...
Recommended Posts