summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--all.php2
-rw-r--r--autocompleter.php2
-rw-r--r--include/config.php7
-rw-r--r--include/config.php.dist (renamed from config.inc.php.dist)0
-rw-r--r--include/main.php (renamed from main.inc.php)6
-rw-r--r--index.php2
-rw-r--r--pkgdb-ajax.php2
-rw-r--r--refresh.php2
-rw-r--r--rpm.php2
-rw-r--r--zoom.php2
11 files changed, 18 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index ad5b253..d96c607 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-config.inc.php
+include/config.php
*.gz
.sendate
sendbox
diff --git a/all.php b/all.php
index cfaa524..8e42e46 100644
--- a/all.php
+++ b/all.php
@@ -34,7 +34,7 @@
* @link http://github.com/remicollet/rpmphp/
* @since The begining of times.
*/
-require 'main.inc.php';
+require 'include/main.php';
$what=(isset($_GET["what"]) ? $_GET["what"] : false);
$ariane[] = array(
diff --git a/autocompleter.php b/autocompleter.php
index e693e9a..2acb21e 100644
--- a/autocompleter.php
+++ b/autocompleter.php
@@ -34,7 +34,7 @@
* @link http://github.com/remicollet/rpmphp/
* @since The begining of times.
*/
-require 'main.inc.php';
+require 'include/main.php';
$q = null;
$limit = null;
diff --git a/include/config.php b/include/config.php
new file mode 100644
index 0000000..a3ba75c
--- /dev/null
+++ b/include/config.php
@@ -0,0 +1,7 @@
+<?php
+define("MYHOST", "localhost");
+define("MYUSER", "root");
+define("MYPASS", "valentin");
+define("MYBASE", "rpmphp");
+?>
+
diff --git a/config.inc.php.dist b/include/config.php.dist
index 8895cdc..8895cdc 100644
--- a/config.inc.php.dist
+++ b/include/config.php.dist
diff --git a/main.inc.php b/include/main.php
index c9ec889..b97db02 100644
--- a/main.inc.php
+++ b/include/main.php
@@ -35,9 +35,9 @@
*/
define('RPMPHP_VERSION', '1.0.0-dev');
-require 'config.inc.php';
-require '/usr/share/php/Smarty/Smarty.class.php';
-require 'class/FedoraClient.php';
+require 'config.php';
+require 'Smarty/Smarty.class.php';
+require dirname(__FILE__).'/../class/FedoraClient.php';
$smarty = new Smarty();
diff --git a/index.php b/index.php
index f7a1546..c4ddb24 100644
--- a/index.php
+++ b/index.php
@@ -34,7 +34,7 @@
* @link http://github.com/remicollet/rpmphp/
* @since The begining of times.
*/
-require 'main.inc.php';
+require 'include/main.php';
$smarty->assign('ariane', $ariane);
$smarty->assign('page_title', 'Packages in Fedora repositories');
diff --git a/pkgdb-ajax.php b/pkgdb-ajax.php
index a07a3e4..f23b4cf 100644
--- a/pkgdb-ajax.php
+++ b/pkgdb-ajax.php
@@ -35,7 +35,7 @@
* @since The begining of times.
*/
header('Content-Type: application/json;charset=utf-8');
-require 'main.inc.php';
+require 'include/main.php';
$name = $_GET['name'];
if ( !isset($name) || !$name ) {
diff --git a/refresh.php b/refresh.php
index cc56e84..53aef84 100644
--- a/refresh.php
+++ b/refresh.php
@@ -43,7 +43,7 @@ if (isset($_SERVER["SERVER_NAME"])) {
die("This script is launched twice a day, be patient");
}
-require "config.inc.php";
+require "include/main.php";
require "class/CommonTable.php";
/**
diff --git a/rpm.php b/rpm.php
index 5073f9f..8b140a8 100644
--- a/rpm.php
+++ b/rpm.php
@@ -34,7 +34,7 @@
* @link http://github.com/remicollet/rpmphp/
* @since The begining of times.
*/
-require 'main.inc.php';
+require 'include/main.php';
$what=(isset($_GET["what"]) ? $_GET["what"] : "%fedora");
$type=(isset($_GET["type"]) ? $_GET["type"] : "pecl");
diff --git a/zoom.php b/zoom.php
index fdb340f..45a4830 100644
--- a/zoom.php
+++ b/zoom.php
@@ -34,7 +34,7 @@
* @link http://github.com/remicollet/rpmphp/
* @since The begining of times.
*/
-require 'main.inc.php';
+require 'include/main.php';
$fedcli = new FedoraPkgdb();