Example #1
0
 function getErrorTitle($code)
 {
     $err = getErrorList();
     if (isset($err[$code])) {
         if (function_exists("_replace")) {
             return _replace($err[$code]);
         } else {
             $lr = new LogiksReplace();
             return $lr->_replace($err[$code]);
         }
     } else {
         return "Unknown Error Code";
     }
 }
Example #2
0
 function logiks_replace($subject)
 {
     if (function_exists("_replace")) {
         return _replace($subject);
     } elseif (class_exists("LogiksReplace")) {
         $lr = new LogiksReplace();
         return $lr->_replace($subject);
     } else {
         $subject = str_replace("#ROOT#", ROOT, $subject);
         if (defined("SITENAME")) {
             $subject = str_replace("#SITENAME#", SITENAME, $subject);
             if (defined("APPS_FOLDER")) {
                 $subject = str_replace("#APPROOT#", APPS_FOLDER . $site . "/", $subject);
             }
         }
         if (defined("THEME_FOLDER")) {
             if (defined("APPS_THEME")) {
                 $subject = str_replace("#THEME#", THEME_FOLDER . APPS_THEME, $subject);
             } else {
                 $subject = str_replace("#THEME#", THEME_FOLDER . "default/", $subject);
             }
         }
     }
     return $subject;
 }