Exemplo n.º 1
0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * PHP Template.
 * Author: Sheetal Patil. Sun Microsystems, Inc.
 */
session_start();
require_once "../etc/config.php";
require_once '../etc/phpcassa_config.php';
$connection = DBConnection::getInstance();
$un = $_SESSION["uname"];
$events = Events_Controller::getInstance();
$flag = true;
$url = RequestUrl::getInstance();
$page = $_REQUEST['page'];
$href = $url->getGetRequest();
if (!is_null($page)) {
    $href = substr($href, 0, strrpos($href, "&"));
}
if ($href == "") {
    $href = "?";
}
//Start Pagination
if (!is_null($page)) {
    $numPages = $_SESSION["numPages"];
    $_SESSION["currentpage"] = $page;
    $curr_page = $_SESSION["currentpage"];
Exemplo n.º 2
0
function noCachePage()
{
    // error_log('noCachePage Called',0);
    global $signedinuser, $page, $flag, $url, $href, $eventdate, $zipcode;
    global $order, $numPages, $curr_page, $prev_page, $next_page, $offset;
    $connection = DBConnection::getInstance();
    $eventlist = Events_Controller::getInstance();
    $tagcloud = Tags_Controller::getInstance();
    if (!is_null($page)) {
        $numPages = $eventlist->getNumPages($zipcode, $eventdate, $connection);
    }
    $indexEvents = $eventlist->getIndexEvents($zipcode, $order, $eventdate, $offset, null, $signedinuser, $connection);
    ob_start();
    require "../views/paginate.php";
    $paginateView = ob_get_clean();
    ob_start();
    require "../views/index.php";
    $fillContent = ob_get_clean();
    if ($flag == "authenticated") {
        $fillMessage = "<font color=green>Successfully logged in!</font>";
    }
    require "../views/site.php";
}