Unsupported scripts and control panel web app for a hosting company
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122
  1. <?PHP
  2. require_once('lib/common.php');
  3. require_once('lib/database.php');
  4. require_once('lib/account.php');
  5. checkAccess(ADMIN);
  6. if (defined('ADMIN') && ADMIN) {
  7. $sql = 'UPDATE sessions SET session_spoof = '.m($_GET['n']).' WHERE ';
  8. $sql .= 'session_ident = \''.m($_COOKIE['utdsid']).'\'';
  9. mysql_query($sql) or mf(__FILE__, __LINE__, $sql);
  10. $sql = 'SELECT user_name FROM users WHERE user_id = '.m($_GET['n']);
  11. $res = mysql_query($sql) or mf(__FILE__, __LINE__, $sql);
  12. $row = mysql_fetch_array($res);
  13. logger::log('Spoofing user '.$row['user_name'], logger::normal);
  14. header('Location: '.CP_PATH);
  15. } else {
  16. die('You\'re no admin!');
  17. }
  18. ?>