public function init_module() { $this->sql = WebCore::get_module("SQLModule"); }
/** * @param int $length * @return string */ public function generate_session_id($length = 35) { return substr(md5($this->generate_salt(30) . WebCore::get_module("UtilityModule")->generate_uuid()), 0, $length); }
<?php /** * Created by creatorfromhell. * Date: 12/19/15 * Time: 8:34 AM * Version: Beta 2 */ include_once 'WebCoreLoader.php'; WebCore::get_module("SQLModule"); $captcha = WebCore::get_module("CaptchaModule"); if ($captcha instanceof CaptchaModule) { $captcha->get_captcha("l33t", false); } WebCore::get_module("CaptchaModule")->get_captcha("testing", false);
public static function instance() { return WebCore::get_module("PermissionsModule"); }