function add_option($url, $text, $image = '') { global $ModName; $ModName = 'NS-Admin'; modules_get_language('menu'); // cant give $ModName to function $current = count($this->options); $this->options[$current]['url'] = $url; if (defined($text) && phpversion() > "4.0.4") { $text = constant($text); } $this->options[$current]['text'] = $text; $this->options[$current]['image'] = $image; }
// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // To read the license please visit http://www.gnu.org/copyleft/gpl.html // ---------------------------------------------------------------------- // Original Author of file: // Purpose of file: // ---------------------------------------------------------------------- if (!eregi("admin.php", $PHP_SELF)) { die("Access Denied"); } $ModName = $module; modules_get_language(); modules_get_manual(); /*********************************************************/ /* Messages Functions */ /*********************************************************/ function MsgDeactive() { $mid = (int) pnVarCleanFromInput('mid'); list($dbconn) = pnDBGetConn(); $pntable = pnDBGetTables(); $column =& $pntable['message_column']; $result = $dbconn->Execute("SELECT {$column['title']}\n FROM {$pntable['message']}\n WHERE {$column['mid']} = '" . (int) pnVarPrepForStore($mid) . "'"); if ($dbconn->ErrorNo() != 0) { error_log("Error: " . $dbconn->ErrorMsg()); } list($title) = $result->fields;