diff --git a/Pic/Upload/KWorld.png b/Pic/Upload/KWorld.png
new file mode 100644
index 0000000..677d471
Binary files /dev/null and b/Pic/Upload/KWorld.png differ
diff --git a/Pic/Upload/Konvos.png b/Pic/Upload/Konvos.png
new file mode 100644
index 0000000..a04e00a
Binary files /dev/null and b/Pic/Upload/Konvos.png differ
diff --git a/Pic/Upload/ftp.png b/Pic/Upload/ftp.png
new file mode 100644
index 0000000..eaf6215
Binary files /dev/null and b/Pic/Upload/ftp.png differ
diff --git a/Pic/Upload/headphones.png b/Pic/Upload/headphones.png
new file mode 100644
index 0000000..3110160
Binary files /dev/null and b/Pic/Upload/headphones.png differ
diff --git a/Pic/Upload/madsonic.png b/Pic/Upload/madsonic.png
new file mode 100644
index 0000000..f9dc55e
Binary files /dev/null and b/Pic/Upload/madsonic.png differ
diff --git a/Pic/Upload/sick.png b/Pic/Upload/sick.png
new file mode 100644
index 0000000..0c8dea9
Binary files /dev/null and b/Pic/Upload/sick.png differ
diff --git a/Pic/Upload/test.jpg b/Pic/Upload/test.jpg
new file mode 100644
index 0000000..7fb175b
Binary files /dev/null and b/Pic/Upload/test.jpg differ
diff --git a/assets/css/jquery.gridster.css b/assets/css/jquery.gridster.css
index cc19584..46f467f 100644
--- a/assets/css/jquery.gridster.css
+++ b/assets/css/jquery.gridster.css
@@ -1,6 +1,5 @@
.gridster {
width: 730px;
- background: #004756;
margin-left:auto;
margin-right:auto;
opacity: .8;
@@ -104,9 +103,4 @@ h3 {
font-size: 25px;
font-weight: 600;
color: white;
-}
-
-/* Uncomment this if you set helper : "clone" in draggable options */
-/*.gridster .player {
- opacity:0;
-}*/
+}
\ No newline at end of file
diff --git a/config/set2.php b/config/set2.php
index 1719dfc..0667346 100644
--- a/config/set2.php
+++ b/config/set2.php
@@ -4,38 +4,115 @@
SAB Enabled: "0") echo "checked=checked; "; ?> />
SAB Port:
SAB Name:
- SAB Pic:
-
+$folder = '../Pic/Upload';
+
+echo ''."\n".'';
+
+function image_filenames($dir)
+{
+ $handle = @opendir($dir)
+ or die("I cannot open the directory '$dir' for reading.");
+ $images = array();
+ while (false !== ($file = readdir($handle)))
+ {
+ if (eregi('\.(jpg|gif|png)$', $file))
+ {
+ $images[] = $file;
+ }
+ }
+ closedir($handle);
+ return $images;
+}
+
+function dropdown($options_array, $selected = null)
+{
+global $sabpicname;
+ $return = null;
+ foreach($options_array as $option)
+ {
+ $return .= ''."\n";
+ }
+ return $return;
+}
+
+?>
Sick Enabled: "0") echo "checked=checked; "; ?> />
Sick Type : >SickBeard / "1") echo "checked=checked; "; ?>>SickRage
Sick Port:
Sick Name:
- Sick Pic:
-
+ Sick Pic:'."\n".
+ dropdown_sick(image_filenames($folder), @$_POST['image2']).
+ ''."\n".'';
+
+function dropdown_sick($options_array, $selected = null)
+{
+global $sickpicname;
+ $return = null;
+ foreach($options_array as $option)
+ {
+ $return .= ''."\n";
+ }
+ return $return;
+}
+
+?>
+
Couch Enabled: "0") echo "checked=checked; "; ?> />
Couch Adults : "0") echo "checked=checked; "; ?>>Enabled / >Disabled
Couch Adults Port:
Couch Adults Name:
- Couch Adults Pic:
+ Couch Adults Pic: '."\n".
+ dropdown_cpa(image_filenames($folder), @$_POST['image2']).
+ ''."\n".'';
+
+function dropdown_cpa($options_array, $selected = null)
+{
+global $cpadultspicname;
+ $return = null;
+ foreach($options_array as $option)
+ {
+ $return .= ''."\n";
+ }
+ return $return;
+}
+
+?>
Couch Kids : "0") echo "checked=checked; "; ?>>Enabled / >Disabled
Couch Kids Port:
Couch Kids Name:
- Couch Kids Pic:
+ Couch Kids Pic: '."\n".
+ dropdown_cpk(image_filenames($folder), @$_POST['image2']).
+ ''."\n".'';
+
+function dropdown_cpk($options_array, $selected = null)
+{
+global $cpkidspicname;
+ $return = null;
+ foreach($options_array as $option)
+ {
+ $return .= ''."\n";
+ }
+ return $return;
+}
+
+?>
\ No newline at end of file
diff --git a/config/set3.php b/config/set3.php
index caddcf1..6a0948c 100644
--- a/config/set3.php
+++ b/config/set3.php
@@ -1,4 +1,24 @@
+$dir' for reading.");
+ $images = array();
+ while (false !== ($file = readdir($handle)))
+ {
+ if (eregi('\.(jpg|gif|png)$', $file))
+ {
+ $images[] = $file;
+ }
+ }
+ closedir($handle);
+ return $images;
+}
+?>