Changeset 468 for trunk/bin/module_maker/skel/admin.php
- Timestamp:
- Feb 20, 2014 3:03:59 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:mergeinfo
set to
/branches/eli_branch merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/bin/module_maker/skel/admin.php
r408 r468 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/>. … … 236 236 $db =& DB::getInstance(); 237 237 $app =& App::getInstance(); 238 238 239 239 $lock->select('%DB_TBL%', '%PRIMARY_KEY%', $id); 240 240 if ($lock->isLocked() && !$lock->isMine()) { … … 278 278 $db =& DB::getInstance(); 279 279 $app =& App::getInstance(); 280 280 281 281 $lock->select('%DB_TBL%', '%PRIMARY_KEY%', $id); 282 282 if ($lock->isLocked() && !$lock->isMine()) { … … 314 314 $db =& DB::getInstance(); 315 315 $app =& App::getInstance(); 316 316 317 317 // Remove any stale cached list data. 318 318 $cache->delete('list'); … … 337 337 $db =& DB::getInstance(); 338 338 $app =& App::getInstance(); 339 339 340 340 $lock->select('%DB_TBL%', '%PRIMARY_KEY%', $frm['%PRIMARY_KEY%']); 341 341 if ($lock->isLocked() && !$lock->isMine()) { … … 364 364 global $tmp_prefs; 365 365 global $cache; 366 $db =& DB::getInstance(); 367 $app =& App::getInstance(); 368 366 $db =& DB::getInstance(); 367 $app =& App::getInstance(); 368 369 369 $where_clause = ''; 370 370 … … 379 379 if (getFormData('filter___///__', false)) { 380 380 // Limit by filter. 381 $where_clause .= (empty($where_clause) ? 'WHERE' : ' AND') . " __///__ = '" . $db->escapeString(getFormData('filter___///__')) . "'";381 $where_clause .= (empty($where_clause) ? 'WHERE' : ' AND') . " __///__ = '" . $db->escapeString(getFormData('filter___///__')) . "'"; 382 382 } 383 383 … … 425 425 return $list; 426 426 } 427 427 428 428 // The list was not cached, so issue the real query. 429 429 $qid = $db->query($sql); … … 445 445 $db =& DB::getInstance(); 446 446 $app =& App::getInstance(); 447 447 448 448 if (!is_array($ranks)) { 449 449 $app->logMsg('Saving rank failed, data posted is not an array: ' . $ranks, LOG_ERR, __FILE__, __LINE__); … … 476 476 } 477 477 } 478 479 ?>
Note: See TracChangeset
for help on using the changeset viewer.