Function set_magic_quotes_runtime() está en desuso en /home/u413531556/public_html/includes/init.inc.php en la línea 10
Este es el codigo php.
<?php
// init.inc.php
// per-request initialization, loaded by config.php
// intialize environment
header('X-UA-Compatible: IE=EmulateIE7');
session_name(SESSION_COOKIE_NAME);
session_start();
set_magic_quotes_runtime(0);
Tambien me esta generando este otro error.
Deprecated: Asignar el valor de retorno de nuevo por referencia está en desuso en /home/u413531556/public_html/includes/admin.class.php en la línea 41
este es el codigo php
<?php
// admin.class.php
// admin object, provides admin-specific routines
require_once('app.inc.php');
require_once('admin_user.class.php');
class Admin {
// check for valid administrator login. redirect to the login
// page if not valid.
function check_auth() {
global $app;
if (isset($_SESSION['is_admin']) && (bool)$_SESSION['is_admin']) {
return true;
} elseif (isset($_COOKIE['admin-keep-alive']) && strlen($_COOKIE['admin-keep-alive']) == 32) {
$admin = new Model;
$admin->_table_name = DB_PREFIX.'admin_users';
$admin = $admin->find('WHERE md5(pass)=\''.mysql_real_escape_string($_COOKIE['admin-keep-alive']).'\'');
if (isset($admin->id) && $admin->id) {
$_SESSION['is_admin'] = true;
$_SESSION['admin'] = $admin;
setcookie('admin-keep-alive', md5($admin->pass), time() + 3153600);
return true;
} else {
return false;
}
} else {
$app->redirect('/admin/login.php');
}
}
// attempt to login with given username/password. if valid,
// sets session indicator and returns true. otherwise, returns
// false
function login($user, $pass) {
$_SESSION['is_admin'] = false;
$t =& new Admin_User;
$row = $t->get(1, false);
if (is_null($row->id())) {
$row->id = 1;
$row->user = 'admin';
$row->pass = md5('admin');
$row->save();
}
if ($user == $row->user && md5($pass) == $row->pass) {
$_SESSION['is_admin'] = true;
$_SESSION['admin'] = $row;
//remember me ipmementation, set remember to 365 days
if (isset($_REQUEST['keep-alive']) && $_REQUEST['keep-alive']) {
setcookie('admin-keep-alive', md5($row->pass), time() + 3153600);
}
}
return $_SESSION['is_admin'];
}
// log administrator out
function logout() {
unset($_SESSION['is_admin']);
unset($_SESSION['admin']);
setcookie('admin-keep-alive', '', 0);
}
}
?>