PHP lessons
Threads | Date | Posts |
SQL get string in Ajaxel CMS PHP public static function sqlGetString ( $type , $arg = '' , $arg2 = '' ) {
switch ( $type ) {
case 'age' :
… | 0 | |
Conf class - Ajaxel data holder I guess many people would as about this question....
Enjoy
PHP class Conf {
private $vars = array ( ) ;
private static $_instance = false ;
private static $seen = … | 0 | |
Factory class by Author PHP abstract class Factory {
private static $_instances = array ( ) ;
private static $_libs = array (
… | 0 | |
Getting from cache method from class PHP public static function get ( $name , $incTime = 3600 , $use_file = false , $echo = false , $ob_func = false ) {
if ( $use_file ) {
$name … | 0 | |
Sending mass email compaingns in Ajaxel CMS Working, I like that.. Hard work for years, got many versions. Great script:
PHP public static function sendMass ( $data , $subject , $body , $attachments = false , $fromaddress = MAIL_EMAIL , $fromname = MAIL_MAME , $S = false , $update = NULL , $plain = … | 0 | |
The most craziest function for recursive handling with files But it works And I adore that)
PHP function FuncDirFileRecursive ( $dir , $to , $func_file = 'copy' , $func_dir = 'mkdir' , $total = 0 , $time = 0 , $chmod = 0777 , $str = 0 , $strto = 0 ) {
… | 0 | |
Expensive function for restoring GBytes of data into database! Nobody has this except Ajaxel CMS, why didn't, I don't know)) But I did it..
PHP private function run_restore ( ) {
$this -> fromSession ( ) ;
… | 0 | |
Spam.php is antispam for all forms STOP SPAM script. Helps to prevent wrong posts on site
Also there is 80Mb of black IP list data available..
PHP private function checkComment ( ) {
if ( ! $this -> comment ) return ;
$c = … | 1 | |
This tree stuff took me a while... was very hard PHP public function add ( $data ) {
$this -> set ( $this -> _params ) ;
$this -> offset = 0 ;
if ( ! empty ( $data [ $this -> … | 0 | |
MyClass.php - important public site caller PHP final class MyClass extends My {
public function __construct ( & $Index ) {
parent :: __construct ( $Index ) ;
… | 0 | |
The usual admin template for lists and for window Lists in admin:
HTML (4.0.1) <?php
/ **
* Ajaxel CMS v6.20
* http: // ajaxel.com
* =================
*
* Copyright ( c ) 2007 - 2013 , Alexander Shatalov <[email protected]> . All rights reserved.
*
* The software, this file and its contents are… | 1 | |
The usual admin sub class file PHP /**
* Ajaxel CMS v6.20
* http://ajaxel.com
* =================
*
* Copyright (c) 2007-2013, Alexander Shatalov <[email protected]>. All rights reserved.
*
* The software, this file and its contents are subject to the Ajaxel CMS
* License. Please read the license.txt file… | 0 | |
Changing database data for displaying PHP private function catchRow ( & $row , $full ) {
$row [ 'module' ] = $this -> name ;
$row [ 'url_open' ] = '?grid=' . $this -> name . AMP . 'id=' . $row … | 0 |