+1 571-297-6383 | info@sonjara.com

Code refactoring in page.php

For a while now we have had occasional problems with rolling out Fakoli sites, due to the logic in the page.php files drifting out of date as new features are added (such as mobile login). This has led to a number of difficult to track down bugs and wasted a fair amount of time.

As such, I have finally gotten around to refactoring the page.php logic and moving it into a method on the core Fakoli object. Thus the entire page.php code will now look like this:

<?php
require_once "include/config.inc";
require_once "cms/core.inc";

Fakoli::using("page", "component", "section", "settings");
$page_id = checkNumeric($_GET["page_id"]);
$identifier = checkIdentifier($_GET["identifier"]);
$sectionIdentifier = checkIdentifier($_GET["section"]);

Fakoli::sendPage($sectionIdentifier, $identifier, $page_id);
?>

and any changes to the page access logic will be consistently pushed out to all Fakoli sites when the Fakoli library is updated from SVN.

Existing sites will not break if their page.php file is not updated to use the new method, but we should ensure that as we roll out software updates for our various projects we incorporate this change.

Onward to a brighter tomorrow with consistent login logic!


Minor Tweaks - Improvements for Data-bound Tabs and Page... » « Mighty Morphin' Mobile Edition
 

Comments

  • zvaojxjq
    Posted by Premium Assignments at 2017-10-02 19:40:11
    essay writing service essay help write essay for money write my thesis
  • d5wwjhxg
    Posted by Charlessoype at 2017-10-01 17:44:57
    wh0cd800227 buy seroquel seroquel http://buy-seroquel.store/ cheap viagra generic viagra http://viagrageneric.reisen/ Prevacid generic levaquin levaquin 750mg http://buylevaquin.shop/ trazodone buy trazodone http://buytrazodone.work/
  • gfpoundl
    Posted by Paydayloan at 2017-10-01 16:11:22
    bestpaydayloansonline.us.com payday loans online payday loans online bestpaydayloansonline.us.com
  • pcbk7yh9
    Posted by Kennethglymn at 2017-09-30 07:08:32
    wh0cd876339 buy citalopram buy citalopram http://buy-citalopram.shop/ tretinoin cream where to buy tretinoin http://buytretinoin.store/
  • Clomid Your Cycle
    Posted by Diedremn at 2015-01-12 02:54:59
    Clomid Online NO PRESCRIPTION Canada Buy Zantac With No Rx Cephalexin No Prescriptions Drugs amoxicillin allergy. How Does Prednisone Help With Cushings Lexapro Trichotillomania Generic Spiriva No Prescription What Amitriptyline Migraine Headaches . Levaquin Fistula Levaquin Drop . Ontario Methadone Guidelines Centre For Addiction And Mental Health What Does Atenolol Look Like Beta Blockers Adipex Foreign Pharmacies Effexor Xr Vs Paxil Ciprofloxacin Ophthalmic Solution 0.3 Online Consultation Buy Risperdal Online Migraine Concord Google
* indicates required field