예제 #1
0
파일: view.php 프로젝트: rair/yacs
 *
 * @author Bernard Paques
 * @author GnapZ
 * @tester Moi-meme
 * @tester Guillaume Perez
 * @tester AnsteyER
 * @reference
 * @license http://www.gnu.org/copyleft/lesser.txt GNU Lesser General Public License
 */
// common definitions and initial processing
include_once '../shared/global.php';
include_once '../links/links.php';
include_once '../locations/locations.php';
include_once 'visits.php';
Safe::define('SECTIONS_PER_PAGE', 30);
Safe::define('ARTICLES_PER_PAGE', 30);
// look for the id
$id = NULL;
if (isset($_REQUEST['id'])) {
    $id = $_REQUEST['id'];
} elseif (isset($context['arguments'][0])) {
    $id = $context['arguments'][0];
} elseif (Surfer::is_logged()) {
    $id = Surfer::get_id();
}
$id = strip_tags($id);
// no follow-up page yet
$zoom_type = '';
$zoom_index = 1;
// view.php?id=12&articles=2
if (isset($_REQUEST['articles']) && ($zoom_index = $_REQUEST['articles'])) {