コード例 #1
0
ファイル: menu.php プロジェクト: pipporazzo/achievo
 *
 * @copyright (c)2000-2004 Ibuildings.nl BV
 * @license http://www.achievo.org/atk/licensing ATK Open Source License
 *
 * @version $Revision$
 * $Id$
 */
/**
 * @internal includes
 */
$config_atkroot = "./";
include_once "atk.inc";
atksession();
atksecure();
require "theme.inc";
atkimport("atk.ui.atktheme");
$output =& atkOutput::getInstance();
$page =& atkinstance("atk.ui.atkpage");
$page->unregister_all_scripts();
$theme =& atkTheme::getInstance();
$ui =& atkinstance("atk.ui.atkui");
/* general menu stuff */
/* load menu layout */
atkimport("atk.menu.atkmenu");
$menu =& atkMenu::getMenu();
if (is_object($menu)) {
    $output->output($menu->render());
} else {
    atkerror("no menu object created!");
}
$output->outputFlush();
コード例 #2
0
 /**
  * display Smarty syntax error
  *
  * @param string $error_msg
  * @param integer $error_type
  * @param string $file
  * @param integer $line
  */
 function _syntax_error($error_msg, $error_type = E_USER_ERROR, $file = null, $line = null)
 {
     //$this->_trigger_fatal_error("syntax error: $error_msg", $this->_current_file, $this->_current_line_no, $file, $line, $error_type);
     //SANDY HACK: We don't want Smarty errors but ATK Errors
     atkerror("Template compile error: [in " . $this->_current_file . " line " . $this->_current_line_no . "]: syntax error: {$error_msg}");
 }
コード例 #3
0
ファイル: tbsooo_class.php プロジェクト: rezaul101/erp32
 function _RemoveTmpBasenameDir()
 {
     clearstatcache();
     // remove the temporary directory
     if (is_dir($this->_ooo_basename) && !rmdir($this->_ooo_basename)) {
         atkerror('clsTinyButStrongOOo->_RemoveTmpBasenameDir: Can\'t remove directory : ' . $this->_ooo_basename);
     }
 }
コード例 #4
0
ファイル: graph.php プロジェクト: rezaul101/erp32
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */
/* Setup the system */
$config_atkroot = "./";
include_once "atk.inc";
include_once "theme.inc";
include_once moduleDir("graph") . "jpgraph/jpgraph.php";
atksession("img", false);
atksecure();
// Create attribute.
$plottersource = $ATK_VARS["plotter"];
useattrib($plottersource);
list($module, $attribname) = explode(".", $plottersource);
$plotterclass = $attribname . "Plotter";
$res = false;
if (class_exists($plotterclass)) {
    // Since php does not support calling static methods
    // on a 'dynamic' class (where the name is inside a
    // variable), we use a companion plotter class to
    // plot stuff.
    $plotter = new $plotterclass();
    $res = $plotter->plot($ATK_VARS);
} else {
    atkerror("Graph: plotter " . $plotterclass . " not found.");
}
if (!$res) {
    $output =& atkOutput::getInstance();
    $output->outputFlush();
}