echo "\ttext-align: center;\n"; echo "\tfont-size: 15px;\n"; echo "\tfont-weight: bold;\n"; echo "}\n"; echo ".mainfooter{\n"; echo "\tmargin: 3;\n"; echo "\ttext-align: center;\n"; echo "\tfont-size: 10px;\n"; echo "}\n"; echo ".sform p{\n"; echo "\twidth: 300px;\n"; echo "\tclear: right;\n"; echo "\tmargin: 5;\n"; echo "\tpadding: 5px 0 8px 0;\n"; echo "\tpadding-right: 155px; /*width of right column containing the label elements*/\n"; echo "\tborder-top: 2px dashed gray;\n"; echo "\theight: 1%;\n"; echo "}\n"; echo ".sform label{\n"; echo "\tfloat: right;\n"; echo "\tmargin-right: -155px;\n"; echo "\twidth: 150px;\n"; echo "}\n"; echo ".sform input[type=\"text\"]{\n"; echo "\tmargin: 0;\n"; echo "\twidth: 180px;\n"; echo "}\n"; } if (isset($_GET['action']) && $_GET['action'] == "css") { gen_css(); }
function load_skin($skin) { global $x7c, $_GET, $language_iso, $language_dir; $this->this_skin = $skin; $this->inv_buffer = ""; $this->buffer = ""; if (isset($language_dir)) { $this->direction = $language_dir; } else { $this->direction = "ltr"; } // Load the theme information include "./themes/{$skin}/theme.info"; // This variable helps images find their way $this->image_path = "./themes/{$skin}/"; // Advanced theme (it has all its style sheets) if ($theme_type == 2) { // Load the Global Style Sheets $theme_ss = file("./themes/{$skin}/{$style_sheet}"); $theme_ss = implode("", $theme_ss); $theme_ss = eregi_replace("url\\(", "url(./themes/{$skin}/", $theme_ss); $this->style_sheet = $theme_ss; // This one require special parsing so it will work with a javascript write() command $theme_ss_mini = file("./themes/{$skin}/{$style_sheet_mini}"); $theme_ss_mini = implode("", $theme_ss_mini); $theme_ss_mini = eregi_replace("url\\(", "url(./themes/{$skin}/", $theme_ss_mini); $theme_ss_mini = eregi_replace("\r", "", $theme_ss_mini); $theme_ss_mini = eregi_replace("\n", "", $theme_ss_mini); $theme_ss_mini = eregi_replace("'", "\\'", $theme_ss_mini); $this->ss_mini = $theme_ss_mini; // Load the Profile Page Style Sheets $theme_ss_profile = file("./themes/{$skin}/{$style_sheet_profile}"); $theme_ss_profile = implode("", $theme_ss_profile); $theme_ss_profile = eregi_replace("url\\(", "url(./themes/{$skin}/", $theme_ss_profile); $this->ss_profile = $theme_ss_profile; // Load the Private Message Page Style Sheets $theme_ss_pm = file("./themes/{$skin}/{$style_sheet_pm}"); $theme_ss_pm = implode("", $theme_ss_pm); $theme_ss_pm = eregi_replace("url\\(", "url(./themes/{$skin}/", $theme_ss_pm); $this->ss_pm = $theme_ss_pm; // Load the Chat input box style sheet $theme_ss_chatinput = file("./themes/{$skin}/{$style_sheet_chatinput}"); $theme_ss_chatinput = implode("", $theme_ss_chatinput); $theme_ss_chatinput = eregi_replace("url\\(", "url(./themes/{$skin}/", $theme_ss_chatinput); $this->ss_chatinput = $theme_ss_chatinput; // Load the User Control style sheet $theme_ss_uc = file("./themes/{$skin}/{$style_sheet_uc}"); $theme_ss_uc = implode("", $theme_ss_uc); $theme_ss_uc = eregi_replace("url\\(", "url(./themes/{$skin}/", $theme_ss_uc); $this->ss_uc = $theme_ss_uc; // Load the Events Calender Style Sheet $theme_ss_events = file("./themes/{$skin}/{$style_sheet_events}"); $theme_ss_events = implode("", $theme_ss_events); $theme_ss_events = eregi_replace("url\\(", "url(./themes/{$skin}/", $theme_ss_events); $this->ss_events = $theme_ss_events; // Load the Private Message Page Style Sheets $theme_ss_ucp = file("./themes/{$skin}/{$style_sheet_ucp}"); $theme_ss_ucp = implode("", $theme_ss_ucp); $theme_ss_ucp = eregi_replace("url\\(", "url(./themes/{$skin}/", $theme_ss_ucp); $this->ss_ucp = $theme_ss_ucp; } else { // This is a simple theme include_once "./lib/ssgen.php"; // Get the theme data and split by ; marks rather then new lines $theme_data_file = file("./themes/{$skin}/theme.data"); $theme_data_file = explode(";", eregi_replace("\r", "", implode("", $theme_data_file))); $data = get_data($theme_data_file, $skin); // Generate all the style sheets $this->style_sheet = gen_css($data, $skin); $this->ss_mini = gen_mini($data, $skin); $this->ss_profile = gen_profile($data, $skin); $this->ss_pm = gen_pm($data, $skin); $this->ss_chatinput = gen_chatinput($data, $skin); $this->ss_uc = gen_uc($data, $skin); $this->ss_events = gen_events($data, $skin); $this->ss_ucp = gen_ucp($data, $skin); } // Compile page header $site_name = $x7c->settings['site_name']; $this->add("\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html dir=\"{$this->direction}\">\n<head>\n\t<title>{$site_name}</title>\n\t<META NAME=\"COPYRIGHT\" CONTENT=\"Copyright 2004 By The X7 Group\">\n\t<META HTTP-EQUIV=\"Content-Type\" content=\"text/html; charset={$language_iso}\">\n\t<META HTTP-EQUIV=\"CACHE-CONTROL\" CONTENT=\"NO-CACHE\">\n\t<META HTTP-EQUIV=\"PRAGMA\" CONTENT=\"NO-CACHE\">\n\t<LINK REL=\"SHORTCUT ICON\" HREF=\"./favicon.ico\">\n\t{$this->style_sheet}\n\t{$this->ss_mini}\n</head>"); // If this is a frameset page we can't add <body> to it if (@$_GET['frame'] != "main") { $this->add("<body>"); } }