привет
Что плохого в файл?
<?php
@ini_set("max_execution_time", "1");
define('_IN_JOHNCMS', 1);
define('_IN_JOHNADM', 1);
require('../incfiles/core.php');
$headmod = 'admin';
require('../incfiles/head.php');
if (core::$user_rights == 9) {
if(isset($_GET['git']))
{$git=$_GET['git'];}else{$git="";}
switch($git){
default:
$items=mysql_result(mysql_query("SELECT count(`id`) FROM `adsbasic` WHERE 1"), 0);
if($items == 0){
echo '<div class="menu">link yok...</div>';}
echo '<div class="phdr">Reklam panel</div>';
echo '<div class="menu"><a href="?git=tarif">Tarifleri deyis</a></div>';
$q=mysql_query("select * from adsbasic where 1 order by id desc limit 3");
while($arr=mysql_fetch_array($q)) {
$id = $arr['id'];
$url = $arr['url'];
$text=$arr['text'];
$time=$arr['time'];
$qalan = $time-time();
$saat = $qalan/3600;
echo '<div class="menu">Ad: '.$text.' ('.$id.')<br/>Url: '.$url.'<br/>Qalib: '.$saat.' s.<br/><a href="?git=del&id='.$id.'">[sil]</a></div>';
}
break;
case 'del':
$id = $_GET['id'];
echo '<div class="phdr">-<a href="adsadmin.php">ADSadmin</a> / -sil (id: '.$id.') </div>';
@mysql_query("delete from `adsbasic` where `id`=$id");
echo '<div class="alarm">silindi !! </div>';
break;
case 'tarif':
echo '<div class="phdr">-<a href="adsadmin.php">ADSadmin</a> / Paketler </div>';
$gun1 = mysql_result(mysql_query("SELECT `bal` FROM adspack WHERE `name`='gun'"), 0);
$hefte1 = mysql_result(mysql_query("SELECT `bal` FROM adspack WHERE `name`='hefte'"), 0);
$ay1 = mysql_result(mysql_query("SELECT `bal` FROM adspack WHERE `name`='ay'"), 0);
if(@$_POST['button']) {
$gun = @trim($_POST['gun']);
$hefte = @trim($_POST['hefte']);
$ay = @trim($_POST['ay']);
$error = false;
if (empty($gun))
$error = $error . ' gun bos olmamalidir<br/>';
if (empty($hefte))
$error = $error . ' hefte bos olmamalidir<br/>';
if (empty($ay))
$error = $error . ' ay bos olmamalidir<br/>';
if (empty($error)) {
mysql_query("UPDATE `adspack` SET `bal`='" . $gun . "' WHERE `name`='gun';");
mysql_query("UPDATE `adspack` SET `bal`='" . $hefte . "' WHERE `name`='hefte';");
mysql_query("UPDATE `adspack` SET `bal`='" . $ay . "' WHERE `name`='ay';");
echo '<div class="menu"><b>tarif guncellendi</b></div>';
} else {
echo '<div class="alarm"><p><b>Sehv var!</b><br />' . $error . '</p></div>';} }
echo '<div class="menu"><form method="post" name="form" id="form">
Gun:<br/> <input type="number" name="gun" maxlength="50" value ="'.$gun1.'" /><br/>
Hefte:<br/> <input type="number" name="hefte" maxlength="50" value ="'.$hefte1.'" /><br/>
Ay:<br/> <input type="number" name="ay" maxlength="50" value ="'.$ay1.'" /><br/>';
echo '<input type="submit" value="Oldu" name="button" /></form></div>';
break;
}
}else{
echo '<div class="alarm">Yalniz admine icaze var</div>';
}
require('../incfiles/end.php');
?>
# Simba (30.07.2017 / 09:44)peremestit papki sayt/panel
Перемести файл в какую нибудь папку. Или исправь пути в подключении указанных файлов.
# _Maksi_ (30.07.2017 / 10:51)На каком сайте
peremestit papki sayt/panel
stranica beliy ne rabotaet
skript versi johncms 3.2.2
# Tayotabek (03.08.2017 / 20:46)http://loveli.ml
На каком сайте
define('_IN_JOHNCMS', 1);
define('_IN_JOHNADM', 1);