Ejemplo n.º 1
0
 /**
  * 为页面生成一个全局编号,用于media等数据定位
  *
  */
 public function getUid()
 {
     if (empty($this->uid)) {
         $this->uid = application::getApplication() . '://' . application::getModule() . '.' . application::getController() . '.' . application::getAction();
         $this->uid = empty($id) ? $namespace : $namespace . '/' . $id;
         $this->uid = md5($namespace);
     }
     return $this->uid;
 }
Ejemplo n.º 2
0
 public static function id()
 {
     $id = self::settings('id');
     if (strlen($id) == 32) {
         return $id;
     }
     $namespace = application::getApplication() . '://' . application::getModule() . '.' . application::getController() . '.' . application::getAction();
     $namespace = empty($id) ? $namespace : $namespace . '/' . $id;
     $namespace = md5($namespace);
     return $namespace;
 }
<?

/*
  TM (Geektimes / Megamozg) parser with open comment system.
  @Author: SalatProduction (c)
  @Date: 26.06.2015
  @Version: 1.2
  @Email: megaphpdestroyer@gmail.ru
*/

define("_EXEC", true);

require_once($_SERVER['DOCUMENT_ROOT'] . '/config.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/inc/autoload.class.php');

application::getApplication();
application::Create();