Beispiel #1
0
<?php

loadMod('tutor_mod');
$id = 1;
$sql = "select * from nasgor_tutorial";
$row = queryFetch($sql);
?>
<h1><?php 
echo $row['tutor_name'];
?>
</h1>
<h3><?php 
echo $row['tutor_detail'];
?>
</h3>
LIST CONTENT:<dl>
<?php 
$aTutor = listTutor($id);
foreach ($aTutor as $row) {
    ?>
<dd><a href='<?php 
    echo my_url();
    ?>
read/<?php 
    echo $row['tlist_uri'];
    ?>
' class='btn'><?php 
    echo $row['tlist_name'];
    ?>
</a></dd>
<?php 
Beispiel #2
0
<?php

loadMod('test_mod');
$a = array("Sleek, intuitive, and powerful mobile", "first front-end framework for faster and easier web development.");
foreach ($a as $s) {
    echo testUri($s) . "<br>";
}
echo "<br>a=" . ord('a');
//97
echo "<br>z=" . ord('z');
//122
echo "<br>A=" . ord('A');
echo "<br>Z=" . ord('Z');
echo "<br>1=" . ord('1');
echo "<br>0=" . ord('0');
//48
echo "<br>9=" . ord('9');
//57
echo "<hr/>";
for ($i = 48; $i < 123; $i++) {
    echo chr($i);
}
Beispiel #3
0
    MEMBUKA FILE YANG ADA DI BODY
    ==========
    */
    $ok = array_search($fileopen, $aBody);
    $f = "body/" . $aBody[$ok] . ".php";
} elseif (@isset($ok2) && $ok2 !== false) {
    /*
    ==========
    MEMBUKA FILE YANG ADA DI ACTION. Pastikan 
    di action tidak mengeluarkan tampilan
    ==========
    */
    $ok = array_search($fileopen, $aSpesial);
    $f = "action/" . $aSpesial[$ok] . ".php";
} elseif ($fileopen == '') {
    $f = "body/" . $baseBody . ".php";
} else {
    $f = "error/404.php";
}
//===================AUTOLOAD============
$target2 = $coreFolder . "/mods/myFunc.php";
require $target2;
foreach ($mods as $v) {
    $s = loadMod($v);
    if (!$s) {
        die('satu');
        $f = "error/mods.php";
        isset($modsError) ? $modsError[] = $v : ($modsError = array($v));
    }
}
include $appFolder . "/" . $f;