<?php cms_admin_sendheaders(); $orig_memory = function_exists('memory_get_usage') ? memory_get_usage() : 0; $starttime = microtime(); if (!(isset($USE_OUTPUT_BUFFERING) && $USE_OUTPUT_BUFFERING == false)) { @ob_start(); } $gCms = cmsms(); $config = $gCms->GetConfig(); $userid = get_userid(); if (isset($USE_THEME) && $USE_THEME == false) { //echo '<!-- admin theme disabled -->'; } else { debug_buffer('before theme load'); $themeObject = cms_utils::get_theme_object(); debug_buffer('after theme load'); if (isset($headtext) && $headtext != '') { $themeObject->set_value('headertext', $headtext); } // Display notification stuff from modules // should be controlled by preferences or something $ignoredmodules = explode(',', get_preference($userid, 'ignoredmodules')); if (get_site_preference('enablenotifications', 1) && get_preference($userid, 'enablenotifications', 1)) { debug_buffer('before notifications'); if ($data = get_site_preference('__NOTIFICATIONS__')) { $data = unserialize($data); if (is_array($data) && count($data)) { foreach ($data as $item) { $old = $item->html; $regex = '/' . CMS_SECURE_PARAM_NAME . '\\=[0-9a-z]{8}/';
#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. #You should have received a copy of the GNU General Public License #along with this program; if not, write to the Free Software #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # #$Id: style.php 8272 2012-08-28 17:35:32Z calguy1000 $ $CMS_ADMIN_PAGE = TRUE; $CMS_STYLESHEET = TRUE; require_once "../include.php"; $themeObject = cms_utils::get_theme_object(); $theme = $themeObject->themeName; $style = "style"; cms_admin_sendheaders('text/css'); $thelang = CmsNlsOperations::get_language_info(CmsNlsOperations::get_current_language()); if (is_object($thelang) && $thelang->direction() == 'rtl') { $style .= "-rtl"; } if (isset($_GET['ie'])) { $style .= "_ie"; } $style .= ".css"; if (file_exists(dirname(__FILE__) . "/themes/" . $theme . "/css/" . $style)) { cms_readfile(dirname(__FILE__) . "/themes/" . $theme . "/css/" . $style); } if (file_exists(dirname(__FILE__) . "/themes/" . $theme . "/extcss/" . $style)) { cms_readfile(dirname(__FILE__) . "/themes/" . $theme . "/extcss/" . $style); } // else if (file_exists(dirname(__FILE__)."/themes/default/css/".$style))