[TUT]How to make hltv demos in your website

View previous topic View next topic Go down

[TUT]How to make hltv demos in your website

Post by Gest3r on 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.topicboard.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.topicboard.net/%5C]Novilkt[/url]
";

}

}

closedir($handle);

}

?>


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

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

View user profile http://tuts.topicboard.net

Back to top Go down

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

Post by Tarpins on 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
avatar
Tarpins
Administrator
Administrator

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

View user profile http://Chill-strike.oo.lv

Back to top Go down

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

Post by Lecter on 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

_________________
avatar
Lecter
Administrator
Administrator

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

View user profile http://tuts.whizkris.com

Back to top Go down

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

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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