Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: master
...
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 5 additions and 8 deletions.
  1. +2 −2 README.md
  2. +0 −4 classes/Config.class.php
  3. +3 −2 link.php
View
4 README.md
@@ -1,6 +1,6 @@
## Installation
-1. Download the [source files](https://github.com/h3xstream/bandlogos)
-2. Download the [latest logos](http://bandlogos.descentrecords.com/logos.htm)
+1. Download the [source files](https://github.com/dinduks/bandlogos/downloads)
+2. Download the [latest logos](http://bandlogos.dinduks.com/bandlogos.zip)
3. You need a installation of Apache/PHP5/MySQL/gd2
4. Change the settings in */classes/bd/DBConfig.class.php* and */classes/Config.class.php*
5. Run the SQL script */install.sql*
View
4 classes/Config.class.php
@@ -27,12 +27,8 @@ class Config {
//Delay for browser cache (in sec.)
const CACHE_DELAY = 432000; //(3600 * 24 * 5)
-
- //Banner Location (use by the link.php page)
- const LINK_BANNER = "http://localhost/bandlogos/banner.php";
}
//Config::$dbInstance = MySQLIDB::getInstance();
Config::$dbInstance = MySQLNative::getInstance();
-?>
View
5 link.php
@@ -15,7 +15,8 @@
$color=(isset($_GET['color'])? htmlentities($_GET['color']):'white');
$layout=(isset($_GET['layout'])? htmlentities($_GET['layout']):'OneCol');
-$image = Config::LINK_BANNER
+$folder = str_replace('link.php', '', $_SERVER['PHP_SELF']);
+$image = 'http://' . $_SERVER['HTTP_HOST'] . $folder . 'banner.php'
."?user=".$user."&nb=".$nb."&type=".$type.
"&color=".$color."&layout=".$layout;
?>
@@ -33,4 +34,4 @@
</body>
-</html>
+</html>

No commit comments for this range

Something went wrong with that request. Please try again.