Open Source Web Content Management System © 2005
http://www.openengine.de"; /** * generator short name * @var string */ $system_short = "openEngine 1.7"; /** * fingerprint * @var string */ if (!isset($_GET["export"])) { $system_fingerprint = md5($_SERVER["HTTP_USER_AGENT"]."oe_17"); } /** * updates the settings record */ function updateSettings($page_key,$site_name,$site_admin,$site_home,$site_url,$lang_default,$account_register,$pool_path,$site_staging,$author_release,$author_profile,$site_static,$author_export,$site_help,$menu_top,$site_encoding,$nl_timer,$nl_stepsize,$nl_encoding,$export_timer,$export_stepsize,$author_delete,$tree_static,$check_useragent,$log_path) { global $db_praefix; $link = connectDB(); $query = "UPDATE ".$db_praefix."settings SET site_url = '$site_url',site_name = '$site_name',site_admin = '$site_admin',site_home = '$site_home',lang_default = '$lang_default',account_register = $account_register,pool_path = '$pool_path',site_staging = $site_staging,author_release = $author_release,author_profile = $author_profile,site_static = '$site_static',author_export = $author_export,site_help = '$site_help',menu_top = $menu_top,site_encoding = '$site_encoding',nl_timer = $nl_timer,nl_stepsize = $nl_stepsize,nl_encoding = '$nl_encoding',export_timer = $export_timer,export_stepsize = $export_stepsize,author_delete = $author_delete,tree_static = $tree_static,check_useragent = $check_useragent,log_path = '$log_path'"; $result = mysql_query($query); $_SESSION["site_url_key"] = $site_url; closeDB($link); $pagekey = get_page_key($page_key); ?> From = $site_admin; $mail->FromName = ""; $mail->AddAddress($accountn_email); $mail->Subject = $site_name; $mail->Encoding = "8bit"; $mail->CharSet = $nl_encoding; $text_body = "Your Password: ".$pass_new_output; $mail->Body = $text_body; $mail->Send(); $mail->ClearAddresses(); $mail->ClearAttachments(); ?> 1) { return true; } else { return false; } } } /** * saves the admin menu position */ function saveMenu($page_key,$accountn_menux,$accountn_menuy) { global $db_praefix; $accountn_key = $_SESSION["account_key"]; $accountn_menux = str_replace("px", "", $accountn_menux); $accountn_menuy = str_replace("px", "", $accountn_menuy); $link = connectDB(); $query = "UPDATE ".$db_praefix."account SET account_menux = $accountn_menux, account_menuy = $accountn_menuy where account_key = $accountn_key"; $result = mysql_query($query); closeDB($link); $_SESSION["account_menux"] = $accountn_menux; $_SESSION["account_menuy"] = $accountn_menuy; $pagekey = get_page_key($page_key); ?> '; } /** * Writes an OK button */ function writeOk($link) { echo ''; } /** * Writes a back button */ function writeBack($link) { echo ''; } /** * Writes a menu item */ function writeOeLink($title,$link,$icon) { ?>
= (($step - 1) * $stepsize)) && ($counter < (($step * $stepsize)) + 1)) { $search[$counter] = array("search_max" => $maxsearch,"search_counter" => $counter,"page_headline" => $row["page_headline"],"page_title" => $row["page_title"],"page_path" => $row["page_path"],$field_name => $row[$field_name]); } $counter++; } closeDB($link); return $search; } /** * returns a page by page key * @return array */ function get_page_key($page_key) { global $db_praefix; $account_status = 0; $access = ""; if (empty($_GET["export"])) { $account_status = $_SESSION["account_group"]; if ($_SESSION["account_group"] == 1) { $account_access = $_SESSION["account_access"]; $access = " AND (page_access <= $account_access)"; } } $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."page WHERE (page_key = $page_key) AND (page_status <= ".$account_status.") $access"; $result = mysql_query($query); $menge = mysql_num_fields($result); $row = mysql_fetch_row ($result); $page_rows = mysql_num_rows($result); for($x = 0; $x < $menge; $x++) { $page[mysql_field_name($result,$x)] = $row[$x]; } mysql_free_result($result); $page["page_rows"] = $page_rows; if (isset($_GET["template"])) { $page["page_template"] = $_GET["template"]; } closeDB($link); return $page; } /** * returns a homepage * @return array */ function get_homepage($page_start) { global $db_praefix; $account_status = 0; $access = ""; if (empty($_GET["export"])) { $account_status = $_SESSION["account_group"]; if ($_SESSION["account_group"] == 1) { $account_access = $_SESSION["account_access"]; $access = " AND (page_access <= $account_access)"; } } $link = connectDB(); $homepage = array(); $query = "SELECT * FROM ".$db_praefix."page WHERE (page_key = $page_start) AND (page_status <= ".$account_status.") $access"; $result = mysql_query($query); $menge = mysql_num_fields($result); $row = mysql_fetch_row ($result); $page_rows = mysql_num_rows($result); for($x = 0; $x < $menge; $x++) { $homepage[mysql_field_name($result,$x)] = $row[$x]; } mysql_free_result($result); closeDB($link); return $homepage; } /** * returns all start sites * @return resource */ function get_homepages() { global $db_praefix; $account_status = 0; $access = ""; if (empty($_GET["export"])) { $account_status = $_SESSION["account_group"]; if ($_SESSION["account_group"] == 1) { $account_access = $_SESSION["account_access"]; $access = " AND (page_access <= $account_access)"; } } $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."page WHERE ((page_start = 1) OR (page_parent = 0)) AND (page_status <= ".$account_status.") $access"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns the path navigation * @return array */ function get_path($url_mode) { global $db_praefix,$page; $path = array(); $external = 0; $account_status = 0; $access = ""; if (empty($_GET["export"])) { $account_status = $_SESSION["account_group"]; if ($_SESSION["account_group"] == 1) { $account_access = $_SESSION["account_access"]; $access = " AND (page_access <= $account_access)"; } } $link = connectDB(); if (empty($_GET["export"])) { $path_url = "website.php?id=".$page["page_path"]; } else { $path_url = getFile($page["page_path"]); } $path[0] = array("current" => "1","external" => "0","page_lang" => $page["page_lang"],"page_key" => $page["page_key"],"page_headline" => $page["page_headline"],"page_navigation" => $page["page_navigation"],"page_title" => $page["page_title"],"page_path" => $path_url,"page_template" => $page["page_template"]); $counter = 1; $page_parent = $page["page_parent"]; $page_start = $page["page_start"]; while (($page_parent != 0) && ($page_start != 1)) { $query = "SELECT * FROM ".$db_praefix."page WHERE (page_key = $page_parent) AND (page_status <= ".$account_status.") $access"; $result = mysql_query($query); $row = mysql_fetch_array($result); if (($row["page_extern"] != "") && ($_SESSION["account_group"] < 2)) { $link_path = $row["page_extern"]; $external = 1; } else { if (empty($_GET["export"])) { $link_path = "website.php?id=".$row["page_path"]; } else { $link_path = getFile($row["page_path"]); } } $path[$counter] = array("current" => "0","external" => $external,"page_lang" => $row["page_lang"],"page_key" => $row["page_key"],"page_headline" => $row["page_headline"],"page_navigation" => $row["page_navigation"],"page_title" => $row["page_title"],"page_path" => $link_path,"page_template" => $row["page_template"]); $counter++; $page_parent = $row["page_parent"]; $page_start = $row["page_start"]; mysql_free_result($result); } $path = array_reverse($path); closeDB($link); return $path; } /** * returns the primary navigation * @return array */ function get_primary($path,$prim_key,$url_mode) { global $db_praefix; $link = connectDB(); $external = 0; $primary = array(); $account_status = 0; $access = ""; if (empty($_GET["export"])) { $account_status = $_SESSION["account_group"]; if ($_SESSION["account_group"] == 1) { $account_access = $_SESSION["account_access"]; $access = " AND (page_access <= $account_access)"; } } if (sizeof($path) > 1) { $primarytemp = $path[1]; $page_keycurrent = $primarytemp["page_key"]; $query = "SELECT * FROM ".$db_praefix."page WHERE page_parent = $prim_key AND (page_status <= ".$account_status.") $access AND (page_start = 0) ORDER BY page_order DESC"; $result = mysql_query($query); $counter = 0; while ($row = mysql_fetch_array ($result)) { if ($row["page_hide"] == 0) { if (($row["page_extern"] != "") && ($_SESSION["account_group"] < 2)) { $link_path = $row["page_extern"]; $external = 1; } else { if (empty($_GET["export"])) { $link_path = "website.php?id=".$row["page_path"]; } else { $link_path = getFile($row["page_path"]); } } if ($page_keycurrent == $row["page_key"]) { $primary[$counter] = array("current" => "1","external" => $external,"page_key" => $row["page_key"],"page_headline" => $row["page_headline"],"page_navigation" => $row["page_navigation"],"page_title" => $row["page_title"],"page_path" => $link_path,"page_att1" => $row["page_att1"],"page_att2" => $row["page_att2"],"page_template" => $row["page_template"]); } else { $primary[$counter] = array("current" => "0","external" => $external,"page_key" => $row["page_key"],"page_headline" => $row["page_headline"],"page_navigation" => $row["page_navigation"],"page_title" => $row["page_title"],"page_path" => $link_path,"page_att1" => $row["page_att1"],"page_att2" => $row["page_att2"],"page_template" => $row["page_template"]); } $counter++; } } mysql_free_result($result); } else { $query = "SELECT * FROM ".$db_praefix."page WHERE page_parent = $prim_key AND (page_status <= ".$account_status.") $access AND (page_start = 0) ORDER BY page_order DESC"; $result = mysql_query($query); $counter = 0; while ($row = mysql_fetch_array ($result)) { if ($row["page_hide"] == 0) { if (($row["page_extern"] != "") && ($_SESSION["account_group"] < 2)) { $link_path = $row["page_extern"]; $external = 1; } else { if (empty($_GET["export"])) { $link_path = "website.php?id=".$row["page_path"]; } else { $link_path = getFile($row["page_path"]); } } $primary[$counter] = array("current" => "0","external" => $external,"page_key" => $row["page_key"],"page_headline" => $row["page_headline"],"page_navigation" => $row["page_navigation"],"page_title" => $row["page_title"],"page_path" => $link_path,"page_att1" => $row["page_att1"],"page_att2" => $row["page_att2"],"page_template" => $row["page_template"]); $counter++; } } mysql_free_result($result); } closeDB($link); return $primary; } /** * returns the siblings navigation * @return array */ function get_siblings($page,$url_mode) { global $db_praefix; $external = 0; $account_status = 0; $access = ""; if (empty($_GET["export"])) { $account_status = $_SESSION["account_group"]; if ($_SESSION["account_group"] == 1) { $account_access = $_SESSION["account_access"]; $access = " AND (page_access <= $account_access)"; } } $siblings = array(); if (($page["page_start"] == 0) && ($page["page_parent"] != 0)) { $link = connectDB(); $page_parent = $page["page_parent"]; $query = "SELECT * FROM ".$db_praefix."page WHERE page_parent = $page_parent AND (page_status <= ".$account_status.") $access AND (page_start = 0) ORDER BY page_order DESC"; $result = mysql_query($query); $counter = 0; while ($row = mysql_fetch_array ($result)) { if ($row["page_hide"] == 0) { if (($row["page_extern"] != "") && ($_SESSION["account_group"] < 2)) { $link_path = $row["page_extern"]; $external = 1; } else { if (empty($_GET["export"])) { $link_path = "website.php?id=".$row["page_path"]; } else { $link_path = getFile($row["page_path"]); } } if ($page["page_key"] == $row["page_key"]) { $siblings[$counter] = array("current" => "1","external" => $external,"page_key" => $row["page_key"],"page_headline" => $row["page_headline"],"page_navigation" => $row["page_navigation"],"page_title" => $row["page_title"],"page_path" => $link_path,"page_att1" => $row["page_att1"],"page_att2" => $row["page_att2"],"page_template" => $row["page_template"]); } else { $siblings[$counter] = array("current" => "0","external" => $external,"page_key" => $row["page_key"],"page_headline" => $row["page_headline"],"page_navigation" => $row["page_navigation"],"page_title" => $row["page_title"],"page_path" => $link_path,"page_att1" => $row["page_att1"],"page_att2" => $row["page_att2"],"page_template" => $row["page_template"]); } $counter++; } } mysql_free_result($result); closeDB($link); } return $siblings; } /** * returns the children navigation * @return array */ function get_childs($page_key,$url_mode) { global $db_praefix; $external = 0; $account_status = 0; $access = ""; if (empty($_GET["export"])) { $account_status = $_SESSION["account_group"]; if ($_SESSION["account_group"] == 1) { $account_access = $_SESSION["account_access"]; $access = " AND (page_access <= $account_access)"; } } $childs = array(); $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."page WHERE page_parent = $page_key AND (page_status <= ".$account_status.") AND (page_start = 0) $access ORDER BY page_order DESC"; $result = mysql_query($query); $counter = 0; while ($row = mysql_fetch_array ($result)) { if ($row["page_hide"] == 0) { if (($row["page_extern"] != "") && ($_SESSION["account_group"] < 2)) { $link_path = $row["page_extern"]; $external = 1; } else { if (empty($_GET["export"])) { $link_path = "website.php?id=".$row["page_path"]; } else { $link_path = getFile($row["page_path"]); } } $childs[$counter] = array("current" => "0","external" => $external,"page_key" => $row["page_key"],"page_headline" => $row["page_headline"],"page_navigation" => $row["page_navigation"],"page_title" => $row["page_title"],"page_path" => $link_path,"page_att1" => $row["page_att1"],"page_att2" => $row["page_att2"],"page_template" => $row["page_template"]); $counter++; } } mysql_free_result($result); closeDB($link); return $childs; } /** * writes a required javascript */ function writeRequire($formName,$fields) { global $db_praefix,$admin_lang; echo "function checkInput() {"; $strg = "if ("; $counter = 0; foreach ($fields as $field) { $counter = $counter + 1; $strg = $strg. "(document.".$formName.".".$field.".value != '')"; if ($counter < sizeof($fields)) { $strg = $strg." && "; } } $strg = $strg.")"; echo $strg; echo "{ document.".$formName.".submit(); } else { alert ('".$admin_lang["profile"][3]."') }}"; } /** * returns the status name by status key * @return string */ function getStatus($page_status) { switch ($page_status) { case "0": return "Released"; break; case "1": return "Registered User"; break; case "2": return "Locked"; break; } } /** * returns all language packs * @return resource */ function get_langs() { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."language ORDER BY lang_short"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns all templates * @return resource */ function get_templates() { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."template ORDER BY template_short"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns a template by template key * @return resource */ function get_template($template_key) { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."template WHERE template_key = $template_key"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns a template by template key * @return resource */ function get_template_page($template_key) { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."template WHERE template_key = $template_key"; $result = mysql_query($query); $template = mysql_fetch_array($result); $template_name = $template["template_name"]; $query = "SELECT * FROM ".$db_praefix."page WHERE page_template = '$template_name'"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns the content of template select * @return string */ function get_templateselect($template_name) { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."template WHERE template_name = '$template_name'"; $result = mysql_query($query); closeDB($link); $templateselect = mysql_fetch_array($result); return $templateselect["template_select"]; } /** * returns all attributes * @return resource */ function get_attributes() { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."attribute ORDER BY att_name"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns an attribute by attribute key * @return resource */ function get_attribute($att_key) { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."attribute WHERE att_key = $att_key"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns all user groups * @return resource */ function get_groups() { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."group ORDER BY group_order DESC"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns a user group by group key * @return resource */ function get_group($group_key) { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."group WHERE group_key = $group_key"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns all replacings for export * @return resource */ function get_replacings() { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."replacing ORDER BY re_name"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns a replacing by replacing key * @return resource */ function get_replacing($re_key) { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."replacing WHERE re_key = $re_key"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns all export folders * @return resource */ function get_exportfolders() { global $db_praefix; $link = connectDB(); $query = "SELECT page_key,page_path,page_title,page_exportfolder FROM ".$db_praefix."page WHERE page_start = 1 ORDER BY page_title"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns a export folder by folder key * @return resource */ function get_exportfolder($page_key) { global $db_praefix; $link = connectDB(); $query = "SELECT page_key,page_title,page_exportfolder FROM ".$db_praefix."page WHERE page_key = $page_key"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns all accounts * @return resource */ function get_accounts() { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."account WHERE (account_group != 0) ORDER BY account_lastname"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns all active accounts of the group registered users * @return resource */ function get_freeaccounts() { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."account WHERE (account_group = 1) AND (account_lock = 0) ORDER BY account_lastname"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns all active authors and administrators * @return resource */ function get_adminaccounts() { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."account WHERE (account_group != 1) AND (account_group != 0) AND (account_lock = 0) ORDER BY account_lastname"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns all active accounts with newsletter flag * @return resource */ function get_infoaccounts() { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."account WHERE (account_group != 0) AND (account_lock = 0) AND (account_info = 1) ORDER BY account_lastname"; $result = mysql_query($query); closeDB($link); return $result; } /** * returns a account search result * @return resource */ function search_accounts($accounts_lastname,$accounts_email,$accounts_group) { global $db_praefix; $link = connectDB(); $query = "SELECT * FROM ".$db_praefix."account WHERE (account_lastname like '$accounts_lastname%') AND (account_email like '%$accounts_email%') AND (account_group = $accounts_group) ORDER BY account_lastname"; $result = mysql_query($query); closeDB($link); return $result; } /** * updates an account record */ function updateAccount($page_key,$accountn_key,$accountn_email,$accountn_password,$accountn_firstname,$accountn_lastname,$accountn_telefon,$accountn_company,$accountn_homepage,$accountn_group,$accountn_lock,$accountn_info,$accountn_lang,$accountn_editor,$accountn_access,$accountn_menu) { global $db_praefix; $link = connectDB(); if ($accountn_password != "") { $accountn_password = md5($accountn_password); $query = "UPDATE ".$db_praefix."account SET account_password = '$accountn_password' WHERE account_key = $accountn_key"; $result = mysql_query($query); } $query = "UPDATE ".$db_praefix."account SET account_email = '$accountn_email', account_firstname = '$accountn_firstname', account_lastname = '$accountn_lastname', account_telefon = '$accountn_telefon', account_company = '$accountn_company', account_lang = '$accountn_lang', account_homepage = '$accountn_homepage', account_group = $accountn_group, account_lock = $accountn_lock, account_info = $accountn_info, account_editor = '$accountn_editor', account_access = $accountn_access, account_menu = $accountn_menu WHERE account_key = $accountn_key"; $result = mysql_query($query); closeDB($link); $pagekey = get_page_key($page_key); ?> ",$site_url, $page_input); $page_input = ereg_replace("",$site_admin, $page_input); if ($site_staging == 0) { $query = "UPDATE ".$db_praefix."page SET $page_edit = '$page_input' WHERE page_key = $page_key"; $result = mysql_query($query); } else { $query = "SELECT stage_key FROM ".$db_praefix."stage WHERE stage_edit = '$page_edit' AND page_key = $page_key"; $result = mysql_query($query); if (mysql_num_rows($result) == 0) { $query = "INSERT ".$db_praefix."stage (page_key,stage_edit,stage_input) VALUES ('$page_key','$page_edit','$page_input')"; $result = mysql_query($query); } else { $query = "UPDATE ".$db_praefix."stage SET stage_input = '$page_input' WHERE stage_edit = '$page_edit' AND page_key = $page_key"; $result = mysql_query($query); } } closeDB($link); $pagekey = get_page_key($page_key); ?> ','');" onmouseover="return overlib('', CAPTION, 'WYSIWYG-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','','');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','');" onmouseover="return overlib('', CAPTION, 'WYSIWYG-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','');" onmouseover="return overlib('', CAPTION, 'Item-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','','');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','');" onmouseover="return overlib('', CAPTION, 'Item-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','');" onmouseover="return overlib('', CAPTION, 'Upload-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','','');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','');" onmouseover="return overlib('', CAPTION, 'Upload-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> &cache=false','');" onmouseover="return overlib('', CAPTION, 'Upload-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> &','');" onmouseover="return overlib('', CAPTION, 'Select-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','','');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> &','');" onmouseover="return overlib('', CAPTION, 'Select-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','newdata&newtemplate=');" onmouseover="return overlib('', CAPTION, 'New-Data-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','edit/individual&include=&name=');" onmouseover="return overlib('', CAPTION, 'Individual-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','newdata&newtemplate=');" onmouseover="return overlib('', CAPTION, 'New-Data-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','');" onmouseover="return overlib('', CAPTION, 'HTML-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','','');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','');" onmouseover="return overlib('', CAPTION, 'HTML-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> "; } else { if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0))) { if ($site_staging == 0) { ?> ','');" onmouseover="return overlib('', CAPTION, 'PHP-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','','');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','');" onmouseover="return overlib('', CAPTION, 'PHP-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','');" onmouseover="return overlib('', CAPTION, 'RSS-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','','');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> ','');" onmouseover="return overlib('', CAPTION, 'RSS-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"> "); $pos3 = strpos ($url_complete, "%3c"); $pos4 = strpos ($url_complete, "%3e"); if (($pos1 === false) && ($pos2 === false) && ($pos3 === false) && ($pos4 === false)) { } else { Header("Location: $site_url"); } } /** * returns the complete url */ function getCompleteUrl() { if (isset($_SERVER["PHP_SELF"])) { $url_complete = $_SERVER["PHP_SELF"]; } else { $url_complete = ""; } if (isset($_SERVER["QUERY_STRING"])) { $url_complete .= "?".$_SERVER["QUERY_STRING"]; } else { $url_complete .= ""; } return $url_complete; } ?> 0) { $lang_list = substr($lang_list,0,strlen($lang_list)-1); } if (isset($_GET["admin"])) { include("system/language_packs/lang_".$lang_admin.".php"); } else { include("system/language_packs/lang_".$lang_input.".php"); } ?>