Beispiel #1
0
	<link type="text/css" rel="stylesheet" href="css/main.css" />
	<link type="text/css" rel="stylesheet" href="css/themes.css" />

	<script type="text/javascript" src="js/vendor/modernizr-2.7.1-respond-1.4.2.min.js"></script>
</head>
<body>
    <div class="top"><div class="colors"></div></div>
	<div id="login-container" class="animation-fadeIn">
		<div class="login-title text-center">
			<h1><strong>Recover Panel</strong></h1>
		</div>
		<div class="block remove-margin">
			<?php 
    include_once '../po-library/po-database.php';
    $table = new PoTable('users');
    $currentUser = $table->findByAnd(username, $forgetuser, forget_key, $forgetkey);
    $currentUser = $currentUser->current();
    if ($currentUser > 0) {
        if ($currentUser->blokir == "N") {
            $newcode = "123456";
            $pass = md5($newcode);
            $data = array('password' => $pass, 'forget_key' => '');
            $table->updateByAnd('username', $forgetuser, 'forget_key', $forgetkey, $data);
            ?>
							<div class="alert alert-success alert-dismissable">
								<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
								<h4><i class="fa fa-check-circle"></i> Success</h4>
								Your password has been <a href="javascript:void(0)" class="alert-link">successfully reset</a> !
							</div>
						<?php 
        } else {
Beispiel #2
0
    switch ($_GET[act]) {
        default:
            ?>
	<div class="block full">
		<div class="block-title"><h2><?php 
            echo $langcomponent1;
            ?>
</h2></div>
		<div class="table-responsive">
		<?php 
            $tablecomponent = new PoTable('component');
            $components = $tablecomponent->findAll(id_component, DESC);
            echo "<table cellpadding='0' cellspacing='0' border='0' class='table table-vcenter table-condensed table-bordered' id='table-datatable'>\r\n\t\t\t\t<thead><tr>\r\n\t\t\t\t\t<th>Id Data</th>\r\n\t\t\t\t\t<th>{$langcomponent3}</th>\r\n\t\t\t\t\t<th>{$langcomponent4}</th>\r\n\t\t\t\t\t<th>{$langcomponent5}</th>\r\n\t\t\t\t\t<th>{$langcomponent6}</th>\r\n\t\t\t\t</tr></thead><tbody>";
            $no = 1;
            $tableroleaccess = new PoTable('user_role');
            $currentRoleAccess = $tableroleaccess->findByAnd(id_level, $_SESSION['leveluser'], module, 'component');
            $currentRoleAccess = $currentRoleAccess->current();
            foreach ($components as $component) {
                $pecahurl = explode("-", $component->component);
                $url = $pecahurl[1];
                if ($currentRoleAccess->delete_access == "Y") {
                    $tbldelete = "<a class='btn btn-xs btn-danger alertdel' id='{$component->id_component}' data-toggle='tooltip' title='{$langaction2}'><i class='fa fa-times'></i></a>";
                }
                echo "<tr>\r\n\t\t\t\t\t\t<td>{$component->id_component}</td>\r\n\t\t\t\t\t\t<td>{$component->component}</td>\r\n\t\t\t\t\t\t<td>{$component->date}</td>\r\n\t\t\t\t\t\t<td>{$component->table_name}</td>\r\n\t\t\t\t\t\t<td class='text-center'>\r\n\t\t\t\t\t\t\t<div class='btn-group btn-group-xs'>\r\n\t\t\t\t\t\t\t\t<a href='admin.php?mod={$url}' class='btn btn-xs btn-default' data-toggle='tooltip' title='{$langaction3}'><i class='fa fa-pencil-square-o'></i></a>\r\n\t\t\t\t\t\t\t\t<a href='?mod=component&act=importtable&id={$component->id_component}' class='btn btn-xs btn-default' data-toggle='tooltip' title='{$langaction4}'><i class='fa fa-sign-out'></i></a>\r\n\t\t\t\t\t\t\t\t{$tbldelete}\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>";
                $no++;
            }
            echo "</tbody></table>";
            ?>
		</div>
	</div>
	<div id="alertdel" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
Beispiel #3
0
}

EOS;
            }
            file_put_contents($dirpath . "/proses.php", $dumpingproses21, FILE_APPEND | LOCK_EX);
        }
        $dumpingproseslast = <<<EOS
}
?>
EOS;
        file_put_contents($dirpath . "/proses.php", $dumpingproseslast, FILE_APPEND | LOCK_EX);
        echo "<li class='list-group-item'>- WRITE CODE INTO `proses.php`</li>";
        // Registration new component to component list
        $regcomponent = "po-" . $compo_name;
        $tablereg = new PoTable('component');
        $currentReg = $tablereg->findByAnd(component, $regcomponent, table_name, $compo_table);
        $currentReg = $currentReg->current();
        if ($currentReg == "0") {
            $tablereg->save(array('component' => $regcomponent, 'table_name' => $compo_table, 'date' => $tgl_sekarang));
        }
        // Finish all step
        echo "<li class='list-group-item'>- SUCCESSFULLY GENERATE NEW COMPONENT</li>";
        ?>
                    </ul>
                </div>
                <div class="panel-footer">
                    <a class="btn btn-sm btn-primary" href="../../admin.php?mod=<?php 
        echo $compo_name;
        ?>
