<?
/*
Copyright (C)2004-2007 Matthieu Perez - hide@address.com
This file is part of PhPress.
PhPress is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
PhPress 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 PhPress. If not, see <http://www.gnu.org/licenses/>.
*/
////////////////////
// blockplus.php
session_start();
require 'program/common/constantes.php' ;
require LANG_PATH . $lang ."/msg.php";
require PROG_COM_PATH .'functions_mysql.php';
require PROG_COM_PATH . 'functions_common.php';
//require 'program/html/default.css';
require 'program/html/lightblue.css';
//print 'blockplus.php<hr>';
// get block infos
$check_block_request="SELECT IdArticle, BlockType, ContentType FROM Blocks WHERE IdBlock='$current_block' ";
$check_block_query_result=sql_request($db, $check_block_request) ;
$check_block_result=mysql_fetch_array($check_block_query_result);
$block_id_art=$check_block_result[0];
$block_blocktype=$check_block_result[1];
$block_contenttype=$check_block_result[2];
if($block_art_ref=='new')
{ include PROG_ANA_PATH ."new_article.php"; }
else if($block_art_ref=='existing')
{ include PROG_ANA_PATH ."blocks_look_for_article.php"; }
//else { print '<br>main page'; }
if($blocplus_exec)
{
setcookie('exist_article_cat', $article_cat);
print '
<script language=\'javascript\'>
parent.frames[\'blockplus\'].location=\'blockplus.php\';
</script>';
}
if($choosen_article)
{ include PROG_ANA_PATH ."block_exec.php" ; }
if($art_chg_pg)
{
$get_issue_page_request="SELECT Page from Pages WHERE Filename = '$article_page_no'";
$get_issue_page_query_result=sql_request($db, $get_issue_page_request) ;
$get_issue_page_result=mysql_fetch_array($get_issue_page_query_result);
$chg_page_pgno=$get_issue_page_result[0];
setcookie('article_originefile', $article_page_no);
setcookie('article_originepage', $chg_page_pgno);
print '
<script language=\'javascript\'>
parent.frames[\'blockplus\'].location=\'blockplus.php\';
</script>';
}
?>