@@ -261,14 +261,12 @@ |
||
| 261 | 261 | $table->addNewField($field, $type); |
| 262 | 262 | //$xoopsDB->query("ALTER TABLE ".$table." ADD ".$field." ".$type); |
| 263 | 263 | //echo $field."(".$type.") <FONT COLOR='##22DD51'>Added</FONT><br />"; |
| 264 | - } |
|
| 265 | - elseif ($existing_fields[$field] != $type) { |
|
| 264 | + } elseif ($existing_fields[$field] != $type) { |
|
| 266 | 265 | $table->addAlteredField($field, $field." ".$type); |
| 267 | 266 | // check $fields[$field]['type'] for things like "int(10) unsigned" |
| 268 | 267 | //$xoopsDB->query("ALTER TABLE ".$table." CHANGE ".$field." ".$field." ".$type); |
| 269 | 268 | //echo $field." <FONT COLOR='#FF6600'>Changed to</FONT> ".$type."<br />"; |
| 270 | - } |
|
| 271 | - else { |
|
| 269 | + } else { |
|
| 272 | 270 | //echo $field." <FONT COLOR='#0033FF'>Uptodate</FONT><br />"; |
| 273 | 271 | } |
| 274 | 272 | } |
@@ -60,8 +60,12 @@ |
||
| 60 | 60 | |
| 61 | 61 | $op = ''; |
| 62 | 62 | |
| 63 | -if (isset($_GET['op'])) $op = $_GET['op']; |
|
| 64 | -if (isset($_POST['op'])) $op = $_POST['op']; |
|
| 63 | +if (isset($_GET['op'])) { |
|
| 64 | + $op = $_GET['op']; |
|
| 65 | +} |
|
| 66 | +if (isset($_POST['op'])) { |
|
| 67 | + $op = $_POST['op']; |
|
| 68 | +} |
|
| 65 | 69 | |
| 66 | 70 | switch ($op) { |
| 67 | 71 | case "mod": |
@@ -20,8 +20,12 @@ |
||
| 20 | 20 | |
| 21 | 21 | $op = ''; |
| 22 | 22 | |
| 23 | -if (isset($_GET['op'])) $op = $_GET['op']; |
|
| 24 | -if (isset($_POST['op'])) $op = $_POST['op']; |
|
| 23 | +if (isset($_GET['op'])) { |
|
| 24 | + $op = $_GET['op']; |
|
| 25 | +} |
|
| 26 | +if (isset($_POST['op'])) { |
|
| 27 | + $op = $_POST['op']; |
|
| 28 | +} |
|
| 25 | 29 | |
| 26 | 30 | switch ($op) { |
| 27 | 31 | |
@@ -42,6 +42,6 @@ |
||
| 42 | 42 | |
| 43 | 43 | if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ |
| 44 | 44 | include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); |
| 45 | - }else{ |
|
| 45 | + } else{ |
|
| 46 | 46 | redirect_header("../../../admin.php", 5, _AM_BIRTHDAY_MODULEADMIN_MISSING, false); |
| 47 | 47 | } |
| 48 | 48 | \ No newline at end of file |
@@ -47,8 +47,12 @@ |
||
| 47 | 47 | |
| 48 | 48 | $op = ''; |
| 49 | 49 | |
| 50 | -if (isset($_GET['op'])) $op = $_GET['op']; |
|
| 51 | -if (isset($_POST['op'])) $op = $_POST['op']; |
|
| 50 | +if (isset($_GET['op'])) { |
|
| 51 | + $op = $_GET['op']; |
|
| 52 | +} |
|
| 53 | +if (isset($_POST['op'])) { |
|
| 54 | + $op = $_POST['op']; |
|
| 55 | +} |
|
| 52 | 56 | |
| 53 | 57 | switch ($op) { |
| 54 | 58 | case "mod": |
@@ -42,8 +42,12 @@ |
||
| 42 | 42 | |
| 43 | 43 | $op = ''; |
| 44 | 44 | |
| 45 | -if (isset($_GET['op'])) $op = $_GET['op']; |
|
| 46 | -if (isset($_POST['op'])) $op = $_POST['op']; |
|
| 45 | +if (isset($_GET['op'])) { |
|
| 46 | + $op = $_GET['op']; |
|
| 47 | +} |
|
| 48 | +if (isset($_POST['op'])) { |
|
| 49 | + $op = $_POST['op']; |
|
| 50 | +} |
|
| 47 | 51 | |
| 48 | 52 | switch ($op) { |
| 49 | 53 | case "mod": |
@@ -58,8 +58,12 @@ |
||
| 58 | 58 | |
| 59 | 59 | $op = ''; |
| 60 | 60 | |
| 61 | -if (isset($_GET['op'])) $op = $_GET['op']; |
|
| 62 | -if (isset($_POST['op'])) $op = $_POST['op']; |
|
| 61 | +if (isset($_GET['op'])) { |
|
| 62 | + $op = $_GET['op']; |
|
| 63 | +} |
|
| 64 | +if (isset($_POST['op'])) { |
|
| 65 | + $op = $_POST['op']; |
|
| 66 | +} |
|
| 63 | 67 | |
| 64 | 68 | $tagid = isset($_GET['tagid']) ? $_GET['tagid'] : 0 ; |
| 65 | 69 | $fct = isset($_GET['fct']) ? $_GET['fct'] :'' ; |
@@ -50,8 +50,12 @@ |
||
| 50 | 50 | |
| 51 | 51 | $op = ''; |
| 52 | 52 | |
| 53 | -if (isset($_GET['op'])) $op = $_GET['op']; |
|
| 54 | -if (isset($_POST['op'])) $op = $_POST['op']; |
|
| 53 | +if (isset($_GET['op'])) { |
|
| 54 | + $op = $_GET['op']; |
|
| 55 | +} |
|
| 56 | +if (isset($_POST['op'])) { |
|
| 57 | + $op = $_POST['op']; |
|
| 58 | +} |
|
| 55 | 59 | |
| 56 | 60 | switch ($op) { |
| 57 | 61 | case "mod": |
@@ -710,8 +710,7 @@ discard block |
||
| 710 | 710 | } |
| 711 | 711 | if (!empty ($width)) { |
| 712 | 712 | $height = $dimension[1] * $width / $dimension[0]; |
| 713 | - } |
|
| 714 | - elseif (!empty ($height)) { |
|
| 713 | + } elseif (!empty ($height)) { |
|
| 715 | 714 | $width = $dimension[0] * $height / $dimension[1]; |
| 716 | 715 | } else { |
| 717 | 716 | list ($width, $height) = array ( |
@@ -897,7 +896,7 @@ discard block |
||
| 897 | 896 | $str = str_replace('.', '', $str); // Erase thousand seps |
| 898 | 897 | $str = str_replace(',', '.', $str); // Convert , to . for floatval command |
| 899 | 898 | return floatval($str); |
| 900 | - }else{ |
|
| 899 | + } else{ |
|
| 901 | 900 | // No comma exists, so we have to decide, how a single dot shall be treated |
| 902 | 901 | if(preg_match("/^[0-9\-]*[\.]{1}[0-9-]+$/", $str) == TRUE && $set['single_dot_as_decimal'] == TRUE){ |
| 903 | 902 | // Treat single dot as decimal separator |
@@ -909,7 +908,7 @@ discard block |
||
| 909 | 908 | return floatval($str); |
| 910 | 909 | } |
| 911 | 910 | } |
| 912 | - }else{ |
|
| 911 | + } else{ |
|
| 913 | 912 | // No number found, return zero |
| 914 | 913 | return 0; |
| 915 | 914 | } |