This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//<sitepath>/about/terms | |
//The above path should show us content with name terms from about group. | |
$page=$_REQUEST['page']; | |
$page=explode("/",$page); | |
$category="about"; // default category for all contents in this page. | |
$contentID="about-us"; //default content for page may redirect to error page | |
if(count($page)>1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('ROOT')) exit('No direct script access allowed'); | |
if(isset($_REQUEST["action"])) { | |
switch($_REQUEST["action"]) { | |
case "default": | |
$dataArr=array(); | |
//Prints formated data to output stream be it xml,json,html,text or csv | |
printServiceMsg($dataArr); | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('ROOT')) exit('No direct script access allowed'); | |
loadModule("content"); | |
if(!isset($json)) $json=new SimpleJSONDB(); | |
$layouts=$json->getItem("home_layout","LAYOUTS"); | |
//printArray($layouts); | |
$defWidgetConf=array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//For security purpose | |
if(!defined("ROOT")) exit("Direct access to this file is not allowed."); | |
echo "Hello World Module ..."; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('ROOT')) exit('No direct script access allowed'); | |
//session_check(true); | |
loadModule("page"); | |
$params["toolbar"]="printToolbar"; | |
$params["contentarea"]="printContent"; | |
printPageContent("apppage",$params); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This us a demo of how to use Captcha Widget In Logiks | |
//In Form | |
<INPUT NAME='USER_CAPTCHA_CODE' TYPE='TEXT' /> | |
<?php | |
loadWidget("captcha"); | |
?> | |
//This will generate the captcha and a captchaid in a hidden input field. | |
//On Server Side/Service section validate the captcha like this | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull origin master" >tmp/update.log \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('ROOT')) exit('No direct script access allowed'); | |
loadModule("pages"); | |
function pageContentArea() { | |
return "workspace"; | |
} | |
function pageSidebar() { | |
return "sidebar"; |