function confirm_notice($is_fst, $snt) { $msg = gen_snt_msg($is_fst, $snt); echo_msg($msg); $confirm = ask_y_or_n("Are you sure to send the above message?"); if ($confirm) { echo "Notice mail will be sent.\n\n"; send_notice($is_fst, $snt, $msg); } else { echo "S&T notice is cancelled.\n\n"; } }
function confirm_notice($snt) { $msg = gen_total_msg($snt); echo_msg($msg); $confirm = ask_y_or_n("Are you sure to send the above message?"); if ($confirm) { echo "Comment mail will be sent.\n\n"; send($msg); } else { echo "Comment mail is cancelled.\n\n"; } }
function confirm_remind($snt) { $msg = gen_msg($snt); echo_msg($msg); $confirm = ask_y_or_n("Are you sure to send the above message?"); if ($confirm) { echo "Remind mail will be sent.\n\n"; send_remind($snt, $msg); } else { echo "S&T remind is cancelled.\n"; } }
<div class="sidebar-nav navbar-collapse"> <ul class="nav" id="side-menu"> <li> <a href="home.php"><i class="fa fa-home fa-fw"></i> Κεντρική Σελίδα</a> </li> <li> <a href="form.php"><i class="fa fa-edit fa-fw"></i> Νέα Αίτηση</a> </li> <li> <a href="myforms.php"><i class="fa fa-file-word-o fa-fw"></i> Οι Αιτήσεις μου</a> </li> <?php if ($_SESSION["idiotita"]!="0") {?> <li> <a href="form_evaluate.php"><i class="fa fa-users fa-fw"></i> Αιτήσεις Υπαλλήλων</a> </li> <?php } ?> <?php if ($_SESSION["idiotita"]=="4") {?> <li> <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> Στατιστικά</a> </li> <?php } ?> </ul> <?php echo_msg(); ?> </div> <!-- /.sidebar-collapse --> </div> <!-- /.navbar-static-side --> </nav>
function confirm_commenter($snt) { $commenter_info = gen_commenter($snt["who"]); $msg = gen_msg($snt, $commenter_info); echo_msg($msg); $confirm = ask_y_or_n("Are you sure to send the above message?"); if ($confirm) { echo "Commenter notice mail will be sent.\n\n"; send_and_set_data($snt, $commenter_info, $msg); } else { echo "Commenter notice is cancelled.\n"; } }
<div class="container"> <div class="row"> <div id="headerlogin"> <a href="index.php"/><img id="headerlogo" src="img/pdm.png"/></a> </div> <div class="col-md-4 col-md-offset-4"> <div class="login-panel panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Είσοδος Χρήστη</h3> </div> <div class="panel-body"> <form name="loginform" method="post" action="login_handler.php?action=login" onsubmit="return validate_loginForm();"> <fieldset> <?php echo_msg(); ?> <div class="form-group"> <input class="form-control" placeholder="Όνομα Χρήστη" name="username" id="username" type="text" autofocus> </div> <div class="form-group"> <input class="form-control" placeholder="Κωδικός Πρόσβασης" name="password" id="password" type="password" value=""> </div> <!-- <div class="checkbox"> <label> <input name="remember" type="checkbox" value="Remember Me">Remember Me </label> </div> --> <input name="submit" class="btn btn-lg btn-success btn-block" type="submit" value="Είσοδος"/> </fieldset> </form>
if(!empty($not_in_all_folders)){ echo_msg( '--- Removing images not found in all folders<br/>'); echo_msg( '---<br/>',1); foreach($not_in_all_folders as $k=>$v){ @unlink(CFIMAGEPATH.$v); @unlink(CFTHUMBPATH.$v); @unlink(CFSMALLTHUMBPATH.$v); @unlink(CFBANDWIDTHPATH.$k.'_imgbw.db'); } echo_msg('---<br/>',1); } unset($not_in_all_folders); echo_msg('--- Done<br/>--- Total Time Elapsed: '.round($stopwatch->elapsed(),4).' seconds<br />'); echo_msg('</body></html>'); ////////////////////////////////////////////////////////////////////////////////////////// // functions function echo_msg($msg,$flush = 0){ global $autouse; if($autouse) return; echo $msg; if($flush) flushNow($flush); } function get_extension($imagetype, $includeDot = false){ global $acceptedFormats; if(empty($imagetype)) return false;
function error($title, $return_act = "install.php", $button_name = "返回上一步") { install_head("友情提示"); echo_start(); echo_msg("<br /><br /><br /><span style='font-size:17px;'>" . $title . "</span><br /><br /><br />"); echo_msg(button($return_act, $button_name) . "<br /><br /><br />"); echo_end(); install_foot(); }