diff --git a/www-ssl/admin/userDefaultSetting.php b/www-ssl/admin/userDefaultSetting.php
index 7dddde96..5ab7e653 100755
--- a/www-ssl/admin/userDefaultSetting.php
+++ b/www-ssl/admin/userDefaultSetting.php
@@ -8,6 +8,10 @@ include ("./inc/funktion_db_list.php");
echo "Hallo ".$_SESSION['Nick'].
",
\nhier hast du die Möglichkeit, die Defaulteinstellungen für neue User einzustellen:
\n";
+echo "
\n";
+echo "\t\n";
+echo "\t\tPage | \n\t\tShow | \n\t\t | \n";
+echo "\t
\n";
if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"]))
{
@@ -16,27 +20,44 @@ if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"]))
case "New":
$SQL = "ALTER TABLE `UserCVS` ADD `". $_GET["Field"]. "` ".
"CHAR( 1 ) DEFAULT '". $_GET["Default"]. "' NOT NULL";
- $erg = mysql_query( $SQL, $con);
- if( $erg == 1)
+ $Erg = mysql_query( $SQL, $con);
+ if( $Erg == 1)
echo "Create ".$_GET["Field"]. " = ". $_GET["Default"]. " succesfull
\n";
else
echo "Create ".$_GET["Field"]. " = ". $_GET["Default"]. " error...
\n".
"[". mysql_error(). "]
";
break;
case "Del":
+ echo "\t\n";
+ echo "\t\t\n";
+ echo "\t
\n";
+ break;
+ case "Del sure":
$SQL = "ALTER TABLE `UserCVS` DROP `". $_GET["Field"]. "` ";
- $erg = mysql_query( $SQL, $con);
- if( $erg == 1)
+ $Erg = mysql_query( $SQL, $con);
+ if( $Erg == 1)
echo "Delete ".$_GET["Field"]. " succesfull
\n";
else
echo "Delete ".$_GET["Field"]. " error...
\n".
"[". mysql_error(). "]
";
break;
+ case "SetForAllUser":
+ $SQL = "UPDATE `UserCVS` SET `". $_GET["Field"]. "` = '". $_GET["Default"]. "'";
+ $Erg = mysql_query( $SQL, $con);
+ if( $Erg == 1)
+ echo "UPDATE ".$_GET["Field"]. " = ". $_GET["Default"]. " for all Users succesfull
\n";
+ else
+ echo "UPDATE ".$_GET["Field"]. " = ". $_GET["Default"]. " for all Users error...
\n".
+ "[". mysql_error(). "]
";
case "Save":
$SQL = "ALTER TABLE `UserCVS` CHANGE `". $_GET["Field"]. "` ".
"`". $_GET["Field"]. "` CHAR( 1 ) NOT NULL DEFAULT '". $_GET["Default"]. "'";
- $erg = mysql_query( $SQL, $con);
- if( $erg == 1)
+ $Erg = mysql_query( $SQL, $con);
+ if( $Erg == 1)
echo "Write ".$_GET["Field"]. " = ". $_GET["Default"]. " succesfull
\n";
else
echo "Write ".$_GET["Field"]. " = ". $_GET["Default"]. " error...
\n".
@@ -45,13 +66,10 @@ if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"]))
} //SWITCH
} //IF(
+
$erg = mysql_query("SHOW COLUMNS FROM `UserCVS`");
echo mysql_error();
-echo "