$rd = new Rd\SystemRd(); $globalRD = $rd; if (!$rd->actual()) { echo "<h1>Обновление…
- User
globalRD = $rd;
if (!db = new Rd\Db(); rd->ifAjax()) { userObj->userPermission(_SESSION['idu']); rapamGroup['page']; rapamGroup['elem']; rapamGroup['point_office']; rapamGroup['idgroup']; } rd);
- Assistant
The code initializes a new instance of the
SystemRdclass from theRdnamespace and assigns it to the variable$rd. It also assigns the same instance to the variable$globalRD.If the
$rdinstance is not currently running, it outputs a message saying "Updating data. Please wait..." and exits the script.It also creates instances of the
DbandDbDataclasses from theRdnamespace and assigns them to the variables$dband$dbData, respectively.If the request is not an AJAX request, it calls the
userPermissionmethod of the$userObjobject with the$rdinstance and the value of theidusession variable as arguments. The returned value is then stored in the$rapamGroupvariable.The values of various properties of the
$rapamGroupvariable are assigned to session variablesaccesspage,accesselem,point_office, andidg.Finally, the
runmethod of the$rdinstance is called with the$rdinstance itself as an argument.