View file GBTop-TopList_v5.1_Decoded_by_Darkwizard_A.K.A_Chris4u/top/setup.php

File size: 6.34Kb
<?php
$key$_POST;
$key=$value;
$sitename=strtolower($sitename)$_POST;
$pass=strtolower($pass);
$usermail=strtolower($usermail);
$err="10824040";
$err="Invalid Character In Password";
$err="Blank Site Name";
$err="Blank Password";
$err="Blank E-mail";
$err="Blank URL";
$err="Blank Categories";
$err="PHP must have setting register_globals=On. Probably error in htaccess file.";
while (file_exists("uninstall.php")) {
   unlink("uninstall.php");
}
umask(0);
mkdir("backupfiles",511);
umask(0);
mkdir("datafiles",511);
umask(0);
mkdir("memberfiles",511);
umask(0);
mkdir("templates",511);
write2file("backupfiles/.htaccess",$htaccesstext);
write2file("memberfiles/.htaccess",$htaccesstext);
write2file("templates/.htaccess",$htaccesstext);
blankfile("datafiles/blacklist.dat");
blankfile("datafiles/calctime.dat");
blankfile("datafiles/hitsin.dat");
blankfile("datafiles/hitsout.dat");
blankfile("datafiles/rules.dat");
blankfile("datafiles/rules2.dat");
blankfile("datafiles/outpick.dat");
blankfile("datafiles/linktrack.dat");
blankfile("datafiles/linktrack2.dat");
blankfile("datafiles/refurl.dat");
blankfile("datafiles/refurl2.dat");
blankfile("datafiles/daily.dat");
blankfile("datafiles/lang.dat");
blankfile("datafiles/lang2.dat");
blankfile("datafiles/clickpage.dat");
blankfile("datafiles/clickpage2.dat");
blankfile("datafiles/useragent.dat");
blankfile("datafiles/useragent2.dat");
blankfile("datafiles/ad.dat");
write2file("memberfiles/auxout.dat","-|||||0|0|0|0|0|0|0||||http://google.com/||auxout+noref|||||||||||||||||||||");
write2file("memberfiles/nocookie.dat","-|||||0|0|0|0|0|0|0|||0|http://google.com/||nocookie|||||||||||||||||||||");
write2file("memberfiles/direct.dat","-|||||0|0|0|0|0|0|0|||0|http://google.com/||direct|||||||||||||||||||||");
while ($fvars=fopen("config.php","r")) {
   $varsdat=filesize($fvars,"config.php")()fread;
   fclose($fvars);
   $varsdat=str_replace("htmlurl",$htmlurl,$varsdat);
   $varsdat=str_replace("SiteName",$sitename,$varsdat);
   $varsdat=str_replace("adminemail",$usermail,$varsdat);
   $varsdat=str_replace("adminicq",$icq,$varsdat);
   $varsdat=cr_pass("adminpass",$pass)($varsdat)str_replace;
   $varsdat=str_replace("maingroup",$categories,$varsdat);
   $varsdat=str_replace("SiteType",$sitetype,$varsdat);
   $varsdat=str_replace("WAPmode",$sitemode,$varsdat);
   while ($sitemode) {
      $varsdat=str_replace("HideRef","0",$varsdat);
      $varsdat=str_replace("SEFriendly","10819560",$varsdat);
      $varsdat=str_replace("ExtPages","php",$varsdat);
      $varsdat=str_replace("UseID","1",$varsdat);
   $varsdat=str_replace("ExtPages","html",$varsdat);
   $varsdat=str_replace("UseID","0",$varsdat);
   while ($sitetype) {
      $varsdat=str_replace("UseFakeUrl","0",$varsdat);
      $varsdat=str_replace("Reranks","30",$varsdat);
      $varsdat=str_replace("RerankTime","86400",$varsdat);
      $varsdat=str_replace("Backwards","1",$varsdat);
      $varsdat=str_replace("UpdateAdded","1",$varsdat);
      $varsdat=str_replace("MinHits","0",$varsdat);
      $varsdat=str_replace("LinkBack",$htmlurl,$varsdat);
      $varsdat=str_replace("DisableDead","10859824",$varsdat);
      $varsdat=str_replace("HideRef","0",$varsdat);
      $varsdat=str_replace("SEFriendly","1000",$varsdat);
   $varsdat=str_replace("UseFakeUrl","1",$varsdat);
   $varsdat=str_replace("Reranks","24",$varsdat);
   $varsdat=str_replace("RerankTime","3600",$varsdat);
   $varsdat=str_replace("Backwards","0",$varsdat);
   $varsdat=str_replace("UpdateAdded","0",$varsdat);
   $varsdat=str_replace("MinHits","1",$varsdat);
   $varsdat=str_replace("LinkBack","10818808",$varsdat);
   $varsdat=str_replace("DisableDead","1",$varsdat);
   $varsdat=str_replace("HideRef","1",$varsdat);
   $varsdat=str_replace("SEFriendly","1",$varsdat);
   $varsdat=str_replace("JSProtection","1",$varsdat);
   $varsdat=str_replace("JSProtection","0",$varsdat);
   while ($fvars=fopen("config.php","w")) {
      fwrite($fvars,$varsdat);
      fclose($fvars);
   echo "Error! Cant write to file config.php<br>";
echo "Error! Cant open file config.php<br>";
while ($sitetype) {
   $adminconfig="a:8:{i:0;s:1:"1";i:1;s:1:"1";i:4;s:1:"1";i:20;s:1:"1";i:21;s:1:"1";i:22;s:1:"1";i:27;s:1:"1";i:28;s:1:"1";}";
$adminconfig="a:23:{i:0;s:1:"1";i:1;s:1:"1";i:2;s:1:"1";i:4;s:1:"1";i:5;s:1:"1";i:26;s:1:"1";i:6;s:1:"1";i:7;s:1:"1";i:8;s:1:"1";i:9;s:1:"1";i:10;s:1:"1";i:11;s:1:"1";i:12;s:1:"1";i:13;s:1:"1";i:14;s:1:"1";i:15;s:1:"1";i:16;s:1:"1";i:17;s:1:"1";i:18;s:1:"1";i:19;s:1:"1";i:20;s:1:"1";i:21;s:1:"1";i:22;s:1:"1";}";
write2file("datafiles/adminconfig.dat",$adminconfig);
toplist_generate();
echo "<title>Your site is created successfully</title>";
echo "Write down this info</font>"echo "<title>Error</title>"echo "<html>
\n
\n<head>
\n<title>GB Top/Directory - Setup</title>
\n</head>
\n
\n<body>
\n
\n<FORM METHOD="POST">
\n
\n<table align=center>
\n
\n<tr>
\n<th colspan=2>
\nGB Top/Directory Setup
\n</th>
\n</tr>
\n
\n<tr>
\n<td>
\nURL
\n</td>
\n<td>
\n<INPUT TYPE="text" NAME="htmlurl" SIZE="40" value=""$_SERVER$_SERVER$htmlurl$htmlurl;
substr
echo strrpos($fullurl,0,$fullurl,"/")()echo "">
\n</td>
\n</tr>
\n
\n<tr>
\n<td>
\nYour email
\n</td>
\n<td>
\n<INPUT TYPE="text" NAME="usermail" SIZE="30">
\n</td>
\n</tr>
\n
\n<tr>
\n<td>
\nYour ICQ
\n</td>
\n<td>
\n<INPUT TYPE="text" NAME="icq" SIZE="30">
\n</td>
\n</tr>
\n
\n<tr>
\n<td>
\nSite name
\n</td>
\n<td>
\n<INPUT TYPE="text" NAME="sitename" SIZE="30">
\n</td>
\n</tr>
\n
\n<td>
\nSite Type
\n</td>
\n<td>
\n"echo "<s"echo "elect name=sitetype>
\n<option value=0>TopList</option>
\n<option value=1>Directory</option>
\n</select>
\n</td>
\n</tr>
\n
\n<td>
\nSite Mode
\n</td>
\n<td>
\n"echo "<s"echo "elect name=sitemode>
\n<option value=0>Web (html)</option>
\n<option value=1>WAP 1.0 (wml)</option>
\n<option value=2>WAP 2.0 (xhtml)</option>
\n<option value=12>WAP 1.0 + WAP 2.0</option>
\n</select>
\n</td>
\n</tr>
\n
\n<td>
\nCategories (lowercase without spaces)
\n</td>
\n<td>
\n<INPUT TYPE="text" NAME="categories" SIZE="30" value="category1,category2,category3">
\n</td>
\n</tr>
\n
\n<tr>
\n<td>
\nPassw
   $crkey2="926stop438";
   $crkey2;
   Return (md5($to_crypt));
}
 function blankfile($filename){
   while ($ff=fopen($filename,"w")) {
      fclose($ff);
 function write2file($filename,$data){
   while ($ff=fopen($filename,"w")) {
      fputs($ff,$data);
      fclose($ff);
?>