function DoHead() { include "header.php"; OpenTable(); ?> <center><b><strong> · <a href="<?php echo $_SERVER['PHP_SELF']; ?> ">Administration Home</a> ·<br> · <a href="<?php echo $_SERVER['PHP_SELF']; ?> ?op=Accounting">Accounting Admin</a> · <?php include "modules/Accounting/updater.php"; if (isUpdate()) { ?> <br>··· <a href="http://moahosting.com/modules.php?name=Downloads&d_op=viewdownload&cid=2">An update is available!</a> ···<br> <?php } ?> </strong></b></center> <?php CloseTable(); echo "<br>"; OpenTable(); // Create the accounting menu DoMenu(); }
function do_head() { include "header.php"; //GraphicAdmin(); OpenTable(); ?> <center><b><strong>· <a href="admin.php">Administration Home</a> ·</strong></b></center><br> <center><b><strong>· <a href="admin.php?op=Order">Order Admin</a> ·</strong></b></center><br> <?php if (isUpdate()) { ?> <center><b><strong>··· <a href="http://moahosting.com/modules.php?name=Downloads&d_op=viewdownload&cid=2">An update is available! Click here to update now!</a> ···</strong></b></center> <?php } CloseTable(); }
public function __construct() { Event::listen('validating', function ($input) { /** * @param $input * @return bool */ function isUpdate($input) { return isset($input["id"]); } if (isUpdate($input)) { static::$rules["slug"][] = "unique:product,slug,{$input['id']}"; static::$rules["code"][] = "unique:product,code,{$input['id']}"; } }); }