Размер файла: 15.98Kb
<?php
#-----------------------------------------------------#
# ********* WAP-MOTORS ********* #
# Made by : VANTUZ #
# E-mail : [email protected] #
# Site : http://pizdec.ru #
# WAP-Site : http://visavi.net #
# ICQ : 36-44-66 #
# Вы не имеете право вносить изменения в код скрипта #
#-----------------------------------------------------#
require_once"template/start.php";
require_once"template/regglobals.php";
require_once"template/config.php";
require_once"template/functions.php";
require_once"template/maincore.php";
require_once"template/antidos.php";
require_once"template/cookies.php";
require_once"template/gzip.php";
require_once"template/header.php";
require_once"template/referer.php";
include_once"themes/$config_themes/index.php";
//------------------------------- ШАГ ПЕРВЫЙ ------------------------------------//
if(!isset($act)){
echo'<b>'.$LANGUAGE['i100'].'</b><br><br>';
echo'<div class=b><img src="images/img/forums.gif" alt=""> '.$LANGUAGE['i101'].'</div><br><br>';
echo $LANGUAGE['i102'].'<br><br>';
echo $LANGUAGE['i103'].' local/config.dat: '; echo " (".permissions("local/config.dat").") - ";
if(permissions("local/config.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/book.dat: '; echo " (".permissions("local/book.dat").") - ";
if(permissions("local/book.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/chat.dat: '; echo " (".permissions("local/chat.dat").") - ";
if(permissions("local/chat.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/counter.dat: '; echo " (".permissions("local/counter.dat").") - ";
if(permissions("local/counter.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/local.dat: '; echo " (".permissions("local/local.dat").") - ";
if(permissions("local/local.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/news.dat: '; echo " (".permissions("local/news.dat").") - ";
if(permissions("local/news.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/online.dat: '; echo " (".permissions("local/online.dat").") - ";
if(permissions("local/online.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/status.dat: '; echo " (".permissions("local/status.dat").") - ";
if(permissions("local/status.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/sub.dat: '; echo " (".permissions("local/sub.dat").") - ";
if(permissions("local/sub.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/who.dat: '; echo " (".permissions("local/who.dat").") - ";
if(permissions("local/who.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/ban.dat: '; echo " (".permissions("local/ban.dat").") - ";
if(permissions("local/ban.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/antiflood.dat: '; echo " (".permissions("local/antiflood.dat").") - ";
if(permissions("local/antiflood.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/welcome.dat: '; echo " (".permissions("local/welcome.dat").") - ";
if(permissions("local/welcome.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/referer.dat: '; echo " (".permissions("local/referer.dat").") - ";
if(permissions("local/referer.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/loterea.dat: '; echo " (".permissions("local/loterea.dat").") - ";
if(permissions("local/loterea.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/link.dat: '; echo " (".permissions("local/link.dat").") - ";
if(permissions("local/link.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/bank.dat: '; echo " (".permissions("local/bank.dat").") - ";
if(permissions("local/bank.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i103'].' local/logfiles.dat: '; echo " (".permissions("local/logfiles.dat").") - ";
if(permissions("local/logfiles.dat")>=660){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br><hr>'.$LANGUAGE['i106'].'<br>';
echo'<br>'.$LANGUAGE['i107'].' local/profil: ';
echo ' ('.permissions('local/profil').') - ';
if(permissions("local/profil")>=770){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i107'].' local/privat : ';
echo ' ('.permissions('local/privat').') - ';
if(permissions("local/privat")>=770){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i107'].' local/databoard : ';
echo ' ('.permissions('local/databoard').') - ';
if(permissions("local/databoard")>=770){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i107'].' local/dataforum : ';
echo ' ('.permissions('local/dataforum').') - ';
if(permissions("local/dataforum")>=770){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i107'].' local/datagallery : ';
echo ' ('.permissions('local/datagallery').') - ';
if(permissions("local/datagallery")>=770){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i107'].' local/datakomm : ';
echo ' ('.permissions('local/datakomm').') - ';
if(permissions("local/datakomm")>=770){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i107'].' local/datavotes : ';
echo ' ('.permissions('local/datavotes').') - ';
if(permissions("local/datavotes")>=770){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i107'].' local/datadown : ';
echo ' ('.permissions('local/datadown').') - ';
if(permissions("local/datadown")>=770){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i107'].' local/datatmp : ';
echo ' ('.permissions('local/datatmp').') - ';
if(permissions("local/datatmp")>=770){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
echo'<br>'.$LANGUAGE['i107'].' local/datados : ';
echo ' ('.permissions('local/datados').') - ';
if(permissions("local/datados")>=770){ echo $LANGUAGE['i104']; }else{ echo '<font color="red">'.$LANGUAGE['i105'].'</font>'; }
if(permissions("local/profil")>=770 && permissions("local/config.dat")>=660){
echo'<br><br><font color="red">'.$LANGUAGE['i108'].'<br></font>';
echo'<br><b><a href="INSTALL.php?act=upd&'.SID.'">'.$LANGUAGE['i109'].'</a></b>';
}else{
echo'<br><br>'.$LANGUAGE['i110'];
}
echo'<br><br>'.$LANGUAGE['i111'];
}
//------------------------------- ШАГ ВТОРОЙ ------------------------------------//
if($act=="upd"){
echo'<b>'.$LANGUAGE['i112'].'</b><br><br>';
echo $LANGUAGE['i113'].'<br>';
echo $LANGUAGE['i114'].'<br>';
if($config_themes!=="wml"){
echo'<form method="post" action="INSTALL.php?act=install&'.SID.'">';
echo $LANGUAGE['i115'].'<br>';
echo'<input name="name" maxlength="20" /><br>';
echo $LANGUAGE['i116'].'<br>';
echo'<input name="password" type="password" maxlength="20" /><br>';
echo $LANGUAGE['i117'].'<br>';
echo'<input name="password2" type="password" maxlength="20" /><br>';
echo $LANGUAGE['i118'].'<br>';
echo'<input name="oemails" maxlength="100" /><br>';
echo 'Адрес сайта *<br>';
echo'<input name="osite" value="http://" maxlength="100" /><br>';
echo $LANGUAGE['i119'].'<br>';
echo'<select name="olanguage">';
echo'<option value="'.$config_language.'">'.$config_language.'</option>';
$dir = opendir ("language");
while ($file = readdir ($dir))
{
if(!eregi("[^a-z0-9-]",$file) && ($file != $config_language))
{
echo'<option value="'.$file.'">'.$file.'</option>';
}}
echo'</select><br><br>';
closedir ($dir);
echo'<input value="'.$LANGUAGE['i120'].'" type="submit" /></form><hr>';
}else{
echo $LANGUAGE['i115'].'<br>';
echo'<input name="name"/><br>';
echo $LANGUAGE['i116'].'<br>';
echo'<input name="password" type="password"/><br>';
echo $LANGUAGE['i117'].'<br>';
echo'<input name="password2" type="password"/><br>';
echo $LANGUAGE['i118'].'<br>';
echo'<input name="oemails" maxlength="100"/><br>';
echo 'Адрес сайта *<br>';
echo'<input name="osite" value="http://" maxlength="100"/><br>';
echo $LANGUAGE['i119'].'<br>';
echo'<select name="olanguage">';
echo'<option value="'.$config_language.'">'.$config_language.'</option>';
$dir = opendir ("language");
while ($file = readdir ($dir))
{
if(!eregi("[^a-z0-9-]",$file) && ($file != "$config_language"))
{
echo'<option value="'.$file.'">'.$file.'</option>';
}}
echo'</select><br><br>';
closedir ($dir);
echo'<anchor>'.$LANGUAGE['i120'];
echo'<go href="INSTALL.php?act=install&'.SID.'" method="post">';
echo'<postfield name="name" value="$(name)"/>';
echo'<postfield name="password" value="$(password)"/>';
echo'<postfield name="password2" value="$(password2)"/>';
echo'<postfield name="oemails" value="$(oemails)"/>';
echo'<postfield name="osite" value="$(osite)"/>';
echo'<postfield name="olanguage" value="$(olanguage)"/>';
echo'</go></anchor><br>--------------------<br>';
}
echo $LANGUAGE['i121'];
}
//------------------------------- ШАГ ТРЕТИЙ ------------------------------------//
if($act=="install"){
echo'<b>'.$LANGUAGE['i122'].'</b><br><br>';
$str1=strlen($name);
$str2=strlen($password);
if(!empty($name) || !empty($password) || !empty($oemails) || !empty($osite)){
if($str1<=20 && $str2<=20 && $str1>=3 && $str2>=3){
if(!eregi("[^a-z0-9-]",$name) && !eregi("[^a-z0-9-]",$password)){
if($password==$password2){
if (eregi("^[a-z0-9\._-]+@[a-z0-9\._-]+\.[a-z]{2,4}\$", $oemails)){
if (eregi("^(https?|ftp)://[a-z0-9\.-]+\.[a-z]{2,4}\$", $osite)){
$fp=fopen("local/profil/$name.prof","w");
flock($fp,LOCK_EX);
$passwords = md5($password);
$text=$name.':||:'.$passwords.':||:'.$rezerv2.':||:'.$LANGUAGE['i123'].':||:'.$oemails.':||:'.$rezerv5.':||:'.$currDate.':||:101:||:0:||:0:||:1:||:0:||:0:||:'.$brow.':||:'.$ip.':||:M:||:'.$rezerv16.':||:'.$rezerv17.':||:'.$rezerv18.':||:'.$rezerv19.':||:'.$config_themes.':||:'.$config_bookpost.':||:'.$config_postnews.':||:'.$config_forumpost.':||:'.$config_forumtem.':||:'.$config_userlist.':||:'.$config_chatpost.':||:'.$config_chatrew.':||:'.$config_boardspost.':||:'.$config_showdays.':||:'.$config_clocks.':||:'.$config_showtime.':||:'.$config_privatpost.':||:0:||:'.$rezerv34.':||:'.$rezerv35.':||:500:||:0:||:0:||::||:'.$LANGUAGE['i123'].':||:10000:||:1:||:noavatar.gif:||:'.$currDate.'/'.$currTime2.':||:1:||:'.$rezerv46.':||:'.$rezerv47.':||:'.$rezerv48.':||:'.$rezerv49.':||:'.$rezerv50.':||:'.$rezerv51.':||:'.$rezerv52.':||:'.$rezerv53.':||:'.$rezerv54.':||:'.$rezerv55.':||:'.$rezerv56.':||:'.$rezerv57.':||:'.$rezerv58.':||:'.$rezerv59.':||:'.$rezerv60.':||:'.$rezerv61.':||:'.$rezerv62.':||:'.$rezerv63.':||:'.$rezerv64.':||:'.$rezerv65.':||:'.$rezerv66.':||:'.$rezerv67.':||:'.$rezerv68.':||:'.$rezerv69.':||:'.$rezerv70.':||:'.$rezerv71.':||:'.$rezerv72.':||:'.$rezerv73.':||:'.$rezerv74.':||:'.$rezerv75.':||:'.$rezerv76.':||:'.$rezerv77.':||:'.$rezerv78.':||:'.$rezerv79.':||:'.$rezerv80.':||:'.$rezerv81.':||:'.$rezerv82.':||:'.$rezerv83.':||:'.$rezerv84.':||:'.$rezerv85.':||:'.$rezerv86.':||:'.$rezerv87.':||:'.$rezerv88.':||:'.$rezerv89.':||:'.$rezerv90.':||:'.$rezerv91.':||:'.$rezerv92.':||:'.$rezerv93.':||:'.$rezerv94.':||:'.$rezerv95.':||:'.$rezerv96.':||:'.$rezerv97.':||:'.$rezerv98.':||:'.$rezerv99.':||:'.$rezerv100.':||:';
fputs($fp,$text);
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
chmod($fp, 0666);
chmod("local/profil/$name.prof", 0666);
/////////////////////////////////////////////////////////
$fp=fopen("local/privat/$name.$config_priv","w");
flock($fp,LOCK_EX);
$mess=$LANGUAGE['i124'];
$mess=base64_encode($mess);
$pozdr='Vantuz|'.$mess.'|'.$currDate.'||';
fputs($fp,"$pozdr\r\n");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
chmod ($fp, 0666);
chmod ("local/privat/$name.$config_priv", 0666);
$fp=fopen("local/config.dat","a+");
flock ($fp,LOCK_EX);
$configdata=$con_data[0].'|'.$olanguage.'|'.$con_data[2].'|'.$con_data[3].'|'.$con_data[4].'|'.$con_data[5].'|'.$con_data[6].'|'.$con_data[7].'|'.$name.'|'.$oemails.'|'.$con_data[10].'|'.$con_data[11].'|'.$con_data[12].'|'.$con_data[13].'|'.$osite.'|'.$osite.'/images/img/wap-motor.gif|'.$con_data[16].'|'.$con_data[17].'|'.$con_data[18].'|'.$con_data[19].'|'.$con_data[20].'|'.$con_data[21].'|'.$con_data[22].'|'.$con_data[23].'|'.$con_data[24].'|'.$con_data[25].'|'.$con_data[26].'|'.$con_data[27].'|'.$con_data[28].'|'.$con_data[29].'|'.$con_data[30].'|'.$con_data[31].'|'.$con_data[32].'|'.$con_data[33].'|'.$con_data[34].'|'.$con_data[35].'|'.$con_data[36].'|'.$con_data[37].'|'.$con_data[38].'|'.$con_data[39].'|'.$con_data[40].'|'.$con_data[41].'|'.$con_data[42].'|'.$con_data[43].'|'.$con_data[44].'|'.$con_data[45].'|'.$con_data[46].'|'.$con_data[47].'|'.$con_data[48].'|'.$con_data[49].'|'.$con_data[50].'|'.$con_data[51].'|'.$con_data[52].'|'.$con_data[53].'|'.$con_data[54].'|'.$con_data[55].'|'.$con_data[56].'|'.$con_data[57].'|'.$con_data[58].'|'.$con_data[59].'|'.$con_data[60].'|'.$con_data[61].'|'.$con_data[62].'|'.$con_data[63].'|'.$con_data[64].'|'.$con_data[65].'|'.$con_data[66].'|'.$con_data[67].'|'.$con_data[68].'|'.$con_data[69].'|'.$con_data[70].'|'.$con_data[71].'|'.$con_data[72].'|'.$con_data[73].'|'.$con_data[74].'|'.$con_data[75].'|'.$con_data[76].'|'.$con_data[77].'|'.$con_data[78].'|'.$con_data[79].'|'.$con_data[80].'|'.$con_data[81].'|'.$con_data[82].'|'.$con_data[83].'|'.$con_data[84].'|'.$con_data[85].'|'.$con_data[86].'|'.$con_data[87].'|'.$con_data[88].'|'.$con_data[89].'|'.$con_data[90].'|'.$con_data[91].'|'.$con_data[92].'|'.$con_data[93].'|'.$con_data[94].'|'.$con_data[95].'|'.$con_data[96].'|'.$con_data[97].'|'.$con_data[98].'|'.$con_data[99].'|'.$con_data[100].'|';
ftruncate ($fp,0);
fputs($fp,$configdata);
fflush ($fp);
flock ($fp,LOCK_UN);
fclose($fp);
echo $LANGUAGE['i125'].'<br><br>';
echo'<img src="images/img/reload.gif" alt=""> <b><a href="input.php?log='.$name.'&par='.$password.'&cookietrue=1&'.SID.'">'.$LANGUAGE['i126'].'</a></b>';
} else {echo 'Неверный адрес сайта! <br><a href="INSTALL.php?act=upd&'.SID.'">'.$LANGUAGE['i132'].'</a>';}
} else {echo $LANGUAGE['i127'].'<br><a href="INSTALL.php?act=upd&'.SID.'">'.$LANGUAGE['i132'].'</a>';}
} else {echo $LANGUAGE['i128'].'<br><a href="INSTALL.php?act=upd&'.SID.'">'.$LANGUAGE['i132'].'</a>';}
} else {echo $LANGUAGE['i129'].'<br><a href="INSTALL.php?act=upd&'.SID.'">'.$LANGUAGE['i132'].'</a>';}
} else {echo $LANGUAGE['i130'].'<br><a href="INSTALL.php?act=upd&'.SID.'">'.$LANGUAGE['i132'].'</a>';}
} else {echo $LANGUAGE['i131'].'<br><a href="INSTALL.php?act=upd&'.SID.'">'.$LANGUAGE['i132'].'</a>';}
}
include_once"themes/$config_themes/foot.php";
?>