">Go To <?php 
        echo $ucompo_name;
******************************************************* 
-->
<?php 
    include_once "po-content/{$folder}/header.php";
    ?>


<!-- 
*******************************************************
	Main Content Template
******************************************************* 
-->
		<?php 
    $title = $val->validasi($_GET['idv'], 'xss');
    $tablealb = new PoTable('valbum');
    $currentAlb = $tablealb->findByAnd(seotitle, $title, active, 'Y');
    $currentAlb = $currentAlb->current();
    $idalb = $currentAlb->id_album;
    ?>
		<?php 
    if ($currentAlb != "0") {
        ?>
		<!-- **Main - Starts** -->
		<div id="main">
        	<div class="breadcrumb-wrapper type2">
            	<div class="container">
                	<div class="main-title">
                    	<h1>Galeri Photo</h1>
                        <div class="breadcrumb">
                            <a href="<?php 
        echo $website_url;
Beispiel #5
0
 $favicon = $currentSet->favicon;
 $mode_maintenance = $currentSet->website_maintenance;
 $website_cache = $currentSet->website_cache;
 $website_cache_time = $currentSet->website_cache_time;
 $member_register = $currentSet->member_register;
 $ipstat = $_SERVER['REMOTE_ADDR'];
 $tanggalstat = date("Ymd");
 $waktustat = time();
 $tablestat = new PoTable('traffic');
 $totalstat = $tablestat->numRowByAnd(ip, $ipstat, tanggal, $tanggalstat);
 if ($totalstat == 0) {
     $tablestatp = new PoTable('traffic');
     $tablestatp->save(array('ip' => $ipstat, 'tanggal' => $tanggalstat, 'hits' => 1, 'online' => $waktustat));
 } else {
     $tablestatp2 = new PoTable('traffic');
     $statpro = $tablestatp2->findByAnd(ip, $ipstat, tanggal, $tanggalstat);
     $statpro = $statpro->current();
     $hitspro = $statpro->hits;
     $hitspro = $hitspro + 1;
     $datastat = array('hits' => $hitspro, 'online' => $waktustat);
     $tablestat2 = new PoTable('traffic');
     $tablestat2->updateByAnd('ip', $ipstat, 'tanggal', $tanggalstat, $datastat);
 }
 /*--- hapus baris ini dan ubah urlnya jika web Anda sudah di hosting
 	function facebook_shares($url){
 		$fql  = "SELECT url, normalized_url, share_count, like_count, comment_count, ";  
 		$fql .= "total_count, commentsbox_count, comments_fbid, click_count FROM ";
 		$fql .= "link_stat WHERE url = '".$url."'";
 		$apifql="https://api.facebook.com/method/fql.query?format=json&query=".urlencode($fql);  
 		$fb_json=file_get_contents($apifql);
 		return json_decode($fb_json);
Beispiel #6
0
******************************************************* 
-->
<?php 
    include_once "po-content/{$folder}/header.php";
    ?>


<!-- 
*******************************************************
	Main Content Template
******************************************************* 
-->
	<?php 
    $title = $val->validasi($_GET['idc'], 'xss');
    $tabledcat = new PoTable('category');
    $currentDcat = $tabledcat->findByAnd(seotitle, $title, active, 'Y');
    $currentDcat = $currentDcat->current();
    $iddcat = $currentDcat->id_category;
    ?>
	<?php 
    if ($currentDcat != "0") {
        ?>
	<!-- Breadcrumb -->
	<section class="breadcrumb">
		<div class="container">
			<div class="row">
				<div class="col-sm-12">
					<h1><?php 
        echo $currentDcat->title;
        ?>
</h1>
Beispiel #7
0
	<link type="text/css" rel="stylesheet" href="css/main.css" />
	<link type="text/css" rel="stylesheet" href="css/themes.css" />

	<script type="text/javascript" src="js/vendor/modernizr-2.7.1-respond-1.4.2.min.js"></script>
</head>
<body>
    <div class="top"><div class="colors"></div></div>
	<div id="login-container" class="animation-fadeIn">
		<div class="login-title text-center">
			<h1><strong>Activation Account Panel</strong></h1>
		</div>
		<div class="block remove-margin">
			<?php 
    include_once '../po-library/po-database.php';
    $table = new PoTable('users');
    $currentUser = $table->findByAnd(username, $activeuser, id_session, $key);
    $currentUser = $currentUser->current();
    if ($currentUser > 0) {
        if ($currentUser->blokir == "Y") {
            $data = array('blokir' => 'N');
            $table->updateByAnd('username', $activeuser, 'id_session', $key, $data);
            ?>
							<div class="alert alert-success alert-dismissable">
								<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
								<h4><i class="fa fa-check-circle"></i> Success</h4>
								Your account have been <a href="javascript:void(0)" class="alert-link">activated</a> !
							</div>
						<?php 
        } else {
            ?>
							<div class="alert alert-info alert-dismissable">
Beispiel #8
0
						<button type="button" id="btnsubmitext" class="btn btn-sm btn-primary"><i class="fa fa-check"></i> Submit</button>
					</div>
				</form>
			</div>
		</div>
	</div>
	<p style="width:100%; height:100px;">&nbsp;</p>
<?php 
            break;
        case "edit":
            $valid = $val->validasi($_GET['id'], 'sql');
            $table = new PoTable('post');
            if ($_SESSION[leveluser] == '1') {
                $currentPosts = $table->findBy(id_post, $valid);
            } else {
                $currentPosts = $table->findByAnd(id_post, $valid, editor, $_SESSION['iduser']);
            }
            $currentPosts = $currentPosts->current();
            if ($currentPosts == '0') {
                ?>
	<div class="block block-alt-noborder">
		<h3 class="sub-header">Ooops! <?php 
                echo $langpagenotfound1;
                ?>
</h3>
		<p>&nbsp;</p>
		<p align="center">
			<?php 
                $url = rtrim("http://" . $_SERVER['HTTP_HOST'], "/") . $_SERVER['PHP_SELF'];
                $url2 = preg_replace("/\\/(admin\\.php\$)/", "", $url);
                $siteurl = $url2;
Beispiel #9
0
******************************************************* 
-->
<?php 
    include_once "po-content/{$folder}/header.php";
    ?>


<!-- 
*******************************************************
	Main Content Template
******************************************************* 
-->
		<?php 
    $title = $val->validasi($_GET['idp'], 'xss');
    $tablepag = new PoTable('pages');
    $currentPag = $tablepag->findByAnd(seotitle, $title, active, 'Y');
    $currentPag = $currentPag->current();
    $idpag = $currentPag->id_pages;
    $content = $currentPag->content;
    $content = html_entity_decode($content);
    ?>
		<?php 
    if ($currentPag != "0") {
        ?>
		<!-- Breadcrumb -->
		<section class="breadcrumb">
			<div class="container">
				<div class="row">
					<div class="col-sm-12">
						<h1><?php 
        echo $currentPag->title;
Beispiel #10
0
<?php

include_once '../po-library/po-database.php';
function anti_injection($data)
{
    $filter = stripslashes(strip_tags(htmlspecialchars($data, ENT_QUOTES)));
    return $filter;
}
$mod = $_POST['mod'];
$act = $_POST['act'];
if ($mod == 'login' and $act == 'searchlocktype') {
    $username = anti_injection($_POST['username']);
    $table = new PoTable('users');
    $currentUser = $table->findByAnd(username, $username, blokir, "N");
    $currentUser = $currentUser->current();
    echo $currentUser->locktype;
} elseif ($mod == 'login' and $act == 'proclogin') {
    $username = anti_injection($_POST['username']);
    $pass = anti_injection(md5($_POST['password']));
    if (!ctype_alnum($username) or !ctype_alnum($pass)) {
        header('location:index.php?errormsg=1');
    } else {
        $table = new PoTable('users');
        $currentUser = $table->findByLogin(username, $username, password, $pass, blokir, "N");
        $currentUser = $currentUser->current();
        if ($currentUser > 0) {
            session_start();
            include_once "timeout.php";
            $_SESSION['iduser'] = $currentUser->id_user;
            $_SESSION['namauser'] = $currentUser->username;
            $_SESSION['namalengkap'] = $currentUser->nama_lengkap;
******************************************************* 
-->
<?php 
    include_once "po-content/{$folder}/header.php";
    ?>


<!-- 
*******************************************************
	Main Content Template
******************************************************* 
-->
		<?php 
    $title = $val->validasi($_GET['ide'], 'xss');
    $tableevt = new PoTable('event');
    $currentEvt = $tableevt->findByAnd(seotitle, $title, active, 'Y');
    $currentEvt = $currentEvt->current();
    $idevt = $currentEvt->id_event;
    $content = $currentEvt->content;
    $content = html_entity_decode($content);
    $startevt = $currentEvt->startevt;
    $startevt = explode(' ', $startevt);
    $endevt = $currentEvt->endevt;
    $endevt = explode(' ', $endevt);
    ?>
		<?php 
    if ($currentEvt != "0") {
        ?>
		<!-- **Main - Starts** -->
		<div id="main">
        	<div class="breadcrumb-wrapper type2">