Example #1
0
 public function BuildStandardFileEditor()
 {
     $tpl = new Template("Lib/JPF/templates/FileEditor.tpl");
     $tpl->DefineBlock("FORMBLOCK");
     $tpl->DefineBlock("TXTAREA");
     $content = file_get_contents($this->file);
     $tpl->setVars("TXTAREA", "CONTENT", $content);
     $txtarea = $tpl->ParseBlock("TXTAREA");
     $tpl->setVars("FORMBLOCK", "CONTENT", $txtarea);
     return $tpl->ParseBlock("FORMBLOCK");
 }
Example #2
0
 public static function BuildStandardSearch($page, $list = 1)
 {
     $tpl = new Template("lib/JPF/templates/Search.tpl");
     $tpl->DefineBlock("SEARCHBLOCK");
     $tpl->setVars("SEARCHBLOCK", "SEARCHPAGE", $page);
     $tpl->setVars("SEARCHBLOCK", "LIST", $list);
     $parsed = $tpl->ParseBlock("SEARCHBLOCK");
     return $parsed;
 }
Example #3
0
 function BuildStandardLogin()
 {
     $tpl = new Template("Lib/JPF/templates/Login.tpl");
     $tpl->DefineBlock("LOGINBLOCK");
     $tpl->setVars("LOGINBLOCK", "POSTPAGE", "LoginPost.php");
     $hiddenHTM = $this->BuildSessionVars();
     $parsed = $tpl->ParseBlock("LOGINBLOCK");
     $parsed = $parsed . $hiddenHTM;
     return $parsed;
 }
Example #4
0
<?php

$debug = 1;
require_once '../JPFLibs.php';
libadd("lib.JPF");
$redirect = URLEncrypter::Decrypt($_GET['redirect']);
$tpl = new Template("lib/JPF/templates/AreYouSure.tpl");
$tpl->DefineBlock("SUREBLOCK");
$tpl->SetVars("SUREBLOCK", "REDIRECT", $redirect);
$htm = $tpl->ParseBlock("SUREBLOCK");
$tpl->Show($htm);
Example #5
0
<?php

/*
 * Imports trough JimberLibs
 */
$debug = 1;
require_once 'lib/JimberLibs.php';
libadd("lib.Jimber");
libadd("lib.Jimber.Data.MySQL");
//requireLogin(0);
/*
 * Start of page specific stuff
 */
$tpl = new Template("templates/page.tpl");
$tpl->DefineBlock("PAGEBLOCK");
$tpl->DefineBlock("CONTENTBLOCK");
$tpl->setVars("PAGEBLOCK", "CONTENT", $tpl->ParseBlock("CONTENTBLOCK"));
$page = $tpl->ParseBlock("PAGEBLOCK");
$tpl->Show($page);