sunlord
Chevereto Member
Hi! 🙂
Updated my plugin admin panel for Chevereto [NB 1.91].
Now, to install it, you need to download only the admin folder and replace the index.php and engine.php.
Also added the ability to select the language.
Download
Old topic: http://chevereto.com/foro/topic464-adminpanel-mysql.html
----------------------------------------------------------------------------------------------
Admin-panel for Chevereto [NB 1.91] (http://www.chevereto.com)
Version: 1.1 (11.13.2010)
Copyright (C) 2010 by SunLord
Web: http://sunlord.ru
Email: lapenkoff@gmail.com
ICQ: 2643333
Skype: sunlord.ru
Installation:
1. Upload to server in chevereto folder
2. In /admin/config.php add DB info, and admin login and pass, select language
3. Run yoursite.com/admin/install.php
4. Delete /admin/install.php
5. Go to yoursite.com/admin
Update:
1. Delete old folder /admin
2. Upload all without file admin/install.php to server in chevereto folder
3. In /admin/config.php add DB info, and admin login and pass, select language
---------------------------------------------
---------------------------------------------
You can not replace engine.php and index.php.
Then add in engine.php:
And under the code
add
In index.php under the
add
Updated my plugin admin panel for Chevereto [NB 1.91].
Now, to install it, you need to download only the admin folder and replace the index.php and engine.php.
Also added the ability to select the language.
Download
Old topic: http://chevereto.com/foro/topic464-adminpanel-mysql.html
----------------------------------------------------------------------------------------------
Admin-panel for Chevereto [NB 1.91] (http://www.chevereto.com)
Version: 1.1 (11.13.2010)
Copyright (C) 2010 by SunLord
Web: http://sunlord.ru
Email: lapenkoff@gmail.com
ICQ: 2643333
Skype: sunlord.ru
Installation:
1. Upload to server in chevereto folder
2. In /admin/config.php add DB info, and admin login and pass, select language
3. Run yoursite.com/admin/install.php
4. Delete /admin/install.php
5. Go to yoursite.com/admin
Update:
1. Delete old folder /admin
2. Upload all without file admin/install.php to server in chevereto folder
3. In /admin/config.php add DB info, and admin login and pass, select language
---------------------------------------------
---------------------------------------------
You can not replace engine.php and index.php.
Then add in engine.php:
Code:
// Config
require('admin/config.php');
require('admin/db_connect.php');
//For admin-panel.
$now=mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"));
$uid=0;
$created=$now;
$lastviewed=0;
$submitip=$_SERVER["REMOTE_ADDR"];
$views=0;
$picfsize=0;
$pic_width=0;
$pic_height=0;
And under the code
Code:
else { // Check local + remote
unset($modo);
$modo = 1;
$spit = true;
$errormsg = CRITIC_ERROR_INPUT;
$titulo = ERROR_UPLOADING.ESP_TITULO;
}
add
Code:
//For admin-panel. Send info about img to DB.
mysql_query("insert into pics(created,lastviewed,pictype,submitip,picfsize,uniqid,pic_width,pic_height)
values(
".$created.",
".$lastviewed.",
'".$exten."',
'".$submitip."',
".$tamano.",
'".$name."',
".$ancho.",
".$alto."
)");
In index.php under the
Code:
$quehace = TXT_SEEING;
add
Code:
$namesun=$_GET['v'];
$curtime=mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"));
mysql_query("update pics set lastviewed=$curtime, views=views+1 where uniqid='$namesun'")
or die(mysql_error());