コード例 #1
0
 function __construct($version = 1.0, $app_id, $Lang)
 {
     $this->app_id = $app_id;
     $this->version = $version;
     $this->Lang = $Lang;
     $this->orig_post = $_POST;
     // Include editor plugin
     $dir = PERCH_PATH . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . 'editors' . DIRECTORY_SEPARATOR . PERCH_APPS_EDITOR_PLUGIN;
     if (is_dir($dir) && is_file($dir . DIRECTORY_SEPARATOR . '_config.inc')) {
         $Perch = Perch::fetch();
         $Perch->add_head_content(str_replace('PERCH_LOGINPATH', PERCH_LOGINPATH, file_get_contents($dir . DIRECTORY_SEPARATOR . '_config.inc')));
     }
     parent::__construct($app_id);
 }