Changeset 103 for trunk/lib/App.inc.php
- Timestamp:
- Apr 19, 2006 3:14:28 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r102 r103 222 222 */ 223 223 224 if ( $this->getParam('enable_db')) {224 if (true === $this->getParam('enable_db')) { 225 225 226 226 // DB connection parameters taken from environment variables in the httpd.conf file, readable only by root. … … 337 337 { 338 338 session_write_close(); 339 $this->db->close();340 339 restore_include_path(); 341 340 $this->running = false; 341 if (true === $this->getParam('enable_db')) { 342 $this->db->close(); 343 } 342 344 } 343 345 … … 364 366 365 367 if (!$this->running || '' == $message) { 368 $this->logMsg(sprintf('Canceled method call %s, application not running or message is an empty string.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 366 369 return false; 367 370 } … … 397 400 398 401 if (!$this->running) { 402 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 399 403 return false; 400 404 } … … 421 425 422 426 if (!$this->running) { 427 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 423 428 return false; 424 429 } … … 441 446 442 447 if (!$this->running) { 448 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 443 449 return false; 444 450 } … … 650 656 651 657 if (!$this->running) { 658 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 652 659 return false; 653 660 } … … 769 776 770 777 if (!$this->running) { 778 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 771 779 return false; 772 780 } … … 831 839 832 840 if (!$this->running) { 841 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 833 842 return false; 834 843 } … … 879 888 880 889 if (!$this->running) { 890 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 881 891 return false; 882 892 } … … 925 935 926 936 if (!$this->running) { 937 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 927 938 return false; 928 939 } … … 966 977 967 978 if (!$this->running) { 979 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 968 980 return false; 969 981 } … … 994 1006 995 1007 if (!$this->running) { 1008 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 996 1009 return false; 997 1010 } … … 1007 1020 1008 1021 /** 1009 * Check if a valid boomerang URL value has been set. 1010 * if it is not the current url, andhas not been accessed within n seconds.1011 * 1012 * @return bool True if it is set and not the current URL.1022 * Check if a valid boomerang URL value has been set. A boomerang URL is considered 1023 * valid if: 1) it is not empty, 2) it is not the current URL, and 3) has not been accessed within n seconds. 1024 * 1025 * @return bool True if it is set and valid, false otherwise. 1013 1026 */ 1014 1027 function validBoomerangURL($id=null, $use_nonspecificboomerang=false) … … 1019 1032 1020 1033 if (!$this->running) { 1034 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_DEBUG, __FILE__, __LINE__); 1021 1035 return false; 1022 1036 } 1023 1037 1024 1038 if (!isset($_SESSION[$this->app]['boomerang']['url'])) { 1039 $this->logMsg(sprintf('validBoomerangURL(%s) no boomerang URL set.', $id, $url), LOG_DEBUG, __FILE__, __LINE__); 1025 1040 return false; 1026 1041 }
Note: See TracChangeset
for help on using the changeset viewer.