public function InterpTemplateData() { $beforeStr = $this->getContentToProcess(); if (ASPM::IsEmptyNullOrWhiteSpace($beforeStr)) { return null; } $afterStr = preg_replace("~(%%([A-Za-z0-9]*)%%)~", "\$2", $beforeStr); $this->setContentToProcess($afterStr); return true; }
private function UnknownRoute($M = null, $m = null) { if (isset($M) && isset($m) && !is_null($M) && !is_null($m)) { ASPM::Fold("Your request attempted access into an unknown place with a path of<br /><strong>..../{$M}/{$m}/</strong>"); } else { ASPM::Fold("The location you have requested does not exist"); } }
public function Home() { $this->Processor->SetUpPaths($this->getModel(), $this->getModule(), "userhome"); $tmp = BasicAuthService::EntryPointCheck(); if ($tmp !== true) { ASPM::Fold($tmp); } else { $this->Processor->RenderView(); } }
public function EditPhone($id, $num) { if ($id == null || $id < 1 || ASPM::VerifyPhoneNumberFormat($num) === false) { return false; } $tmp = $this->_dbAdapt->getLnk(); $stmt = $tmp->prepare("UPDATE Client SET Phone = ? WHERE Id = ?"); $stmt->bind_param("di", $num, $id); $stmt->execute(); $stmt->close(); unset($tmp); unset($stmt); return true; }
<?php /****************************************** * Only Entry point for the application. * This will inherit and include everything * else that is needed. *****************************************/ include_once "Library/Core/Base/ASPM.php"; $app = new ASPM(); $app->SessionActivate(); $app->Boot();
public function ProcessViewData() { $bodyContent = ""; foreach ($this->DisplayDat as $Entity => $DATASET) { foreach ($DATASET as $PROPERTY => $VALUE) { $this->setExtractVars(null, $PROPERTY, $VALUE); } $this->ConfigProcessor(); $bodyContent = $this->Procssr->FilterVars(); if (!ASPM::IsEmptyNullOrWhiteSpace($bodyContent)) { $this->setBodyContent($bodyContent, true); } } $this->setIsProcessed(true); }
<?php include_once "App/Views/htmlheadmeta.php"; include_once "App/Views/mainheader.php"; include_once "App/Views/mainmenu.php"; if (isset($GLOBALS["App"]["View"]) && strlen($GLOBALS["App"]["View"]) > 1 && file_exists($GLOBALS["App"]["View"])) { include_once $GLOBALS["App"]["View"]; } else { ASPM::Fold("Error Listing Projects"); } include_once "App/Views/mainfooter.php"; echo <<<FOOTR \t\t\t\t<!--------------------------------------------------------------------- \t\t\t\t------- An Arbor Solutions Production ------- \t\t\t\t------- software designed to help your business and ------- \t\t\t\t------- organization grow ------- \t\t\t\t---------------------------------------------------------------------!> </html> FOOTR ;
public function setPhone($num = null) { if (ASPM::VerifyPhoneNumberFormat($num) === false) { return null; } $this->Phone = ASPM::VerifyPhoneNumberFormat($num); }