function theme_display_message_block() { global $lang_gallery_admin_menu, $CONFIG; $return = ''; if ($_SERVER['message_id'] != '') { $return = '<a name="cpgMessageBlock"></a><div id="cpgMessage" style="border:1px solid red;width:100%;">message block (under construction):'; $return .= cpgFetchTempMessage($_SERVER['message_id']); $return .= '</div>'; } if (GALLERY_ADMIN_MODE) { cpgCleanTempMessage(); // garbage collection: when the admin is logged in, old messages that failed to display for whatever reason are being removed to keep the temp_messages table clean $return .= cpg_alert_dev_version(); // $return .= cpg_display_rss(); //add RSS feed from coppermine-gallery.net later } else { // not in admin mode $return = ''; } return $return; }
******************************************** Coppermine version: 1.6.01 $HeadURL$ $Revision$ **********************************************/ /** * Unless this is true most things wont work - protection against direct execution of inc files */ define('IN_COPPERMINE', true); define('INDEX_PHP', true); define('RESTRICTED_PRIV', true); require 'include/init.inc.php'; // garbage collection: when the admin is logged in, old messages that failed to display for whatever reason are being removed to keep the temp_messages table clean if (GALLERY_ADMIN_MODE) { cpgCleanTempMessage(); } /** * Clean up GPC and other Globals here */ if ($superCage->get->keyExists('page')) { $page = $superCage->get->getInt('page'); } if ($superCage->get->testInt('cat')) { $cat = $superCage->get->getInt('cat'); } $tmpFile = ''; // initialize if ($superCage->get->keyExists('file')) { /** * There can be only alphanumerals in a plugin's folder name. There mustn't be any dots or other special
function theme_display_message_block() { global $lang_gallery_admin_menu, $lang_info, $CONFIG, $message_id; $superCage = Inspekt::makeSuperCage(); $return = ''; if ($superCage->get->keyExists('message_id')) { $message_id = $superCage->get->getEscaped('message_id'); } if ($message_id != '') { $tempMessage = cpgFetchTempMessage($message_id); if ($tempMessage != '') { $return .= '<a name="cpgMessageBlock"></a>'; ob_start(); starttable(-1, $lang_info); $return .= ob_get_contents(); ob_end_clean(); $return .= <<<EOT <tr> <td class="tableb" align="center"> <div id="cpgMessage" class="cpg_user_message"> {$tempMessage} </div> </td> </tr> EOT; ob_start(); endtable(); $return .= ob_get_contents(); ob_end_clean(); } } if (GALLERY_ADMIN_MODE) { cpgCleanTempMessage(); // garbage collection: when the admin is logged in, old messages that failed to display for whatever reason are being removed to keep the temp_messages table clean $return .= cpg_alert_dev_version(); // $return .= cpg_display_rss(); //add RSS feed from coppermine-gallery.net later } else { // not in admin mode //$return = ''; } return $return; }