Ejemplo n.º 1
0
 /**
  * @param CAdminPanel $oAdminPanel
  * @return ap_Simple_Screen
  */
 public function __construct(CAdminPanel &$oAdminPanel, $sGlobalTemplateName, $aData = array())
 {
     parent::__construct($oAdminPanel, CAdminPanel::RootPath() . 'core/templates/' . $sGlobalTemplateName);
     foreach ($aData as $sKey => $sText) {
         $this->Data->SetValue($sKey, $sText);
     }
 }
Ejemplo n.º 2
0
 /**
  * @param CAdminPanel $oAdminPanel
  * @return ap_Standard_Screen
  */
 public function __construct(CAdminPanel &$oAdminPanel)
 {
     parent::__construct($oAdminPanel, CAdminPanel::RootPath() . 'core/templates/standard.php');
     $this->CssAddFile('static/styles/screens/standard.css');
     $this->aMenu = array();
     $this->sMode = '';
     $this->aMenuDefMode = '';
 }
Ejemplo n.º 3
0
 function WriteCard()
 {
     if (($this->_mode == 'new' || $this->_mode == 'edit') && count($this->_main->_switchers) > 0) {
         include CAdminPanel::RootPath() . '/templates/screen-tables-card.php';
     }
 }
Ejemplo n.º 4
0
 /**
  * @param	WebMail_Settings	$settings
  * @return	webmail_MSSQL_DbStorage
  */
 function common_MSSQL_DbStorage(&$settings)
 {
     $this->_settings =& $settings;
     include_once WM_DB_LIBS_PATH . '/commandcreator.php';
     $this->_commandCreator = new MSSQL_CommonCommandCreator(AP_DB_QUOTE_ESCAPE, array('[', ']'), $this->_settings->DbPrefix);
     if ($settings->UseCustomConnectionString || $settings->UseDsn) {
         include_once CAdminPanel::RootPath() . '/core/db/class_dbodbc.php';
         if ($settings->UseCustomConnectionString) {
             $this->_connector = new DbOdbc($settings->DbCustomConnectionString, $settings->DbType, $settings->DbLogin, $settings->DbPassword);
         } else {
             $this->_connector = new DbOdbc('DSN=' . $settings->DbDsn . ';', $settings->DbType, $settings->DbLogin, $settings->DbPassword);
         }
     } else {
         include_once CAdminPanel::RootPath() . '/core/db/class_dbmssql.php';
         $this->_connector = new DbMSSql($settings->DbHost, $settings->DbLogin, $settings->DbPassword, $settings->DbName);
     }
 }
Ejemplo n.º 5
0
 /**
  * @param	string	$_msg
  */
 function GlobalError($_msg = null)
 {
     $_errorDesc = ap_Utils::TakePhrase('AP_LANG_NOT_CONFIGURED');
     $_errorDesc .= $_msg !== null ? '<br /><br />' . $_msg : '';
     $this->AddCssFile($this->AdminFolder() . '/styles/styles.css');
     define('ERROR_TEML_DESC', $_errorDesc);
     include CAdminPanel::RootPath() . '/templates/error.php';
     exit;
 }
Ejemplo n.º 6
0
 /**
  * @retun void
  */
 public function ToString()
 {
     if (0 < count($this->aSwitchers) || 0 < count($this->aTopSwitchers)) {
         include CAdminPanel::RootPath() . '/core/templates/table-main.php';
     }
 }
Ejemplo n.º 7
0
<?php

/*
 * AfterLogic Admin Panel by AfterLogic Corp. <*****@*****.**>
 *
 * Copyright (C) 2002-2010  AfterLogic Corp. (www.afterlogic.com)
 * Distributed under the terms of the license described in LICENSE.txt
 * 
 */
include_once CAdminPanel::RootPath() . '/core/db/commandcreator.php';
/**
 * @abstract
 */
class main_CommonCommandCreator extends baseMain_CommandCreator
{
    /**
     * @param	int		$type
     * @param	array	$columnEscape
     * @param	string	$prefix
     * @return	main_CommonCommandCreator
     */
    function main_CommonCommandCreator($type, $columnEscape = array('', ''), $prefix = '')
    {
        baseMain_CommandCreator::baseMain_CommandCreator($type, $columnEscape, $prefix);
    }
    /**
     * @return	string
     */
    function GetDomainArray()
    {
        return sprintf('SELECT id_domain, name FROM %sawm_domains', $this->_prefix);
Ejemplo n.º 8
0
 /**
  * @param	string	$xmlText
  * @return	bool
  */
 function ParseFromString($xmlText)
 {
     $result = true;
     if (extension_loaded('xml')) {
         $parser = xml_parser_create();
         xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, false);
         xml_set_element_handler($parser, array(&$this, '_startElement'), array(&$this, '_endElement'));
         xml_set_character_data_handler($parser, array(&$this, '_charData'));
         $result = xml_parse($parser, $xmlText);
         xml_parser_free($parser);
     } else {
         include_once CAdminPanel::RootPath() . '/core/xmlsaxyliteparser.php';
         $parser = new SAXY_Lite_Parser();
         $parser->xml_set_element_handler(array(&$this, '_startElement'), array(&$this, '_endElement'));
         $parser->xml_set_character_data_handler(array(&$this, '_charData'));
         $result = $parser->parse($xmlText);
     }
     return $result;
 }