diff -r ./pixelpost_v1.7.1/ReadMe.txt ./pixelpost_v1.7.2-2/ReadMe.txt 1c1 < Pixelpost version 1.7.1 --- > Pixelpost version 1.7.2 diff -r ./pixelpost_v1.7.1/admin/index.php ./pixelpost_v1.7.2-2/admin/index.php 69c69 < $version = "MS43LjEgKEJldHRlciB0aGFuIEV2ZXIpIC0gSmFudWFyeSAyMDA4"; --- > $version = "MS43LjIgKFF1aWNraWUpIC0gSnVseSAyMDA5"; 77c77 < if( $installed_version < 1.71 ) --- > if( $installed_version < 1.72 ) diff -r ./pixelpost_v1.7.1/admin/install/install_functions.php ./pixelpost_v1.7.2-2/admin/install/install_functions.php 270a271,277 > > $last_char = substr($var, -1, 1); > > // If last char is a "+", remove it before decoding > if($last_char == '+') { > $var = substr($var, 0, strlen($var) - 1); > } 792c799 < $selected = ($offset == $data['pp_timezone']) ? ' selected="selected"' : ''; --- > $selected = ($offset == @$data['pp_timezone']) ? ' selected="selected"' : ''; 1095a1103,1155 > > /** > * Check if the file config already exists > * If it does, and it has the correct information, > * we can safely skip writing to the file. > */ > if (file_exists($config_path)) { > > @include($config_path); > > if ( > $pixelpost_db_host == $data['db_host'] && > $pixelpost_db_user == $data['db_user'] && > $pixelpost_db_pass == $db_pass && > $pixelpost_db_pixelpost == $data['db_name'] && > $pixelpost_db_prefix == $data['tbl_prefix'] > ) { > > $connect_test = connect_check($error, $pixelpost_db_host, $pixelpost_db_pixelpost, $pixelpost_db_user, $pixelpost_db_pass, $pixelpost_db_prefix); > > if ($connect_test) { > > $result['writable'] = $lang_writable_no; > > $result['writable'] = $lang_writable_no; > $result['error'] = $result['writable']; > $result['css_writable'] = "redHighlightBold"; > > $result['fopen'] = $lang_passed; > $result['css_fopen'] = "grnHighlightBold"; > > $result['fwrite'] = $lang_fail; > $result['css_fwrite'] = "redHighlightBold"; > > $result['exists'] = $lang_found; > $result['css_exists'] = "grnHighlightBold"; > > $result['chmod'] = $lang_fail; > $result['error'] = $result['chmod']; > $result['css_chmod'] = "redHighlightBold"; > > $result['connect'] = $lang_conn_success; > $result['verifed'] = true; > $result['css_connect'] = "grnHighlightBold"; > > return $result; > } > } > > // Remove the test variables > unset($error,$pixelpost_db_host,$pixelpost_db_user,$pixelpost_db_pass,$pixelpost_db_pixelpost,$pixelpost_db_prefix); > } > diff -r ./pixelpost_v1.7.1/admin/install/install_schema.php ./pixelpost_v1.7.2-2/admin/install/install_schema.php 71a72,73 > case 1.71: > $ins_data[] = UpgradeTo171($prefix,'1.72'); diff -r ./pixelpost_v1.7.1/admin/install.php ./pixelpost_v1.7.2-2/admin/install.php 13c13 < define('PP_VERSION', '1.71'); --- > define('PP_VERSION', '1.72'); diff -r ./pixelpost_v1.7.1/includes/functions.php ./pixelpost_v1.7.2-2/includes/functions.php 897a898,903 > > // The database is having issues, or doesn't exist. > if ($result === false) { > die("ERROR: There is a problem with the database, please make sure pixelpost has been installed."); > } > diff -r ./pixelpost_v1.7.1/index.php ./pixelpost_v1.7.2-2/index.php 435c435,439 < }else{ --- > /** > * If the display_sort_by config option exists, try to load an image. > * Otherwise, just display the "Coming Soon!" message. > */ > }else if (isset($cfgrow['display_sort_by'])){