Changeset 468 for trunk/services


Ignore:
Timestamp:
Feb 20, 2014 3:03:59 AM (10 years ago)
Author:
anonymous
Message:

Completed integrating /branches/eli_branch into /trunk. Changes include:

  • Removed closing ?> from end of files
  • Upgrade old-style contructor methods to use construct() instead.
  • Class properties and methods defined as public, private, static or protected
  • Ensure code runs under E_ALL with only mysql_* deprecated warnings
  • Search for the '@' symbol anywhere it might be used to supress runtime errors, then replace with proper error recovery.
  • Run the php cli -l option to check files for syntax errors.
  • Bring tests up-to-date with latest version and methods of PHPUnit
Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/services/admins.php

    r458 r468  
    5555
    5656// Configure the cache object.
    57 $cache = new Cache('admins');
     57$cache =& Cache::getInstance('admins');
    5858$cache->setParam(array('enabled' => false)); // Better leave disabled; the list gets out of sync with the db otherwise, somehow.
    5959
     
    552552}
    553553
    554 ?>
  • trunk/services/css.php

    r396 r468  
    3636}
    3737
    38 ?>
  • trunk/services/lock.php

    r457 r468  
    44 * For details visit the project site: <http://trac.strangecode.com/codebase/>
    55 * Copyright 2001-2012 Strangecode, LLC
    6  * 
     6 *
    77 * This file is part of The Strangecode Codebase.
    88 *
     
    1111 * Free Software Foundation, either version 3 of the License, or (at your option)
    1212 * any later version.
    13  * 
     13 *
    1414 * The Strangecode Codebase is distributed in the hope that it will be useful, but
    1515 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1616 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    1717 * details.
    18  * 
     18 *
    1919 * You should have received a copy of the GNU General Public License along with
    2020 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>.
     
    6969include 'footer.ihtml';
    7070
    71 ?>
  • trunk/services/login.php

    r462 r468  
    3636$login_prefs->setDefaults(array('username' => ''));
    3737
    38 if ('' != $login_prefs->get('username')) {
    39     $frm['remember_me'] = '1';
    40 }
    41 
    4238$frm['username'] = getFormdata('username', $login_prefs->get('username'));
    4339$frm['password'] = getFormdata('password');
     40$frm['remember_me'] = ('' != $login_prefs->get('username')) ? '1' : '';
    4441
    4542if (getFormdata('username', false)) {
     
    6966include 'footer.ihtml';
    7067
    71 ?>
  • trunk/services/logout.php

    r396 r468  
    3838$app->dieURL($app->getParam('redirect_home_url'));
    3939
    40 ?>
  • trunk/services/logs.php

    r457 r468  
    293293
    294294
    295 ?>
  • trunk/services/password.php

    r396 r468  
    8787include 'footer.ihtml';
    8888
    89 ?>
  • trunk/services/phpinfo.php

    r396 r468  
    3838?><h1>$_SERVER dump</h1><?php
    3939dump($_SERVER,1);
    40 ?>
  • trunk/services/reset_password.php

    r396 r468  
    8787include 'footer.ihtml';
    8888
    89 ?>
  • trunk/services/versions.php

    r457 r468  
    136136include 'footer.ihtml';
    137137
    138 ?>
Note: See TracChangeset for help on using the changeset viewer.