Example #1
0
 static function getInstanceMe()
 {
     if (self::$controladmin == null) {
         self::$controladmin = 1;
         return new static();
     } else {
         return null;
     }
 }
Example #2
0
<?php

require_once "../admin/include/ControlAdmin.php";
$kontrol = ControlAdmin::getInstanceMe();
if ($kontrol == null) {
    die("<h4 style=color:#fff;>Sorry.. Access denied</h4><hr style=color:#f00;/>");
} else {
    if (!$kontrol->initDBInstanceController()) {
        die("<hr/><h5>Sorry.. Server Disconnected...</h5><hr/>");
    }
}