PunBB 1.1.4 to 1.1.5 Changes Legend
Lines removed 
Lines changed
 Lines added

punbb-1.1.4/upload/header.php punbb-1.1.5/upload/header.php
 23: ************************************************************************/ 23: ************************************************************************/
 24:  24: 
 25:  25: 
  26: // Make sure no one attempts to run this script "directly"
  27: if (!defined('PUN'))
  28:     exit;
  29: 
 26: // Send no-cache headers 30: // Send no-cache headers
 27: //header('Cache-Control: no-store, no-cache, must-revalidate'); 31: //header('Cache-Control: no-store, no-cache, must-revalidate');
 28: header('Cache-Control: post-check=0, pre-check=0', false); 32: header('Cache-Control: post-check=0, pre-check=0', false);


punbb-1.1.4/upload/include/common.php punbb-1.1.5/upload/include/common.php
 31: //define('PUN_SHOW_QUERIES', 1); 31: //define('PUN_SHOW_QUERIES', 1);
 32:  32: 
 33:  33: 
 34: @include $pun_root.'config.php'; 34: if (is_dir($pun_root)) @include $pun_root.'config.php';
 35:  35: 
 36: // If PUN isn't defined, config.php is missing or corrupt 36: // If PUN isn't defined, config.php is missing or corrupt
 37: if (!defined('PUN')) 37: if (!defined('PUN'))


punbb-1.1.4/upload/include/functions.php punbb-1.1.5/upload/include/functions.php
607: {607: {
608:     global $pun_config, $lang_common;608:     global $pun_config, $lang_common;
609: 609: 
610:     if (!preg_match('#^'.preg_quote($pun_config['o_base_url'].'/'.$script, '#').'#i', $_SERVER['HTTP_REFERER']))610:     if (!preg_match('#^'.preg_quote(str_replace('www.', '', $pun_config['o_base_url']).'/'.$script, '#').'#i', str_replace('www.', '', $_SERVER['HTTP_REFERER'])))
611:         message($lang_common['Bad referer']);611:         message($lang_common['Bad referer']);
612: }    612: }    
613: 613: 


punbb-1.1.4/upload/include/parser.php punbb-1.1.5/upload/include/parser.php
173: {173: {
174:     global $cur_user;174:     global $cur_user;
175: 175: 
176:     $full_url = $url;176:     $full_url = str_replace(' ', '%20', $url);
177:     if (strpos($url, 'www.') === 0)177:     if (strpos($url, 'www.') === 0)
178:         $full_url = 'http://'.$full_url;178:         $full_url = 'http://'.$full_url;
179:     else if (strpos($url, 'ftp.') === 0)179:     else if (strpos($url, 'ftp.') === 0)
180:         $full_url = 'ftp://'.$full_url;180:         $full_url = 'ftp://'.$full_url;
181:     else if (strpos($url, 'http://') !== 0)181:     else if (!preg_match('#^([a-z]{3,5})://#', $url))
182:         $full_url = 'http://'.$full_url;182:         $full_url = 'http://'.$full_url;
183: 183: 
184:     // Ok, not very pretty :-)184:     // Ok, not very pretty :-)


punbb-1.1.4/upload/install.php punbb-1.1.5/upload/install.php
 24:  24: 
 25:  25: 
 26: // The PunBB version this script installs 26: // The PunBB version this script installs
 27: $punbb_version = '1.1.4'; 27: $punbb_version = '1.1.5';
 28:  28: 
 29:  29: 
 30: $pun_root = './'; 30: $pun_root = './';


punbb-1.1.4/upload/search.php punbb-1.1.5/upload/search.php
694: 694: 
695: $extra_sql = ($cur_user['status'] < PUN_MOD) ? ' WHERE f.admmod_only=\'0\'' : '';695: $extra_sql = ($cur_user['status'] < PUN_MOD) ? ' WHERE f.admmod_only=\'0\'' : '';
696: 696: 
697: $result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id'.$extra.' ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());697: $result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id'.$extra_sql.' ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
698: $num_forums = $db->num_rows($result);698: $num_forums = $db->num_rows($result);
699: 699: 
700: while ($num_forums--)700: while ($num_forums--)


hdiff - version: 2.1.0 (modified)