diff --git a/classes/ArrayUtils.php b/classes/ArrayUtils.php deleted file mode 100644 index 3e08580..0000000 --- a/classes/ArrayUtils.php +++ /dev/null @@ -1,21 +0,0 @@ - $value) { - if (is_object($value)) { - $object[$key] = self::object2array($value); - } - } - - return $object; - } - -} - -?> diff --git a/classes/Buffer.php b/classes/Buffer.php deleted file mode 100644 index 6d8bd60..0000000 --- a/classes/Buffer.php +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/classes/Config.php b/classes/Config.php deleted file mode 100755 index 8310287..0000000 --- a/classes/Config.php +++ /dev/null @@ -1,70 +0,0 @@ - diff --git a/classes/Controller.php b/classes/Controller.php deleted file mode 100644 index d5a4f14..0000000 --- a/classes/Controller.php +++ /dev/null @@ -1,111 +0,0 @@ -assign('admin', Config::get('sections', 'admin')); - } - - // Pass all of our controller values to Smarty - $smarty->assign('navigation', $navigation); - $smarty->assign('section', $section); - $smarty->assign('action', $action); - $smarty->assign('template', $template); - - if (isset($_SESSION)) { - $smarty->assign('session', $_SESSION); - } - - // Load it up! - header('Content-type: text/html; charset=UTF-8'); - // @todo path is hardcoded case i am teh suckage - $smarty->display(isset($_REQUEST['ajax']) ? '/var/www/josh/common/smarty/templates/ajax.tpl' : 'index.tpl'); - } - -} - -?> diff --git a/classes/DB.php b/classes/DB.php deleted file mode 100755 index 97154ef..0000000 --- a/classes/DB.php +++ /dev/null @@ -1,226 +0,0 @@ - $value) { - $columnValues[$key] = $value == null ? 'NULL' : "'" . mysql_real_escape_string(stripslashes($value), self::$connection) . "'"; - } - - self::execute(" - INSERT INTO {$table} ( - " . implode(array_keys($columnValues), ', ') . " - ) VALUES ( - " . implode($columnValues, ", ") . " - ); - "); - - return mysql_insert_id(self::$connection); - } - else { - Error::addError('No data was specified'); - } - } - else { - Error::addError('No database table was specified'); - } - - return false; - } - - public static function update($table, $columnValues, $conditions) { - if (!is_resource(self::$connection)) { - self::open(); - } - - if (trim($table) != '') { - // @todo Check that the table exists, and possibly check that the columns exist as well - - $fields = $where = null; - if (is_array($columnValues)) { - foreach ($columnValues as $key => $value) { - $fields .= ($fields ? ', ' : null) . $key . " = '" . mysql_real_escape_string(stripslashes($value), self::$connection) . "'"; - } - - if (is_array($conditions)) { - foreach ($conditions as $key => $value) { - $where = ($where == null) ? 'WHERE ' : ' AND '; - - if ($value == null) { - $where .= $key . ' IS NULL'; - } - else { - $where .= $key . " = '" . mysql_real_escape_string(stripslashes($value), self::$connection) . "'"; - } - } - - $sql = 'UPDATE ' . $table . ' SET ' . $fields . $where; - if (self::execute($sql)) { - return true; - } - } - else { - Error::addError('No conditions were specified'); - } - } - else { - Error::addError('No data was specified'); - } - } - else { - Error::addError('No database table was specified'); - } - - return false; - } - - public static function delete($table, $columnValues, $conditions) { - - } - -} - -?> diff --git a/classes/Error.php b/classes/Error.php deleted file mode 100644 index c4aa548..0000000 --- a/classes/Error.php +++ /dev/null @@ -1,67 +0,0 @@ -"; - } - } - - if (self::getWarning()) { - foreach (self::getWarning() as $error) { - echo "{$warning}
"; - } - } - - self::$errors = self::$warnings = null; - return true; - } - - return false; - } - -} - -?> diff --git a/classes/Form.php b/classes/Form.php deleted file mode 100644 index 6fcedfc..0000000 --- a/classes/Form.php +++ /dev/null @@ -1,28 +0,0 @@ - -
- Name:
- Email:
- Subject:
- Message:
- -
- - - diff --git a/classes/ImageUtils.php b/classes/ImageUtils.php deleted file mode 100644 index e779008..0000000 --- a/classes/ImageUtils.php +++ /dev/null @@ -1,51 +0,0 @@ - 75, 'medium' => 150, 'large' => 500); - foreach ($sizes as $name => $size) { - $temp = imagecreatetruecolor($size, $size); - imagecopyresampled($temp, $source, 0, 0, 0, 0, $size, $size, $width, $height); - imagejpeg($temp, "{$directory}{$name}.jpg", 85); - - imagedestroy($temp); - } - - imagedestroy($source); - */ - -} - -?> diff --git a/classes/Mail.php b/classes/Mail.php deleted file mode 100644 index e22ca27..0000000 --- a/classes/Mail.php +++ /dev/null @@ -1,43 +0,0 @@ -assign('type', $type); - $smarty->assign('message', $message); - } -} - -?> diff --git a/classes/Request.php b/classes/Request.php deleted file mode 100644 index 729c5f6..0000000 --- a/classes/Request.php +++ /dev/null @@ -1,28 +0,0 @@ - $value) { - self::$request[$key] = $value; - unset($_REQUEST[$key]); - } - } - - return true; - } - - public static function get($variable) { - if (isset(self::$request[$variable])) { - return self::$request[$variable]; - } - - return false; - } - -} - -?> diff --git a/config/meatronic.com.xml b/config/meatronic.com.xml index 4c7cbaf..adb3a41 100755 --- a/config/meatronic.com.xml +++ b/config/meatronic.com.xml @@ -11,4 +11,32 @@ m347r0n1c meatronic + + home + + home + artists + releases + events + links + about + + + + + news + artists + releases + links + download stats + logout + + + + VNN + + verynicenoise@gmail.com + joshsherman@gmail.com + + diff --git a/config/verynicenoise.com.xml b/config/verynicenoise.com.xml index 5aa4766..c6fe959 100755 --- a/config/verynicenoise.com.xml +++ b/config/verynicenoise.com.xml @@ -1,29 +1,28 @@ - - - - true - true - localhost verynicenoise v3ryn1c3n0153 verynicenoise - home - Home - About - Releases - Artists - Shop - Contact + home + + Home + About + Releases + Artists + Shop + Contact + - Artist Profile - User Account - Logout + true + + Artist Profile + User Account + Logout + VNN diff --git a/config/verynicenoise.xml b/config/verynicenoise.xml new file mode 100755 index 0000000..5aa4766 --- /dev/null +++ b/config/verynicenoise.xml @@ -0,0 +1,35 @@ + + + + + true + true + + + localhost + verynicenoise + v3ryn1c3n0153 + verynicenoise + + home + + Home + About + Releases + Artists + Shop + Contact + + + Artist Profile + User Account + Logout + + + VNN + + verynicenoise@gmail.com + joshsherman@gmail.com + + + diff --git a/jLib.php b/jLib.php index 3d2b962..53b258f 100755 --- a/jLib.php +++ b/jLib.php @@ -4,7 +4,10 @@ date_default_timezone_set('America/New_York'); define('JLIB_PATH', '/var/www/josh/common/'); function __autoload($class) { - require_once JLIB_PATH . 'classes/' . $class . '.php'; + $file = JLIB_PATH . 'classes/' . $class . '.php'; + if (file_exists($file)) { + require_once $file; + } } // Obliterates any passed in PHPSESSID (thanks Google) @@ -88,12 +91,12 @@ if (Config::getSmarty()) { // Use the FCKeditor instead of textareas if (Config::getFCKEditor()) { - require_once '/var/www/josh/common/static/fckeditor/fckeditor.php'; + require_once JLIB_PATH . 'common/static/fckeditor/fckeditor.php'; } -// Use the FCKeditor instead of textareas +// Load up MagpieRSS is so desired if (Config::getMagpieRSS()) { - require_once '/var/www/josh/common/contrib/magpierss/rss_fetch.inc'; + require_once JLIB_PATH . '/var/www/josh/common/contrib/magpierss/rss_fetch.inc'; } //Request::load(); diff --git a/smarty/functions/function.contact_form.php b/smarty/functions/function.contact_form.php index 70f144f..228743b 100644 --- a/smarty/functions/function.contact_form.php +++ b/smarty/functions/function.contact_form.php @@ -2,14 +2,17 @@ function smarty_function_contact_form($params, &$smarty) { $form = ' -
+ Email:


Subject:


Message:


- +
+ + +
';