diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | all.php | 2 | ||||
-rw-r--r-- | autocompleter.php | 2 | ||||
-rw-r--r-- | include/config.php | 7 | ||||
-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.php | 2 | ||||
-rw-r--r-- | pkgdb-ajax.php | 2 | ||||
-rw-r--r-- | refresh.php | 2 | ||||
-rw-r--r-- | rpm.php | 2 | ||||
-rw-r--r-- | zoom.php | 2 |
11 files changed, 18 insertions, 11 deletions
@@ -1,4 +1,4 @@ -config.inc.php +include/config.php *.gz .sendate sendbox @@ -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(); @@ -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"; /** @@ -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"); @@ -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(); |