/web/htdocs/www.euroroma.net/home/zenphoto/zp-core/controller.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php

/**
 * Root-level include that handles all user requests.
 * @package core
 */

// force UTF-8 Ø

/*** Request Handler **********************
 ******************************************/
// This is the main top-level action handler for user requests. It parses a
// request, validates the input, loads the appropriate objects, and sets
// the context. All that is done in functions-controller.php.

zp_load_gallery();    //    load the gallery and set the context to be on the front-end
$zp_request zp_load_request();
// handle any passwords that might have been posted
if (!zp_loggedin()) {
    
zp_handle_password();
}

// Handle any comments that might be posted.
$_zp_comment_error zp_apply_filter('handle_comment'false);

/*** Consistent URL redirection ***********
 ******************************************/
// Check to see if we use mod_rewrite, but got a query-string request for a page.
// If so, redirect with a 301 to the correct URL.
// This is mostly helpful for SEO, but also for users. Consistent URLs are a Good Thing.

fix_path_redirect();

?>