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; +} +?>
@@ -6,18 +26,73 @@ FTP Enabled: "0") echo "checked=checked; "; ?> />
FTP Port:
FTP Name:
- FTP Pic:
-
+ FTP Pic: '."\n". + dropdown_ftp(image_filenames($folder), @$_POST['image2']). + ''."\n".'

'; + +function dropdown_ftp($options_array, $selected = null) +{ +global $ftppicname; + $return = null; + foreach($options_array as $option) + { + $return .= ''."\n"; + } + return $return; +} + +?> Torrent Enabled: "0") echo "checked=checked; "; ?> />
Torrent Type : >uTorrent / "1") echo "checked=checked; "; ?>>Transmission
Torrent Port:
Torrent Name:
- Torrent Pic:
-
+ Torrent Pic: '."\n". + dropdown_torrent(image_filenames($folder), @$_POST['image2']). + ''."\n".'

'; + +function dropdown_torrent($options_array, $selected = null) +{ +global $torrentpicname; + $return = null; + foreach($options_array as $option) + { + $return .= ''."\n"; + } + return $return; +} + +?> Madsonic Enabled: "0") echo "checked=checked; "; ?> />
Madsonic Port:
Madsonic Name:
- Madsonic Pic:
+ Madsonic Pic: '."\n". + dropdown_mad(image_filenames($folder), @$_POST['image2']). + ''."\n".'

'; + +function dropdown_mad($options_array, $selected = null) +{ +global $madsonicpicname; + $return = null; + foreach($options_array as $option) + { + $return .= ''."\n"; + } + return $return; +} + +?>
@@ -25,16 +100,94 @@ Plex Enabled: "0") echo "checked=checked; "; ?> />
Plex Port:
Plex Name:
- Plex Pic:
-
- Squeezebox Enabled: "0") echo "checked=checked; "; ?> />
+ Plex Pic: '."\n". + dropdown_plex(image_filenames($folder), @$_POST['image2']). + ''."\n".'

'; + +function dropdown_plex($options_array, $selected = null) +{ +global $plexpicname; + $return = null; + foreach($options_array as $option) + { + $return .= ''."\n"; + } + return $return; +} + +?> + Squeezebox Enabled: "0") echo "checked=checked; "; ?> />
Squeezebox Port:
Squeezebox Name:
- Squeezebox Pic:
-
- Jdownloader Enabled: "0") echo "checked=checked; "; ?> />
+ Squeezebox Pic: '."\n". + dropdown_squeeze(image_filenames($folder), @$_POST['image2']). + ''."\n".'

'; + +function dropdown_squeeze($options_array, $selected = null) +{ +global $squeezepicname; + $return = null; + foreach($options_array as $option) + { + $return .= ''."\n"; + } + return $return; +} + +?> + Jdownloader Enabled: "0") echo "checked=checked; "; ?> />
Jdownloader Name:
- Jdownloader Pic:
+ Jdownloader Pic: '."\n". + dropdown_jd(image_filenames($folder), @$_POST['image2']). + ''."\n".'

'; + +function dropdown_jd($options_array, $selected = null) +{ +global $jdownloaderpicname; + $return = null; + foreach($options_array as $option) + { + $return .= ''."\n"; + } + return $return; +} + +?> +HeadPhones Enabled: "0") echo "checked=checked; "; ?> />
+HeadPhones Port:
+ HeadPhones Name:
+ HeadPhones Pic: '."\n". + dropdown_head(image_filenames($folder), @$_POST['image2']). + ''."\n".'

'; + +function dropdown_head($options_array, $selected = null) +{ +global $headphonespicname; + $return = null; + foreach($options_array as $option) + { + $return .= ''."\n"; + } + return $return; +} + +?>
diff --git a/config/upload.php b/config/upload.php index d9aa551..6598bbd 100644 --- a/config/upload.php +++ b/config/upload.php @@ -1,5 +1,5 @@ */ $tmp =fopen($fl, "w"); fwrite($tmp, $content); fclose($tmp); diff --git a/links/sab.php b/links/sab.php index 0bcdefe..8f69c3b 100644 --- a/links/sab.php +++ b/links/sab.php @@ -4,7 +4,7 @@ if (empty($sabpicname)) { echo "
  • "; } else { - echo "
  • "; + echo "
  • "; } ?>