function __construct(&$cpass) { parent::__construct("change_pass", &$cpass->smarty); $this->cpass =& $cpass; $this->query =& get_kdb_connection(); $this->log =& get_logger(); }
function __construct() { $this->smarty =& new klangSmarty(); array_push($this->smarty->plugins_dir, kconf::kodform_plugin_dir); $this->query =& get_kdb_connection(); $this->log =& get_logger(); }
function __construct() { $this->lang = kmmodule_conf::dlang; $this->time = kmmodule_conf::dtime; $this->date = kmmodule_conf::ddate; $this->skin = kmmodule_conf::dskin; $this->tzone = kmmodule_conf::dtzone; global $kmmlog; global $auth; $rez = null; $conn =& get_kdb_connection(); try { $rez =& $conn->execute("SELECT * FROM kmmanager.load_prefs(" . $auth->userindex . "::int8);"); } catch (Exception $e) { $kmmlog->err($e->GetMessage()); exit(1); } $row = $rez->next(); if ($row['user_index'] != NULL) { if ($row['lang'] != NULL) { $this->lang = $row['lang']; } if ($row['time'] != NULL) { $this->time = $row['time']; } if ($row['date'] != NULL) { $this->date = $row['date']; } if ($row['skin'] != NULL) { $this->skin = $row['skin']; } if ($row['zone'] != NULL) { $this->tzone = $row['zone']; } } date_default_timezone_set($this->tzone); }
function __construct(&$smarty) { parent::__construct("dis_user", &$smarty); $this->query = get_kdb_connection(); $this->log =& get_logger(); }
function __construct(&$smarty, &$admin) { parent::__construct("new_user", &$smarty); $this->admin =& $admin; $this->query =& get_kdb_connection(); }
<?php require_once 'ksmess_conf.php'; require_once 'kconf/kconf.php'; $connection =& get_kdb_connection(); $to_delete = $connection->execute("SELECT path FROM ksmess.attachement WHERE message_index IS NULL"); while ($mess = $to_delete->next()) { if (unlink($mess["path"]) || !file_exists($mess["path"])) { try { $connection->execute("DELETE FROM ksmess.attachement WHERE path = '" . $mess["path"] . "' and message_index IS NULL"); } catch (Exception $e) { print "Some db error occured during cleaning of null attachment " . $mess["path"] . ".\n" . $e->getMessage(); } } else { print "Could not delete file " . $mess["path"]; } } //$connection->execute("SELECT FROM ksmess.del_attachs()");
function __construct($form_action = null, &$log = null, &$query = null) { $this->form_action = $form_action; //here you can set logging if ($log == null) { $this->log =& get_logger(); } else { $this->log =& $log; } if ($query == null) { $this->query =& get_kdb_connection(); } else { $this->query =& $query; } //to check xhtml coment out code below //this will disable authentification $this->set_session(); if (!$this->check()) { $this->login(); $this->save_session(); } }
function __construct() { $this->log =& get_logger(); $this->smarty =& new klangSmarty(); $this->query =& get_kdb_connection(); }
<?php require_once 'kauto_conf.php'; require_once kconf::kodform_dir . '/kodform.php'; require_once kconf::logger; $rez = null; $query = get_kdb_connection(); try { $rez =& $query->execute("SELECT kaute.initize('" . sha1("admin" . "changeme") . "');"); } catch (Exception $e) { print "Could not initze"; exit(1); }
function __construct() { global $prefs; //using global preferances $this->smarty =& new kmSmarty($prefs->lang, "kaddressbook"); $this->kablog =& Log::singleton("error_log", PEAR_LOG_TYPE_SYSTEM, "kaddressbook"); $this->sql_query =& get_kdb_connection(); $this->mcoll =& new mcollect(); }
function __construct(kauth &$auth, kuser_prefs &$prefs) { $this->uprefs =& $prefs; $this->auth =& $auth; $this->smarty =& new kmSmarty($this->uprefs->lang, "kworktime"); $this->klog =& Log::singleton("error_log", PEAR_LOG_TYPE_SYSTEM, "kworktime"); $this->sql_query =& get_kdb_connection(); $this->mcoll =& new mcollect(); }
function __construct() { $this->log =& get_ksmess_logger(); $this->db_conn =& get_kdb_connection(); }
function __construct(&$smarty) { parent::__construct("new_group", &$smarty); $this->query =& get_kdb_connection(); $this->log =& get_logger(); }