diff --git a/webtools/update/developers/categorymanager.php b/webtools/update/developers/categorymanager.php index 53dccb0eebbf..ae97ff190081 100755 --- a/webtools/update/developers/categorymanager.php +++ b/webtools/update/developers/categorymanager.php @@ -27,13 +27,15 @@ if (!$function) { ?> MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); + } } ?>

Manage Category List

@@ -70,7 +72,7 @@ $typenames = array("E"=>"Extensions", "T"=>"Themes","P"=>"Plugins"); "Extensions", "T"=>"Themes","P"=>"Plugins"); echo"\n"; } - } ?>

New Category for

+ Name:
Description:
@@ -124,17 +126,20 @@ if ($_POST["submit"] == "Update") { $catname = $_POST["catname"]; $catdesc = $_POST["catdesc"]; $cattype = $_POST["cattype"]; + if (checkFormKey()) { $sql = "UPDATE `t_categories` SET `CatName`='$catname', `CatDesc`='$catdesc', `CatType`='$cattype' WHERE `CategoryID`='$categoryid'"; $sql_result = mysql_query($sql, $connection) or trigger_error("
MySQL Error ".mysql_errno().": ".mysql_error()."
", E_USER_NOTICE); - echo"Your update to $catname, has been submitted successfully...
"; + echo"Your update to $catname, has been submitted successfully...
"; + } } else if ($_POST["submit"] == "Delete Category") { echo"

Processing Delete Request, please wait...

\n"; $categoryid = $_POST["categoryid"]; - $sql = "DELETE FROM `t_categories` WHERE `CategoryID`='$categoryid'"; - $sql_result = mysql_query($sql, $connection) or trigger_error("
MySQL Error ".mysql_errno().": ".mysql_error()."
", E_USER_NOTICE); - + if (checkFormKey()) { + $sql = "DELETE FROM `t_categories` WHERE `CategoryID`='$categoryid'"; + $sql_result = mysql_query($sql, $connection) or trigger_error("
MySQL Error ".mysql_errno().": ".mysql_error()."
", E_USER_NOTICE); + } echo"You've successfully deleted the category '$catname'...
"; } @@ -153,6 +158,7 @@ if (!$categoryid) { $categoryid = $_POST["categoryid"]; }

Edit Category :

+
\n"; echo"Description:
\n"; @@ -166,6 +172,7 @@ if (!$categoryid) { $categoryid = $_POST["categoryid"]; } «« Return to Category Manager
diff --git a/webtools/update/developers/faqmanager.php b/webtools/update/developers/faqmanager.php index fabbbd6b6f69..9c1ca83ce3c3 100755 --- a/webtools/update/developers/faqmanager.php +++ b/webtools/update/developers/faqmanager.php @@ -67,7 +67,7 @@ if (!$function) {

New FAQ Entry

- + Title:
@@ -85,23 +85,27 @@ if (!$function) { $text = $_POST["text"]; $active = $_POST["active"]; $id = $_POST["id"]; - $sql = "UPDATE `t_faq` SET `title`='$title', `index`='$index', `alias`='$alias', `text`='$text', `active`='$active' WHERE `id`='$id'"; - $sql_result = mysql_query($sql, $connection) or trigger_error("
MySQL Error ".mysql_errno().": ".mysql_error()."
", E_USER_NOTICE); - if ($sql_result) { - echo"Your update to '$title', has been successful.
"; + if (checkFormKey()) { + $sql = "UPDATE `t_faq` SET `title`='$title', `index`='$index', `alias`='$alias', `text`='$text', `active`='$active' WHERE `id`='$id'"; + $sql_result = mysql_query($sql, $connection) or trigger_error("
MySQL Error ".mysql_errno().": ".mysql_error()."
", E_USER_NOTICE); + if ($sql_result) { + echo"Your update to '$title', has been successful.
"; + } } } else if ($_POST["submit"] == "Delete Entry") { echo"

Processing, please wait...

\n"; $id = $_POST["id"]; $title = $_POST["title"]; - $sql = "DELETE FROM `t_faq` WHERE `id`='$id'"; - $sql_result = mysql_query($sql, $connection) or trigger_error("
MySQL Error ".mysql_errno().": ".mysql_error()."
", E_USER_NOTICE); - if ($sql_result) { - echo"You've successfully deleted the FAQ Entry '$title'."; - include"$page_footer"; - echo"\n\n"; - exit; + if (checkFormKey()) { + $sql = "DELETE FROM `t_faq` WHERE `id`='$id'"; + $sql_result = mysql_query($sql, $connection) or trigger_error("
MySQL Error ".mysql_errno().": ".mysql_error()."
", E_USER_NOTICE); + if ($sql_result) { + echo"You've successfully deleted the FAQ Entry '$title'."; + include"$page_footer"; + echo"\n\n"; + exit; + } } } @@ -113,6 +117,7 @@ if (!$function) {

Edit FAQ Entry:

+ \n"; echo"Title: "; @@ -164,16 +169,19 @@ if ($active=="YES") { $text = $_POST["text"]; $active = $_POST["active"]; $id = $_POST["id"]; - $sql = "INSERT INTO `t_faq` (`title`,`index`,`alias`, `text`, `active`) VALUES ('$title','$index','$alias', '$text', '$active')"; - $sql_result = mysql_query($sql, $connection) or trigger_error("
MySQL Error ".mysql_errno().": ".mysql_error()."
", E_USER_NOTICE); - if ($sql_result) { + if (checkFormKey()) { + $sql = "INSERT INTO `t_faq` (`title`,`index`,`alias`, `text`, `active`) VALUES ('$title','$index','$alias', '$text', '$active')"; + $sql_result = mysql_query($sql, $connection) or trigger_error("
MySQL Error ".mysql_errno().": ".mysql_error()."
", E_USER_NOTICE); + if ($sql_result) { echo"The entry '$title' has been successfully added.
\n"; - } + } + } } ?>

Add FAQ Entry:

+ MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); $num = mysql_num_rows($sql_result); diff --git a/webtools/update/developers/previews.php b/webtools/update/developers/previews.php index 0964fe7d0728..ba88bd4b4536 100755 --- a/webtools/update/developers/previews.php +++ b/webtools/update/developers/previews.php @@ -191,6 +191,11 @@ if ($type=="2" or $type=="3") { //Destination Properties for the Display Image //Output Image Dimensions + +//Limit Max. +if ($width > "690") {$width="690";} +if ($width > "520") {$width="520";} + $dest_width="$width"; // Destination Width /$tn_size_width $dest_height_fixed="$height"; // Destination Height / $tn_size_height (Fixed) $dest_height= ($src_height * $dest_width) / $src_width; // (Aspect Ratio Variable Height