piekuns1 Posted June 3, 2007 Report Share Posted June 3, 2007 Labi uzrakstīšu vēlreiz ~~ jau kāda cita minēto pirms kāda laika! Kompresācijas skripts <? function zipcompressfile($source,$destination,$filename,$level=false) { $dest=$destination.$filename.'.zip'; $mode='wb'.$level; $error=false; echo $source.$filename.' -> '.$dest.'<br>'; 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 = 'D:/AppServ/www/recorded_demos/'; // Folder with .dem files $dl_dir = 'D:/AppServ/www/compressed_demos/'; // 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); } ?> Apskatīšanas skripts <?php if ($handle = opendir('D:/AppServ/www/compressed_demos/')) { 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://yourweb.com/compressed_demos/$file\">Download</a></br></center>"; } } closedir($handle); } ?> <span style='font-size:14pt;line-height:100%'> Lai ierakstitu demo tavaa www folderii mapee demo!!!</span> <span style='font-size:13pt;line-height:100%'>Atver hltv.cfg un pieraksti:</span> record "../../AppServ/www/demo/demo_nosaukums" connect "hustle.no-ip.info" Tas laikam bija viss! Un kur sitie abi skripti ir jaieleik? Link to comment Share on other sites More sharing options...
eM` Posted June 3, 2007 Report Share Posted June 3, 2007 Izveido .php failus un iekope abus kodus katru sava. Viens ir Viewdemo otrs kompresacijas scripts. Link to comment Share on other sites More sharing options...
piekuns1 Posted June 3, 2007 Report Share Posted June 3, 2007 (edited) Viens ir Viewdemo otrs kompresacijas scripts. To es sapratu bet ka izveidot php failu un kur tie faili ir jaiemet!? Un ka vinjus nosaukt? Edited June 3, 2007 by piekuns1 Link to comment Share on other sites More sharing options...
Bertuliinii Posted June 3, 2007 Report Share Posted June 3, 2007 Es visu pareizi izdariiju tikai kad ieeju ieksaa tajaa viewdemo.php man raadas kautkads " ... : Download" Tam taa jabuut? Link to comment Share on other sites More sharing options...
lolzo Posted June 22, 2007 Report Share Posted June 22, 2007 (edited) Kāpēc rāda šo - !Warning! DemoFile::StartRecording: coudn't open demo file C:/AppServ/www/demo/cw-0610262354-de_dust2.dem ============================ Vislaik to rādā! Kāpēc ? Sāvāk nekas neiet! Paskaidrojiet lūdzu :] Edited June 22, 2007 by lolzo Link to comment Share on other sites More sharing options...
piekuns1 Posted June 27, 2007 Report Share Posted June 27, 2007 kro4e serveris stav uz cita datora un es meginu ierakstit to: * record "../../AppServ/www/demo/demo_nosaukums" * connect "ip" bet man taja demo mape nekas nesaglabajas! Link to comment Share on other sites More sharing options...
GuskiS Posted June 27, 2007 Report Share Posted June 27, 2007 tev jabut shadi: record "../../../../../AppServ/www/demo/" un conect megini ar portu ari 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 man tas pac kas keka help ludzu Link to comment Share on other sites More sharing options...
GuskiS Posted July 2, 2007 Report Share Posted July 2, 2007 ka jus ierakstijat record? Link to comment Share on other sites More sharing options...
keka Posted July 2, 2007 Report Share Posted July 2, 2007 // 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" // 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. connect "cs-haoss.hopto.org:27015" name "HLTV" record "../../../../../AppServ/www/demo/" Link to comment Share on other sites More sharing options...
niklawz Posted September 4, 2007 Report Share Posted September 4, 2007 kā var uzlikt lai hltv ieslēdzas startapā kad ieslēdzas WIN.. un kā var minimizēt hltv, lai būtu pie pūlksteņa... ? Link to comment Share on other sites More sharing options...
*jancis38* Posted September 4, 2007 Report Share Posted September 4, 2007 lai samazinātu pie pulksteņa, izmanto programmu Tray It! kuru vari novilkt sameklējot google. lai startētu HLTV kad ieslēdzas PC, iemet hltv.exe shortcatu iekš Startup. Link to comment Share on other sites More sharing options...
niklawz Posted September 4, 2007 Report Share Posted September 4, 2007 lai startētu HLTV kad ieslēdzas PC, iemet hltv.exe shortcatu iekš Startup. kā var iemest startup ? zinu ka noņemt var ierakstot "msconfig" @ run. bet pielikt startapam ? Link to comment Share on other sites More sharing options...
*jancis38* Posted September 4, 2007 Report Share Posted September 4, 2007 C:\Documents and Settings\All Users\Start Menu\Programs\Startup Link to comment Share on other sites More sharing options...
php><php Posted September 7, 2007 Report Share Posted September 7, 2007 nja vis ir ideāli , bet ka uztaisīt kad Kompresācijas skripts automātiski visu izdara ? ? ? ? ? ? ? Link to comment Share on other sites More sharing options...
naziic Posted September 8, 2007 Report Share Posted September 8, 2007 lieto scheduled tasks iekš control panel, ja tomēr lieto linux, tad atkal emerge cron Link to comment Share on other sites More sharing options...
Platinum Posted October 21, 2007 Report Share Posted October 21, 2007 taa ari konkretu uz atbildi nevarejsu atrast! viss ir izdarits pareizi ! www/demo <- ir izveidota , bet sledazot ieksaa HLTV radas tas - !Warning! DemoFile::StartRecording: coudn't open demo file C:/AppServ/www/demo/kanlcan-0610262354-de_dust.dem. Tiesi noradiet konkreti ka sjadara! Link to comment Share on other sites More sharing options...
*jancis38* Posted October 21, 2007 Report Share Posted October 21, 2007 ieksaties manā pamācībā, kā record tur ir ierakstīts, un uzraksti tā sew. Link to comment Share on other sites More sharing options...
the. EwiL Posted February 4, 2008 Report Share Posted February 4, 2008 Labi uzrakstīšu vēlreiz ~~ jau kāda cita minēto pirms kāda laika! Kompresācijas skripts <? ? ?function zipcompressfile($source,$destination,$filename,$level=false) ? ?{ ? ? ? ?$dest=$destination.$filename.'.zip'; ? ? ? ?$mode='wb'.$level; ? ? ? ?$error=false; ? ? ? ? ? ?echo $source.$filename.' -> '.$dest.'<br>'; ? ? ? ?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 = 'D:/AppServ/www/recorded_demos/'; // Folder with .dem files ? $dl_dir = 'D:/AppServ/www/compressed_demos/'; // 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); ? ? ? ? } ?> Apskatīšanas skripts <?php if ($handle = opendir('D:/AppServ/www/compressed_demos/')) { 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://yourweb.com/compressed_demos/$file\">Download</a></br></center>"; } } closedir($handle); } ?> <span style='font-size:14pt;line-height:100%'> Lai ierakstitu demo tavaa www folderii mapee demo!!!</span> <span style='font-size:13pt;line-height:100%'>Atver hltv.cfg un pieraksti:</span> record "../../AppServ/www/demo/demo_nosaukums" connect "hustle.no-ip.info" Tas laikam bija viss! a kur tie codi jaliek? Link to comment Share on other sites More sharing options...
sLIDe Posted February 4, 2008 Report Share Posted February 4, 2008 .php failos Link to comment Share on other sites More sharing options...
DoubleT Posted December 5, 2008 Report Share Posted December 5, 2008 (edited) mazliet pamainīju kodu un viss izdevās. Edited December 5, 2008 by DoubleT Link to comment Share on other sites More sharing options...
liiu Posted November 3, 2009 Report Share Posted November 3, 2009 Labi uzrakstīšu vēlreiz ~~ jau kāda cita minēto pirms kāda laika! Kompresācijas skripts <? ? ?function zipcompressfile($source,$destination,$filename,$level=false) ? ?{ ? ? ? ?$dest=$destination.$filename.'.zip'; ? ? ? ?$mode='wb'.$level; ? ? ? ?$error=false; ? ? ? ? ? ?echo $source.$filename.' -> '.$dest.'<br>'; ? ? ? ?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 = 'D:/AppServ/www/recorded_demos/'; // Folder with .dem files ? $dl_dir = 'D:/AppServ/www/compressed_demos/'; // 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); ? ? ? ? } ?> Apskatīšanas skripts <?php if ($handle = opendir('D:/AppServ/www/compressed_demos/')) { 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://yourweb.com/compressed_demos/$file\">Download</a></br></center>"; } } closedir($handle); } ?> <span style='font-size:14pt;line-height:100%'> Lai ierakstitu demo tavaa www folderii mapee demo!!!</span> <span style='font-size:13pt;line-height:100%'>Atver hltv.cfg un pieraksti:</span> record "../../AppServ/www/demo/demo_nosaukums" connect "hustle.no-ip.info" Tas laikam bija viss! Kur siet scripti ir jaraksta Zinu ka stulbs jautaajums , bet tik un ta ! Link to comment Share on other sites More sharing options...
ry. Posted November 3, 2009 Report Share Posted November 3, 2009 .php failos! Link to comment Share on other sites More sharing options...
Recommended Posts