Exemplo n.º 1
0
<?php

date_default_timezone_set('UTC');
require_once "wakaHelper.php";
require_once "renderHelper.php";
require_once "image.php";
require_once "imagesHelper.php";
$dateNow = date("Y-m-d H:i:s");
if (wakaExists($_REQUEST['w'])) {
    $waka = readWaka($_REQUEST['w']);
    if (isset($waka['users'][$_REQUEST['u']]['type'])) {
        $user['type'] = $waka['users'][$_REQUEST['u']]['type'];
        $user['email'] = $waka['users'][$_REQUEST['u']]['email'];
    } else {
        $user['type'] = 'public';
        $user['email'] = 'notset';
    }
    $out = array();
    if (strnatcmp($waka['dateUsersTouched'], $_REQUEST['d']) > 0) {
        //echo $waka['starter']['dateTouched'].' > '.$_REQUEST['d'];
        $c = count($out);
        $out[$c]['html'] = renderHead($waka, $user);
        $out[$c]['location'] = 'head';
        $out[$c]['type'] = 'changed';
    }
    if (strnatcmp($waka['starter']['dateContentTouched'], $_REQUEST['d']) > 0) {
        $c = count($out);
        $out[$c]['html'] = renderItemContent($waka['starter'], 'starter');
        $out[$c]['location'] = 'starter_content';
        $out[$c]['type'] = 'changed';
        $c = count($out);
Exemplo n.º 2
0
<div id="loading" class="loading" style="display:none; float:right; padding-right:10px;">loading...</div>







<?php 
date_default_timezone_set('UTC');
require_once "wakaHelper.php";
require_once "renderHelper.php";
require_once "image.php";
require_once "imagesHelper.php";
if (isset($_REQUEST['w']) && wakaExists($_REQUEST['w'])) {
    $waka = readWaka($_REQUEST['w']);
    //print_r($waka);
    if (!isset($_REQUEST['u'])) {
        $_REQUEST['u'] = 'public';
    } else {
        if (!isset($waka['users'][$_REQUEST['u']])) {
            $_REQUEST['u'] = 'public';
        }
    }
    $wakaisactive = true;
    if (isset($_REQUEST['v']) && $_REQUEST['v'] == 'print') {
        renderWakaPrint($waka);
    } else {
        renderWaka($waka);
    }