예제 #1
0
        $results = $user->add_user($_POST);
    }
    if ($results) {
        echo '<div class="alert alert-success alert-block fade in alert-dismissable">
					  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
					  <strong>Add Staff Member</strong> Sucessfully
					</div>';
    } else {
        echo '<div class="alert alert-danger alert-block fade in alert-dismissable">
					  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
					  <strong>Error</strong>
					</div>';
    }
}
if (isset($ID)) {
    $user_result = $user->get_user($ID);
}
?>
		
			<div class="the-box noborder">
				<form id="ExampleBootstrapValidationForm" method="post" action="" class="form-horizontal" enctype="multipart/form-data">
					<fieldset>
						<legend>User Detail:</legend>
						
						<div class="form-group">
							<label class="col-sm-2 control-label">First Name</label>
							<div class="col-sm-4">
								<input type="text" name="fname" id="fname" value="<?php 
echo isset($ID) ? $user_result->fname : '';
?>
" class="form-control" required>
예제 #2
0
<?php

require_once "scripts/init.php";
include $template_directory . "header.inc.php";
$url = $_SERVER["REQUEST_URI"];
$item_records = null;
$geral = new geral();
$user = new user();
// parametros para query
$where[] = " ativo = '1' ";
list($r, $records, $page, $total_pages) = default_search("tb_comentario", $where, "", "dt_comentario DESC");
if ($records) {
    foreach ($records as $k => $v) {
        $ponto = $geral->get_ponto_turistico($v["id_ponto_turistico"]);
        $nm = $user->get_user($v["id_user"]);
        $item_records[$k]["id"] = $v["id_comentario"];
        $item_records[$k]["comentario"] = $v["ds_comentario"];
        $item_records[$k]["user"] = $nm[0]["nm_user"];
        $item_records[$k]["ponto"] = $ponto[0]["nm_ponto_turistico"];
        $item_records[$k]["data"] = date('d/m/Y', strtotime($v["dt_comentario"]));
    }
}
// deletar imagens
if (get_vars("delete")) {
    if (get_vars("action_item")) {
        $list_itens = $_POST["action_item"];
        $geral->delete_comentario("'" . implode("','", $list_itens) . "'");
        show_message("Comentário(s) removido(s) com sucesso!");
        redir_page($url);
    } else {
        show_message("Nenhum item selecionado para exclusão, favor selecionar.", false);
예제 #3
0
<?php

//entry.php
$page_name = "entry.php";
include 'core.php';
$ids = @$_GET['ref'];
$ids = htmlentities($ids);
include 'dbms/dbms_imp.php';
$ids = netutralize($ids, $connection);
mysqli_close($connection);
$notice = new notice($ids);
$current_user = new user();
$current_user->get_user($userid);
$title = $notice->title;
$keywords = $notice->tags;
$description = $notice->bref;
?>

<!doctype html>

<html lang="en">
<?php 
//includind the head tag
require 'head.php';
?>

<body>

<?php 
// including the header of the document
require 'header.php';
예제 #4
0
ini_set('max_execution_time', 1800);
ini_set('mysql_connect_timeout', 1200);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Reason Upgrade: Miscellaneous 4.0b3 to 4.0b4 Updates</title>
</head>

<body>
<?php 
force_secure_if_available();
$GLOBALS['__cur_username__hack__'] = reason_require_authentication();
$usr = new user();
$user = $usr->get_user($GLOBALS['__cur_username__hack__']);
if ($user) {
    $GLOBALS['__cur_user_id_hack__'] = $user->id();
} else {
    echo 'You must be a valid reason user to run this script';
    die;
}
if (!reason_user_has_privs($GLOBALS['__cur_user_id_hack__'], 'upgrade')) {
    die('You must have upgrade privileges to run this script');
}
echo '<h2>Reason: Miscellaneous 4.0b3 to 4.0b4 Updates</h2>';
if (!isset($_POST['verify'])) {
    echo '<p>This script does a variety of minor updates to your Reason instance, including:</p>';
    echo '<ul>';
    echo '<li>Setting up a new content manager for themes</li>';
    echo '<li>Adding new themes:';
예제 #5
0
<section class="wrapper site-min-height">
	<div class="row">
		<div class="col-sm-12">
			<section class="panel">
				<header class="panel-heading">
					Data User Aplikasi
					<span class="tools pull-right">
						<button type="button" class="btn btn-primary btn-sm" id="btn-show-tambah" data-mode="tambah"><i class="fa fa-plus"></i> Tambah User</button>
					</span>
				</header>
				<div class="panel-body">
				<?php 
require './modules/model/class.user.php';
$data = new user();
if ($daftar = $data->get_user()) {
    while ($rs = $daftar->fetch_array()) {
        ?>
					<div class="col-md-3">
						<div class="well">
							<div class="row">
								<div class="col-md-12 text-center">
									<?php 
        echo $rs['nama'] . "<br>" . $rs['jabatan'];
        ?>
									<hr>
									<a class="btn btn-primary btn-sm btn-show-ubah" data-id="<?php 
        echo e_code($rs['id']);
        ?>
">Edit</a> 
									<a href="./?no_spa=<?php 
        echo e_url("modules/view/master-data/set-menu.php");
예제 #6
0
파일: create.php 프로젝트: Ingothq/ingSL
 protected function set_user($email)
 {
     $_user = new user($email);
     $this->user = $_user->get_user();
 }
예제 #7
0
<?php

//login.php
$page_name = "Edit_notice.php";
include 'core.php';
$ids = @$_GET['ref'];
$ids = htmlentities($ids);
include 'dbms/dbms_imp.php';
$ids = netutralize($ids, $connection);
mysqli_close($connection);
$notice = new notice($ids);
$user = new user();
$user->get_user($userid);
// to get the current user
$title = "Edit notice : {$notice->title}";
$keywords = "Edit notice : {$notice->title}";
?>

<!doctype html>

<html lang="en">
<?php 
//includind the head tag
require 'head.php';
?>

<body>

<?php 
// including the header of the document
require 'header.php';
예제 #8
0
<?php 
if (!isset($_SESSION['company_id'])) {
    ?>
	<ul class="breadcrumb">
	    <li><a href="#">Home</a></li>
	    <li><a class="active" href="#">Branches Users</a></li>
	</ul>

<div class="page-heading">
	<h1>View Users</h1>
</div>

	<div class="table-responsive custom-table">
		<?php 
    $user = new user();
    $results = $user->get_user();
    if ($results) {
    }
    ?>
		<table id="myTable">  
	        <thead>  
	          <tr>  
	            <th>First Name</th>  
	            <th>Email</th>  
	            <th>Login Name</th> 
	            <th>Status</th> 
	            <th></th>  
	          </tr>  
	        </thead>  
	        <tbody>  
예제 #9
0
function login_control()
{
    if (filter_input(INPUT_GET, 'user') && filter_input(INPUT_GET, 'pass')) {
        $obj = new user();
        $username = sanitize_string(filter_input(INPUT_GET, 'user'));
        $pass = sanitize_string(filter_input(INPUT_GET, 'pass'));
        if ($obj->get_user($username, $pass)) {
            $row = $obj->fetch();
            if ($row == 0) {
                echo "Invalid user";
            } else {
                $username = $row['username'];
                $email = $row['email'];
                $_SESSION['phone'] = $row['phone'];
                echo '{"result":1,"username": "******",
                    "email": "' . $email . '"}';
            }
        } else {
            echo '{"result":0,"message": "Invalid User"}';
        }
    } else {
        echo '{"result":0,"message": "Invalid Credentials"}';
    }
}
예제 #10
0
function birthday($uid)
{
    $user = new user();
    $user->get_user($uid);
    ?>
          
          <div class="mdl-card mdl-shadow--4dp mdl-cell mdl-cell--12-col">
            <style>
              .demo-blog--blogpost .demo-blog__posts > .mdl-card .mdl-card__media 
              {
                /*background-image: url('images/road_big.jpg');*/
                height: 100px;
              }
            </style>
              
            <div class="mdl-card__media mdl-color-text--grey-50">
                <h3><?php 
    echo "Happy Birthday " . $user->fname;
    ?>
</h3>
            </div>
            <div class="mdl-color-text--grey-700 mdl-card__supporting-text meta">
              <div class="minilogo"></div>
              <div>
                <strong><?php 
    echo "Many-Many Happy returns of the Day";
    ?>
</strong>
                <span><?php 
    echo "By - Notice Board Team";
    ?>
</span>
              </div>
              <div class="section-spacer"></div>
              <div class="meta__favorites">
                <i class="material-icons" role="presentation">favorite</i>
                <span class="visuallyhidden">favorites</span>
              </div>
              <div>
                <i class="material-icons" role="presentation">bookmark</i>
                <span class="visuallyhidden">bookmark</span>
              </div>
              <div>
                <i class="material-icons" role="presentation">share</i>
                <span class="visuallyhidden">share</span>
              </div>
            </div>
            
            <div class="mdl-color-text--grey-700 mdl-card__supporting-text">
              <p>
                <?php 
    echo "TADAA.. Happy birthday!<br/> \n                  Quick!Blow the candle and make your wish!</br> \n                  Smile while you still have teeth.. </br>\n                  Every birthday presents a new page in your life.Keep doing good and filling that page with good deeds..</br>\n                  <br/>Birthdays are good for health.Studies shows people who have more birthdays live longer :-p";
    ?>
              </p>
            </div>

            <div class="mdl-color-text--grey-700 mdl-card__supporting-text meta">
              
              <div class="section-spacer"></div>
              <div>
                <strong><?php 
    echo "We wish you a Happy Birthday (3X), and a whole lot of cake ;).";
    ?>
                </strong>
              </div>
            </div>
          </div>
<?php 
}
예제 #11
0
<?php

session_start();
ob_start();
include "../classes/user.php";
$obj = new user();
if (isset($_REQUEST['email'])) {
    $email = $_REQUEST['email'];
    $password = $_REQUEST['password'];
    $row = $obj->get_user($email, $password);
    if ($row == null) {
        echo "";
        exit;
    }
    if (strcmp($row['password'], $password) != 0) {
        echo "";
        exit;
    } else {
        //set session variables
        $_SESSION["user"] = $row['name'];
        $_SESSION["mail"] = $row['email'];
        echo "dashboard.html";
        //redirect_to index.ph
        //header("Location: http://cs.ashesi.edu.gh/~csashesi/class2016/obed-nsiah/mobileweb/pos/desktop/inventory.html");
        //	exit;
    }
    //$obj->closeLink
    ob_end_flush();
}