Changeset 457 for trunk/services
- Timestamp:
- Jan 20, 2014 9:42:13 PM (10 years ago)
- Location:
- trunk/services
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/services/admins.php
r441 r457 27 27 // require_once dirname(__FILE__) . '/_config.inc.php'; 28 28 29 $app->sslOn(); 29 30 $auth->requireLogin(); 30 $app->sslOn();31 31 32 32 require_once 'codebase/lib/PageNumbers.inc.php'; -
trunk/services/lock.php
r396 r457 28 28 require_once 'codebase/lib/Lock.inc.php'; 29 29 30 $app->sslOn(); 30 31 $auth->requireLogin(); 31 $app->sslOn();32 32 33 33 if (getFormData('boomerang', false)) { -
trunk/services/logs.php
r396 r457 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/>. … … 27 27 // require_once dirname(__FILE__) . '/_config.inc.php'; 28 28 29 $app->sslOn(); 29 30 $auth->requireLogin(); 30 // $auth->requireAccessClearance(ZONE_ADMIN_APPLOG);31 $app->sslOn();32 31 33 32 require_once 'codebase/lib/PageNumbers.inc.php'; … … 64 63 )); 65 64 if (getFormData('log', false)) { 66 $tmp_prefs->set('log_file', getFormData('log')); 65 $tmp_prefs->set('log_file', getFormData('log')); 67 66 } 68 67 … … 80 79 switch (getFormData('op')) { 81 80 case 'delete' : 82 // $auth->requireAccessClearance(ZONE_ADMIN_APPLOG_FUNC_RESET);83 81 deleteLog($tmp_prefs->get('log_file')); 84 82 $tmp_prefs->set('log_file', $app->getParam('log_filename')); … … 92 90 93 91 case 'clear' : 94 // $auth->requireAccessClearance(ZONE_ADMIN_APPLOG_FUNC_RESET);95 92 clearLog($tmp_prefs->get('log_file')); 96 93 if ($app->validBoomerangURL('app_log')) { … … 103 100 104 101 case 'archive' : 105 // $auth->requireAccessClearance(ZONE_ADMIN_APPLOG_FUNC_RESET);106 102 if (archiveLog($tmp_prefs->get('log_file'))) { 107 103 // Now flush current log. -
trunk/services/templates/admin_list.ihtml
r432 r457 2 2 <?php $fv->printErrorMessages(); ?> 3 3 4 <div id="commandbox">4 <div class="commandbox"> 5 5 <span class="sc-nowrap commanditem"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=add'); ?>"><?php echo _("Add Administrator"); ?></a></span> 6 6 <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="get" class="sc-form"> … … 38 38 <td class="sc-nowrap"><?php echo oTxt($list[$i]['first_name'], true); ?> <?php echo oTxt($list[$i]['last_name'], true); ?> </td> 39 39 <td class="sc-nowrap"><?php echo round($list[$i]['seconds_online'] / 60); ?> </td> 40 <td class="sc-nowrap"><?php 40 <td class="sc-nowrap"><?php 41 41 if ($auth->isLoggedIn($list[$i]['admin_id'])) { 42 42 ?><strong><?php echo date($app->getParam('date_format'), strtotime($list[$i]['last_login_datetime'])) ?></strong><?php 43 43 } else { 44 echo '0000-00-00 00:00:00' == $list[$i]['last_login_datetime'] ? '' : date($app->getParam('date_format'), strtotime($list[$i]['last_login_datetime']));44 echo Validator::validateStrDate($list[$i]['last_login_datetime']) ? date($app->getParam('date_format'), strtotime($list[$i]['last_login_datetime'])) : ''; 45 45 } 46 46 ?> </td> 47 47 <td class="sc-nowrap"><?php echo gethostbyaddr($list[$i]['last_login_ip']); ?> </td> 48 <td class="sc-nowrap"><?php echo '0000-00-00 00:00:00' == $list[$i]['added_datetime'] ? '' : date($app->getParam('date_format'), strtotime($list[$i]['added_datetime'])); ?> </td>48 <td class="sc-nowrap"><?php echo Validator::validateStrDate($list[$i]['added_datetime']) ? date($app->getParam('date_format'), strtotime($list[$i]['added_datetime'])) : ''; ?> </td> 49 49 <td class="sc-nowrap"><?php echo oTxt($list[$i]['added_admin_username'], true); ?> </td> 50 <td class="sc-nowrap"><?php echo '0000-00-00 00:00:00' == $list[$i]['modified_datetime'] ? '' : date($app->getParam('date_format'), strtotime($list[$i]['modified_datetime'])); ?> </td>50 <td class="sc-nowrap"><?php echo Validator::validateStrDate($list[$i]['modified_datetime']) ? date($app->getParam('date_format'), strtotime($list[$i]['modified_datetime'])) : ''; ?> </td> 51 51 <td class="sc-nowrap"><?php echo oTxt($list[$i]['modified_admin_username'], true); ?> </td> 52 52 <td class="sc-padleft sc-nowrap" align="right"><a title="<?php printf(_("Delete %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . "?op=del&admin_id=" . $list[$i]['admin_id']); ?>" onclick="javascript:return confirm('<?php printf(_("Are you sure you want to delete the record %s? This action is permanent and cannot be undone."), oTxt($list[$i]['username'])) ?>')"><img src="/admin/i/trash.gif" alt="Delete" width="10" height="10" border="0" /></a> </td> -
trunk/services/templates/log_list.ihtml
r320 r457 1 1 <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="get" class="sc-form"> 2 2 <?php $app->printHiddenSession(false); ?> 3 <div id="commandbox">3 <div class="commandbox"> 4 4 <?php if (is_array($logs) && !empty($logs)) { ?> 5 5 <table> -
trunk/services/templates/versions_diff.ihtml
r270 r457 1 <div id="commandbox">1 <div class="commandbox"> 2 2 <?php if (!getFormData('current', false)) { ?> 3 3 <span class="sc-nowrap commanditem"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=restore', array('version_id', 'version_title')); ?>"><?php echo _("Restore this saved version"); ?></a></span> -
trunk/services/templates/versions_view.ihtml
r365 r457 1 <div id="commandbox">1 <div class="commandbox"> 2 2 <span class="sc-nowrap commanditem"><a href="<?php echo $app->ohref(oTxt($_SERVER['PHP_SELF'])); ?>"><?php echo _("Back to the Versions List"); ?></a></span> 3 3 <?php if (!getFormData('current', false)) { ?> -
trunk/services/versions.php
r396 r457 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/>. … … 27 27 // require_once dirname(__FILE__) . '/_config.inc.php'; 28 28 29 $app->sslOn(); 29 30 $auth->requireLogin(); 30 $app->sslOn();31 31 32 32 require_once 'codebase/lib/Version.inc.php'; … … 38 38 39 39 // Since we're using the singleton pattern we can instantiate a Version object earlier with custom parameters. 40 $version =& Version::getInstance($auth); 40 $version =& Version::getInstance($auth); 41 41 42 42 // Query arguments to retain their values between page requests.
Note: See TracChangeset
for help on using the changeset viewer.