- Timestamp:
- Feb 24, 2022 9:37:52 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/examples/script_template.php
r468 r762 4 4 * For details visit the project site: <http://trac.strangecode.com/codebase/> 5 5 * Copyright 2001-2012 Strangecode, LLC 6 * 6 * 7 7 * This file is part of The Strangecode Codebase. 8 8 * … … 11 11 * Free Software Foundation, either version 3 of the License, or (at your option) 12 12 * any later version. 13 * 13 * 14 14 * The Strangecode Codebase is distributed in the hope that it will be useful, but 15 15 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 17 * details. 18 * 18 * 19 19 * You should have received a copy of the GNU General Public License along with 20 20 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>. … … 32 32 33 33 $auth->requireLogin(); 34 $app->sslOn();35 34 36 35 require_once 'codebase/lib/FormValidator.inc.php'; -
trunk/lib/App.inc.php
r752 r762 341 341 * @access public 342 342 * @param string $param The key of the parameter to return. 343 * @param string $default The value to return if $param does not exist in $this->_params. 343 344 * @return mixed Parameter value, or null if not existing. 344 345 */ 345 public function getParam($param=null )346 public function getParam($param=null, $default=null) 346 347 { 347 348 if ($param === null) { … … 350 351 return $this->_params[$param]; 351 352 } else { 352 return null;353 return $default; 353 354 } 354 355 } -
trunk/services/admins.php
r677 r762 27 27 // require_once dirname(__FILE__) . '/_config.inc.php'; 28 28 29 $app->sslOn();30 29 $auth->requireLogin(); 31 30 -
trunk/services/lock.php
r695 r762 34 34 require_once 'codebase/lib/HTML.inc.php'; 35 35 36 $app->sslOn();37 36 $auth->requireLogin(); 38 37 -
trunk/services/login.php
r761 r762 37 37 $app->setBoomerangURL($url, 'login'); 38 38 } 39 $app->sslOn(); 39 40 if ($auth->isLoggedIn()) { 41 if ($app->validBoomerangURL('login')) { 42 $app->dieBoomerangURL('login'); 43 } 44 $app->dieBoomerangURL($app->getParam('redirect_home_url', '/')); 45 } 40 46 41 47 // Cookie-based storage preferences. -
trunk/services/logs.php
r535 r762 31 31 ))); 32 32 33 $app->sslOn();34 33 $auth->requireLogin(); 35 34 -
trunk/services/password.php
r535 r762 55 55 $app->setBoomerangURL($_SERVER['HTTP_REFERER'], 'admin_password'); 56 56 } 57 $app->sslOn();58 57 59 58 switch (getFormData('op')) { -
trunk/services/reset_password.php
r535 r762 55 55 } 56 56 57 $app->sslOn();58 59 57 switch (getFormData('op')) { 60 58 case 'reset' : -
trunk/services/versions.php
r695 r762 27 27 // require_once dirname(__FILE__) . '/_config.inc.php'; 28 28 29 $app->sslOn();30 29 $auth->requireLogin(); 31 30
Note: See TracChangeset
for help on using the changeset viewer.