Exemplo n.º 1
0
    if($contentdatei=="0") { $upload_data="0"; }else{ $upload_data=$contentdatei; }    
    }	

    # update site content
   
   #            url 	name 	titel 	text 	file 	content_option 	meta_keywords 	meta_beschreibung 	home 	datum
   
	dbconnect();
    $sql_site_update = "UPDATE `".get_db_table("page")."` SET `url`='".$site_name2."', `name`='".$site_name."', `titel`='".$site_titel."', `text`='".$site_content."', `file`='".$upload_data."', `content_option`='".$contentoption."', `meta_keywords`='".$site_keywords."', `meta_beschreibung`='".$site_beschreibung."', `datum`='".$sitelastmod."'  ";
	$sql_site_update .= " WHERE `id_page`='".$work_page."' ";
    mysql_query($sql_site_update) OR die("error");
	echo '<script type="text/javascript">window.onload=popup1;</script>';
}

    $sName          = get_page_name_by_id($work_page);
	$sUrl           = get_page_url_by_id($work_page);
    $sTitle         = get_page_title_by_id($work_page);
    $sContent       = get_page_content_by_id($work_page);
    $sUpload        = get_page_upload_by_id($work_page);
    $sOption        = get_page_option_by_id($work_page);
	$mkeywords      = get_page_keywords_by_id($work_page);
	$mbeschreibung  = get_page_beschreibung_by_id($work_page);
	$slastmod		= get_page_date_by_id($work_page);

if($sOption=="1") { $check_1="checked"; } else{ $check_1=""; }
if($sOption=="0") { $check_2="checked"; } else{ $check_2=""; }
if($sUpload=="" || $sUpload=="0") { $uploadlist='<option value="0">Keine Daten</option>'; } else { $uploadlist="<option value='".$sUpload."'>".$sUpload."</option>"; }

?>
<script language="javascript" type="text/javascript">  
  tinyMCE.init({
Exemplo n.º 2
0
        $rs = $db->fetch_assoc();
    }
    if (empty($rs)) {
        $db->select('*', '' . DB_PREFIX . 'pages', 'page_url = ? and page_status = 1', array(get_page_url_by_id(get_configuration('error_page'))), '', 1);
        $rs = $db->fetch_assoc();
        $exception = 'pf-default-error';
    }
    if (empty($rs)) {
        $db->select('*', '' . DB_PREFIX . 'pages', 'page_url = ? and page_status = 1', array($exception), '', 1);
        $rs = $db->fetch_assoc();
    }
}
if (!empty($rs)) {
    // Check visible page
    if (!check_visible_page($rs['page_visible'])) {
        header('Location: ' . public_base_url() . get_page_url_by_id(get_configuration('error_page')));
        exit;
    }
    // Background
    $background_data = json_decode($rs['page_theme_options'], true);
    $background_option = !empty($background_data['background']) && (!empty($background_data['data']['color']) || !empty($background_data['data']['image'])) ? $background_data['background'] : '';
    $wrapper_background = !empty($background_data['wrapper_background']) ? $background_data['wrapper_background'] : '';
    // Set info head (Title, Keyword, Description)
    $head_info = array('title' => get_configuration('site_name') . ' - ' . (!empty($rs['page_meta_title']) ? $rs['page_meta_title'] : ''), 'keywords' => !empty($rs['page_meta_keywords']) ? $rs['page_meta_keywords'] : get_configuration('site_meta_keywords'), 'description' => !empty($rs['page_meta_description']) ? $rs['page_meta_description'] : get_configuration('site_meta_description'), 'charset' => empty($charset) ? "utf-8" : $charset);
    set_head_info($head_info);
    load_admin_plugins(DEFAULT_PLUGIN_PATH, 'public_init');
    load_active_plugins('public_init');
    if (is_ajax()) {
        $tags = Pf::shortcode()->get_tags();
        foreach ($tags as $ns => $tag) {
            if (!empty($_GET[$ns . '_code'])) {