コード例 #1
0
 public function init_module()
 {
     $this->sql = WebCore::get_module("SQLModule");
 }
コード例 #2
0
 /**
  * @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);
 }
コード例 #3
0
<?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);
コード例 #4
0
ファイル: User.php プロジェクト: creatorfromhell/WebCorePlus
 public static function instance()
 {
     return WebCore::get_module("PermissionsModule");
 }