Would you like to react to this message? Create an account in a few clicks or log in to continue.

[TUT]How to make hltv demos in your website

3 posters

Go down

[TUT]How to make hltv demos in your website Empty [TUT]How to make hltv demos in your website

Post by Gest3r Sun Mar 23, 2008 7:53 pm

Go to x:/yourserver/hltv.cfg and write


connect "IP:PORT"

name "HLTV NAME"

record "Link where your dem files will be saved "C:/appserv/www/demo/"



Go to ..www/demo/ make index.php and zip.php
files


Index.php code


Code: Copy this in index.php


Code:

Code:
<table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"><tr><td class="code" align="left">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 " $day.$month.$year     
      $hour:$minute   
        $name   
     

[url=http://tuts.forumotion.net/%5C]Novilkt[/url]
";

}

}

closedir($handle);

}

?>

</td>   </tr></table>




demo.php code

Code: Copy in demo.php file



Code:

Code:
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 " $day.$month.$year   
        $hour:$minute 
          $name 
       

[url=http://tuts.forumotion.net/%5C]Novilkt[/url]
";

}

}

closedir($handle);

}

?>


And web link will be http://yourip/demo
Gest3r
Gest3r
Administrator
Administrator

Number of posts : 21
Age : 30
Location : Latvija/Olaine
Registration date : 2008-03-22

https://tuts.forumotion.net

Back to top Go down

[TUT]How to make hltv demos in your website Empty Re: [TUT]How to make hltv demos in your website

Post by Tarpins Mon Oct 27, 2008 12:10 pm

ja un ko darit ja man ir ucoz ka piemeram mans web sis ( http://chill-strike.oo.lv/ padoma ari par ucoz Very Happy
Tarpins
Tarpins
Administrator
Administrator

Number of posts : 88
Age : 30
Location : Latvia , Riga
Registration date : 2008-10-19

http://Chill-strike.oo.lv

Back to top Go down

[TUT]How to make hltv demos in your website Empty Re: [TUT]How to make hltv demos in your website

Post by Lecter Mon Oct 27, 2008 12:21 pm

vienīgā iespēja iefreimot lapu, ko tu izveido uz sava serverdatora ukozā, ņemot vērā, ka ucoz nenodarbojas ar failu uzglabāšanu... papēti googli, tur par visām iframe funkcijām rakstīts
http://www.w3schools.com/TAGS/tag_iframe.asp
Lecter
Lecter
Administrator
Administrator

Number of posts : 89
Location : Latvia; Riga
Registration date : 2008-03-21

http://tuts.whizkris.com

Back to top Go down

[TUT]How to make hltv demos in your website Empty Re: [TUT]How to make hltv demos in your website

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum