コード例 #1
0
ファイル: admin_mnmaster.php プロジェクト: nickohappy7/sister
<?php
if (!defined('AURACMS_admin')) {
	Header("Location: ../../../index.php");
	exit;
}
if (!cek_login ()){
   $admin .='<p class="judul">Access Denied !!!!!!</p>';
   exit;
}

$admin  .='<legend>MASTER</legend>';
if($_GET['aksi']==""){
$admin .= '<div align="center">
<table width="70%" class="border3">
<tr align="center">
<td>
<a href="admin.php?pilih=gelombang&mod=yes">
<img src="images/jenjang.gif" width="150px" height="150px"><br>
</a></td>
</tr>
<tr align="center">
<td>
<a href="admin.php?pilih=gelombang&mod=yes"><br>GELOMBANG
</a></td>
</tr>
</table></div><br><br>
';
}
echo $admin;
?>
コード例 #2
0
ファイル: admin_produk.php プロジェクト: rekysda/sistermetta
<?php
if (!defined('AURACMS_admin')) {
	Header("Location: ../index.php");
	exit;
}
include "includes/excel_reader2.php";
//$index_hal = 1;
if (!cek_login ()){   
	
$admin .='<p class="judul">Access Denied !!!!!!</p>';
}else{

$JS_SCRIPT= <<<js
<script language="JavaScript" type="text/javascript">
$(document).ready(function() {
    $('#example').dataTable();
} );
</script>
js;
$script_include[] = $JS_SCRIPT;
$admin  .='<legend>PRODUK</legend>';
$admin  .= '<div class="border2">
<table  width="25%"><tr align="center">
<td>
<a href="admin.php?pilih=produk&mod=yes">PRODUK</a>&nbsp;&nbsp;
</td>
<td>
<a href="admin.php?pilih=produk&mod=yes&aksi=import">IMPORT PRODUK</a>&nbsp;&nbsp;
</td>
</tr></table>
</div>';
コード例 #3
0
ファイル: menupos.php プロジェクト: rekysda/akademik
<?php

global $koneksi_db;
if (isset($_POST['submit_login']) && @$_POST['loguser'] == 1) {
    $login .= aura_login();
}
if (cek_login()) {
    $username = $_SESSION['UserName'];
    $levelakses = $_SESSION['LevelAkses'];
    if ($levelakses == "Administrator") {
        echo '<div class="border2">
<table width="100%"><tr align="center">
<td>
<a href="admin.php"><img src="images/home.jpg" width="50px"><br>HOME</a>&nbsp;&nbsp;
</td>
<td>
<a href="admin.php?pilih=mnmaster&mod=yes"><img src="images/master.jpg" width="50px"><br>MASTER</a>&nbsp;&nbsp;
</td>
<td>
<a href="admin.php?pilih=mntransaksi&mod=yes"><img src="images/transaksi.jpg" width="50px"><br>TRANSAKSI</a>&nbsp;&nbsp;
</td>
<td>
<a href="admin.php?pilih=mnlaporan&mod=yes"><img src="images/report.png" width="50px" height="50px"><br>LAPORAN</a>&nbsp;&nbsp;
</td>
<td>
<a href="admin.php?pilih=mnlinkssites&mod=yes"><img src="images/linkssites.jpg" width="50px" height="50px"><br>LINK SITUS</a>&nbsp;&nbsp;
</td>
<td>
<a href="admin.php?pilih=setting&mod=yes"><img src="images/tools.png" width="50px"><br>SETTING</a>&nbsp;&nbsp;
</td>
<td>
コード例 #4
0
<?php

include_once './inc/head.php';
cek_login();
?>
<script src="tinymce/tinymce.min.js"></script>
<script>tinymce.init({selector: 'textarea'});</script>
<!-- Page-Level Plugin CSS - Tables -->
<link href="css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
<body>
    <div id="wrapper">
        <?php 
include_once './inc/header.php';
include_once './inc/side_nav.php';
?>
        <div id="page-wrapper">
            <!-- /.row -->
            <br><br>
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Manage Products
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-12" style="margin-bottom: 20px;">
                                    <a href="product_add.php"><div class="btn btn-success pull-right"><i class="fa fa-plus"></i> Add Product</div></a>
                                </div>
                            </div>
                            <div class="row">
コード例 #5
0
<?php

session_start();
if (isset($_POST['username']) && isset($_POST['password']) && $_POST['username'] != "" && $_POST['password'] != "") {
    include '../inc/blob.php';
    if (cek_login($_POST['username'], $_POST['password'])) {
        header('location: ../');
        echo "<script> window.location = '../'; </script>";
    } else {
        header('location: ./?err=Please check again your user ID and Password..!');
    }
} else {
    header('location: ./?err=Please check again your user ID and Password..!');
}
コード例 #6
0
<?php
if (!defined('AURACMS_admin')) {
	Header("Location: ../../../index.php");
	exit;
}
if (!cek_login ()){
   $admin .='<p class="judul">Access Denied !!!!!!</p>';
   exit;
}

$admin  .='<legend>LAPORAN</legend>';
if($_GET['aksi']==""){
$admin .= '<div align="center">
<table width="70%" class="border3">
<tr align="center">
<td>
<a href="admin.php?pilih=laporanproduk&mod=yes">
<img src="images/lapproduct.jpg" width="150px"><br>
</a></td>
<td>
<a href="admin.php?pilih=laporanrugilaba&mod=yes">
<img src="images/rugilaba.png" width="150px"><br>
</a></td>
<td>
<a href="admin.php?pilih=laporanpo&mod=yes">
<img src="images/lapproduct.jpg" width="150px"><br>
</a></td>
</tr>
<tr align="center">
<td>
コード例 #7
0
<?php
if (!defined('AURACMS_admin')) {
	Header("Location: ../../../index.php");
	exit;
}
if (!cek_login ()){
   $admin .='<p class="judul">Access Denied !!!!!!</p>';
   exit;
}

$admin  .='<legend>PURCHASE REQUISITION</legend>';
if($_GET['aksi']==""){
$admin .= '<div align="center">
<table width="50%" class="border3">
<tr align="center">
<td>
<a href="admin.php?pilih=pr&mod=yes">
<img src="images/product.jpg" width="150px"><br>
</a></td>
<td><img src="images/arrowright.png" width="150px"></td>
<td>
<a href="admin.php?pilih=laporanpermintaan&mod=yes">
<img src="images/lapproduct.jpg" width="150px"><br>
</a></td>
</tr>
<tr align="center">
<td>
<a href="admin.php?pilih=pr&mod=yes"><br>PURCHASE REQUISITION
</a></td>
<td></td>
コード例 #8
0
<?php
if (!defined('AURACMS_admin')) {
	Header("Location: ../../../index.php");
	exit;
}
if (!cek_login ()){
   $admin .='<p class="judul">Access Denied !!!!!!</p>';
   exit;
}

$admin  .='<legend>PENJUALAN</legend>';
if($_GET['aksi']==""){
$admin .= '<div align="center">
<table width="50%" class="border3">
<tr align="center">
<td>
<a href="admin.php?pilih=penjualan&mod=yes">
<img src="images/product.jpg" width="150px"><br>
</a></td>
<td><img src="images/arrowright.png" width="150px"></td>
<td>
<a href="admin.php?pilih=laporanpenjualan&mod=yes">
<img src="images/lapproduct.jpg" width="150px"><br>
</a></td>
</tr>
<tr align="center">
<td>
<a href="admin.php?pilih=penjualan&mod=yes"><br>PENJUALAN
</a></td>
<td></td>
コード例 #9
0
<?php
if (!defined('AURACMS_admin')) {
	Header("Location: ../../../index.php");
	exit;
}
if (!cek_login ()){
   $admin .='<p class="judul">Access Denied !!!!!!</p>';
   exit;
}

$admin  .='<legend>MASTER</legend>';
if($_GET['aksi']==""){
$admin .= '<div align="center">
<table width="70%" class="border3">
<tr align="center">
<td>
<a href="admin.php?pilih=jenjang&mod=yes">
<img src="images/jenjang.gif" width="150px" height="150px"><br>
</a></td>
<td>
<a href="admin.php?pilih=kategori&mod=yes">
<img src="images/kategori.png" width="150px" height="150px"><br>
</a></td>
<td>
<a href="admin.php?pilih=produk&mod=yes">
<img src="images/product.jpg" width="150px"><br>
</a></td>
</tr>
<tr align="center">
<td>
コード例 #10
0
<?php
if (!defined('AURACMS_admin')) {
	Header("Location: ../../../index.php");
	exit;
}
if (!cek_login ()){
   $admin .='<p class="judul">Access Denied !!!!!!</p>';
   exit;
}

$admin  .='<legend>HUTANG / PIUTANG</legend>';
if($_GET['aksi']==""){
$admin .= '<div align="center">
<table width="50%" class="border3">
<tr align="center">
<td>
<a href="admin.php?pilih=hutang&mod=yes">
<img src="images/bayar.jpg" width="150px"><br>
</a></td>
<td><img src="images/arrowright.png" width="150px"></td>
<td>
<a href="admin.php?pilih=hutang&mod=yes&aksi=cetak">
<img src="images/lapbayar.jpg" width="150px"><br>
</a></td>
</tr>
<tr align="center">
<td>
<a href="admin.php?pilih=hutang&mod=yes"><br>HUTANG
</a></td>
<td></td>
コード例 #11
0
ファイル: normal.php プロジェクト: rekysda/elearningmetta
<?php

if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
    header("HTTP/1.1 404 Not Found");
    exit;
}
if (!cek_login() or cek_login()) {
    Header("Location: login.php");
}
コード例 #12
0
<?php
if (!defined('AURACMS_admin')) {
	Header("Location: ../../../index.php");
	exit;
}
if (!cek_login ()){
   $admin .='<p class="judul">Access Denied !!!!!!</p>';
   exit;
}

$admin  .='<legend>LAPORAN</legend>';
if($_GET['aksi']==""){
$admin .= '<div align="center">
<table width="70%" class="border3">
<tr align="center">
<td>
<a href="admin.php?pilih=laporanproduk&mod=yes">
<img src="images/lapproduct.jpg" width="150px"><br>
</a></td>
</tr>
<tr align="center">
<td>
<a href="admin.php?pilih=laporanproduk&mod=yes"><br>LAPORAN STOK AWAL 
</a></td>
</tr>
</table></div><br><br>
';
}
echo $admin;
?>
コード例 #13
0
ファイル: login.php プロジェクト: phi314/arbok
include_once "lib_function.php";
koneksi_db();
//PENGECEKAN ID dan PASSWORD APAKAH SUDAH TERDAFTAR
cek_status_login();
function ambil_data($username)
{
    $sql = "SELECT * FROM " . $_SESSION['stats'] . " WHERE nip='" . $username . "'";
    $sql_exe = mysql_query($sql);
    $data = mysql_fetch_assoc($sql_exe);
    return $data;
}
$id_user = isset($_POST['id_user']) ? $_POST['id_user'] : "";
$nip = isset($_POST['nip']) ? $_POST['nip'] : "";
$nis = isset($_POST['nip']) ? $_POST['nis'] : "";
$id_ortu = isset($_POST['id_ortu']) ? $_POST['id_ortu'] : "";
$pass = isset($_POST['password']) ? $_POST['password'] : "";
$status = isset($_POST['status']) ? $_POST['status'] : "";
if (cek_login($id_user, $pass, $status)) {
    $data = ambil_data($id_user);
    // buat session berdasarkan data
    $_SESSION['nip_kj'] = $data_siswa['nip'];
    $_SESSION['nama_kj'] = $data_siswa['nama'];
    $_SESSION['stat'] = true;
    header("location:halaman/halaman_" . $_SESSION['stats'] . ".php");
} else {
    ?>
	<script type="text/javascript">
    alert("Username atau Password atau Status Salah");
    document.location='index.php';</script>
    <?php 
}
コード例 #14
0
ファイル: latest.php プロジェクト: rekysda/indorepair
    //header("Cache-Control: cache, must-revalidate");
    //header("Pragma: public");
    header('Content-Type: ' . $ctype);
    header('Content-Disposition: attachment; filename="' . $filename . '"');
    header('Content-Length: ' . ($seek_end - $seek_start + 1));
    //open the file
    $fp = fopen($file, 'rb');
    //seek to start of missing part
    fseek($fp, $seek_start);
    //$pb = fopen('log.txt','a');
    //fwrite($pb,print_r($_SERVER,true));
    //start buffered download
    while (!feof($fp)) {
        //reset time limit for big files
        set_time_limit(0);
        print fread($fp, 1024 * 8);
        flush();
        ob_flush();
    }
    fclose($fp);
    exit;
}
include 'includes/session.php';
define('dl', true);
include 'includes/config.php';
include 'includes/mysql.php';
if (!cek_login() && !isset($_SERVER['HTTP_RANGE'])) {
    //untuk statistik download
    $hasil1 = mysql_query("UPDATE `mod_download` SET `hit`=hit+1 WHERE `id` = '23'");
}
dl_file_resumable('files/auracms2.2.2.tar.gz', true);
コード例 #15
0
ファイル: login.php プロジェクト: maulana1307/Ujian-Online
    }
}
function ambil_data($username)
{
    $sql = "select * from " . $_SESSION['level_kj'] . " where nis='" . $username . "'";
    $sql_exe = mysql_query($sql);
    $data = mysql_fetch_assoc($sql_exe);
    return $data;
}
function ambil_data_kelas($username)
{
    $sql = "select id_kelas from detail_kelas where nis='" . $username . "'";
    $sql_exe = mysql_query($sql);
    $data = mysql_fetch_assoc($sql_exe);
    return $data['id_kelas'];
}
$id_user = $_POST['id_user'];
$pass = $_POST['password'];
if (cek_login($id_user, $pass)) {
    $data_siswa = ambil_data($id_user);
    // buat session berdasarkan data siswa
    $_SESSION['nis_kj'] = $id_user;
    $_SESSION['nama_kj'] = $data_siswa['nama'];
    $_SESSION['login_kj'] = true;
    if ($_SESSION['level_kj'] == "siswa") {
        $_SESSION['id_kelas'] = ambil_data_kelas($id_user);
    }
    header("location:hal_" . $_SESSION['level_kj'] . ".php");
} else {
    header("location:index.php?info=Username atau password salah");
}