Пример #1
0
 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;
 }
Пример #2
0
 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");
     }
 }
Пример #3
0
 public function Home()
 {
     $this->Processor->SetUpPaths($this->getModel(), $this->getModule(), "userhome");
     $tmp = BasicAuthService::EntryPointCheck();
     if ($tmp !== true) {
         ASPM::Fold($tmp);
     } else {
         $this->Processor->RenderView();
     }
 }
Пример #4
0
 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;
 }
Пример #5
0
<?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();
Пример #6
0
 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);
 }
Пример #7
0
<?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
;
Пример #8
0
 public function setPhone($num = null)
 {
     if (ASPM::VerifyPhoneNumberFormat($num) === false) {
         return null;
     }
     $this->Phone = ASPM::VerifyPhoneNumberFormat($num);
 }