Esempio n. 1
0
 public function checklog()
 {
     //echo $_SESSION['status'];
     //die();
     if ($_SESSION['status'] == "logged") {
         Requered::success_message("You are already logged in!!");
         Requered::redirect();
     }
 }
Esempio n. 2
0
 public function delete($info_id = null)
 {
     $query = "DELETE FROM `tbl_info` WHERE `tbl_info`.`info_id` =" . $info_id;
     $result = mysql_query($query);
     //
     if ($result) {
         Requered::success_message("Your information is successfully Removed!!");
     } else {
         Requered::unsuccess_message("Unable to Delete!!");
     }
     Requered::redirect();
 }
Esempio n. 3
0
        <link rel="stylesheet" href="assets/font-awesome/css/font-awesome.min.css" />
        <link rel="stylesheet" href="assets/style.css" />
        <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>

        <!-- <link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
            </head> -->
    <body class="bg-login">
        <h1>PHONEBOOK</h1>
        <h3>Codeworior</h3>
        <div class="container">
            <div class="row">
                <div class="col-md-4 col-md-offset-4 login text-center">
                    <h2>Login</h2>
                    <hr />
                    <?php 
$success = Requered::success_message();
$unsuccess = Requered::unsuccess_message();
if (isset($success)) {
    ?>
                        <div class = "alert alert-danger">
                            <button type = "button" class = "close" data-dismiss = "alert">
                                <i class = "fa fa-times"></i>
                            </button>
                            <p>
                                <strong>
                                    <i class = "ace-icon fa fa-times"></i>
                                    <!--                        Well done!-->
                                </strong>
                                <?php 
    echo $success;
    ?>