Changeset 1667 in ExiteCMS
- Timestamp:
- 08/21/08 22:23:11 (3 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
administration/frontpage.php (modified) (1 diff)
-
includes/ajax.response.php (modified) (2 diffs)
-
includes/search/search.articles.php (modified) (1 diff)
-
includes/search/search.downloads.php (modified) (1 diff)
-
includes/search/search.forumattachments.php (modified) (1 diff)
-
includes/search/search.forumposts.php (modified) (1 diff)
-
includes/search/search.members.php (modified) (1 diff)
-
includes/search/search.news.php (modified) (1 diff)
-
includes/user_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/frontpage.php
r1656 r1667 50 50 $fwhere = ""; 51 51 $nwhere = ""; 52 if (!isset($news_locale)) $news_locale = $settings['locale_code']; 52 53 break; 53 54 case "single": 54 55 $fwhere = ""; 55 56 $nwhere = ""; 57 if (!isset($news_locale)) $news_locale = $settings['locale_code']; 56 58 break; 57 59 case "multiple": -
trunk/includes/ajax.response.php
r1648 r1667 53 53 // process the request 54 54 switch ($request) { 55 // return the HTML needed for the smiley's block56 55 case "pm": 57 56 // get the number of unread PM messages for this user … … 120 119 break; 121 120 case "smileys": 121 // return the HTML needed for the smiley's block 122 122 if (empty($parms[0])) { 123 123 echo "ERROR: Missing parameter on '$request' ajax call!"; -
trunk/includes/search/search.articles.php
r1626 r1667 151 151 152 152 // now add a query limit, make sure not to overshoot the limit requested 153 if ($limit > 0) { 154 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 155 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 156 } else { 157 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 158 } 153 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 154 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 155 } else { 156 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 159 157 } 160 158 $rptresult = dbquery($sql); -
trunk/includes/search/search.downloads.php
r1626 r1667 136 136 137 137 // now add a query limit, make sure not to overshoot the limit requested 138 if ($limit > 0) { 139 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 140 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 141 } else { 142 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 143 } 138 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 139 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 140 } else { 141 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 144 142 } 145 143 $rptresult = dbquery($sql); -
trunk/includes/search/search.forumattachments.php
r1626 r1667 173 173 174 174 // now add a query limit, make sure not to overshoot the limit requested 175 if ($limit > 0) { 176 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 177 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 178 } else { 179 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 180 } 175 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 176 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 177 } else { 178 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 181 179 } 182 180 $rptresult = dbquery($sql); -
trunk/includes/search/search.forumposts.php
r1626 r1667 172 172 173 173 // now add a query limit, make sure not to overshoot the limit requested 174 if ($limit > 0) { 175 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 176 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 177 } else { 178 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 179 } 174 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 175 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 176 } else { 177 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 180 178 } 181 179 $rptresult = dbquery($sql); -
trunk/includes/search/search.members.php
r1626 r1667 117 117 118 118 // now add a query limit, make sure not to overshoot the limit requested 119 if ($limit > 0) { 120 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 121 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 122 } else { 123 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 124 } 119 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 120 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 121 } else { 122 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 125 123 } 126 124 $rptresult = dbquery($sql); -
trunk/includes/search/search.news.php
r1626 r1667 150 150 151 151 // now add a query limit, make sure not to overshoot the limit requested 152 if ($limit > 0) { 153 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 154 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 155 } else { 156 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 157 } 152 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 153 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 154 } else { 155 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 158 156 } 159 157 $rptresult = dbquery($sql); -
trunk/includes/user_functions.php
r1635 r1667 59 59 if (isset($_POST['login'])) { 60 60 $auth_result = false; 61 $auth_methods = explode(",",$settings['auth_type'].",");61 $auth_methods = isset($settings['auth_type']) ? explode(",",$settings['auth_type'].",") : array('local'); 62 62 foreach($auth_methods as $auth_method) { 63 63 switch($auth_method) {
Note: See TracChangeset
for help on using the changeset viewer.
