예제 #1
0
<?php

$debug = 1;
//ini_set('display_errors', 'On');
require_once "JPFLibs.php";
libadd("lib.JPF");
libadd("lib.JPF.Data.MySQL");
echo "Hello admin. <a href=\"JPF/Entitygen/Fetcher.php\" > Do you want to generate some entities? </a>";
예제 #2
0
<?php

/*
* Imports trough SmartLibs
@TODO: SECURITY????
*/
require_once '../../../../JPFLibs.php';
libadd("lib.JPF.Data.MySQL");
libadd("lib.JPF");
if (isset($_GET["type"]) && isset($_GET["ID"])) {
    $class = $_GET["type"];
    $element = new $class($_GET["ID"]);
    $element->Delete();
    header("Location: " . GlobalVars::$STARTPATH . base64_decode($_GET["pb"]));
}
예제 #3
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);