PHP Classes

File: lib/default.php

Recommend this page to a friend!
  Classes of Ganesh Kandu   Palette PHP CMS System   lib/default.php   Download  
File: lib/default.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Palette PHP CMS System
Manage content site edited visually in the browser
Author: By
Last change:
Date: 2 years ago
Size: 540 bytes
 

Contents

Class file image Download
<?php

/*
///////////////////////////////////////////////////
Palatte is a PHP Based Site Builder
Developed By : Ganesh Kandu
Contact Mail : kanduganesh@gmail.com
///////////////////////////////////////////////////
*/

$data = array();
$data['projects'] = glob(PATH.DS.'sites'.DS.'*');
$l1 = strlen(PATH.DS.'sites'.DS);
foreach(
$data['projects'] as $key => $value){
   
$l2 = strlen($value);
   
$data['projects'][$key] = substr($value,$l1,($l2-$l1));
}
$session = new session();
$data['user'] = $session->UserDetail();
$data['url'] = URL.'/';