[pisa-src] r1244 - in trunk/pairing/pisaum: admin/index.php include/config.php index.php

  • From: Jan Marten <jan.marten@xxxxxxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 21 Oct 2009 12:05:01 +0200

Author: marten
Date: Wed Oct 21 12:05:01 2009
New Revision: 1244

Log:
Moved path definitions in management website to own config file

Added:
   trunk/pairing/pisaum/include/config.php
Modified:
   trunk/pairing/pisaum/admin/index.php
   trunk/pairing/pisaum/index.php

Modified: trunk/pairing/pisaum/admin/index.php
==============================================================================
--- trunk/pairing/pisaum/admin/index.php        Wed Oct 21 12:02:19 2009        
(r1243)
+++ trunk/pairing/pisaum/admin/index.php        Wed Oct 21 12:05:01 2009        
(r1244)
@@ -10,12 +10,7 @@
 <?php
 include "../include/management.php";
 include "../include/util.php";
-
-define("AUTHORIZED_CFG","/etc/pisa/authorized_hosts.conf");
-define("USERS_CFG", "/etc/pisa/users.conf");
-define("MANAGEMENT_PATH","/var/www/bin/management");
-define("RELAY_CFG","/var/www/bin/relay_config.cfg");
-define("PISA_CONF","/var/www/bin/pisaconf");
+include "../include/config.php";
 
 $m = new 
Management(AUTHORIZED_CFG,USERS_CFG,MANAGEMENT_PATH,RELAY_CFG,PISA_CONF);
 

Added: trunk/pairing/pisaum/include/config.php
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ trunk/pairing/pisaum/include/config.php     Wed Oct 21 12:05:01 2009        
(r1244)
@@ -0,0 +1,7 @@
+<?php
+define("AUTHORIZED_CFG","/etc/pisa/authorized_hosts.conf");
+define("USERS_CFG", "/etc/pisa/users.conf");
+define("MANAGEMENT_PATH","/var/www/bin/management");
+define("RELAY_CFG","/var/www/bin/relay_config.cfg");
+define("PISA_CONF","/var/www/bin/pisaconf");
+?>

Modified: trunk/pairing/pisaum/index.php
==============================================================================
--- trunk/pairing/pisaum/index.php      Wed Oct 21 12:02:19 2009        (r1243)
+++ trunk/pairing/pisaum/index.php      Wed Oct 21 12:05:01 2009        (r1244)
@@ -9,12 +9,7 @@
 <?
 include "include/management.php";
 include "include/util.php";
-
-define("AUTHORIZED_CFG","/etc/pisa/authorized_hosts.conf");
-define("USERS_CFG", "/etc/pisa/users.conf");
-define("MANAGEMENT_PATH","/var/www/bin/management");
-define("RELAY_CFG","/var/www/bin/relay_config.cfg");
-define("PISA_CONF","/var/www/bin/pisaconf");
+include "include/config.php";
 
 if(isset($_POST["action"]) && $_POST["action"]=="register")
 {

Other related posts:

  • » [pisa-src] r1244 - in trunk/pairing/pisaum: admin/index.php include/config.php index.php - Jan Marten