[wpkg_web] / config-dist.php Repository:
ViewVC logotype

View of /config-dist.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 46 - (download) (annotate)
Thu Feb 1 16:17:44 2007 UTC (11 years, 7 months ago) by linuxkidd
File size: 1190 byte(s)
Added HTTP Auth user checking for WPKG.js XML pulls.  Please get the latest version of wpkg to take advantage of direct Web pulls!
Changed XML to export "execute='always'" as default for packages with no checks, and no 'execute='once'" set.
Changed (X) Delete icon in packages_list.php to only appear when the package is marked obsolete, or is not in any profiles.
Fixed bug which resulted in MAC addresses which were all numeric being truncated.

<?php
$wpkg_user
="wpkg";     ## Configure this to be the username that will be used by wpkg.js to retrieve XML
                       ## This is ONLY needed if using some sort of authentication to access the
                       ## *_xml_out.php files.

$language='en-US';     ## Change to be your preferred language.
                       ## Language pack must exist in includes

$icons='default';      ## Icon pack must exist in icons

$dbname="unattended";  ## Change to match your Database Name
$dbhost="localhost";   ## Change to match your Database Host
$dbuser="unattended";  ## Change to match your Database Username
$dbpass="secret";      ## Change to match your Database Password

## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
##
##  Stop editing here.  Below, are includes for Languages and Icons
##
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##

if(!file_exists("include/lang_{$language}.php")) {
  include 
"include/lang_en-US.php";
} else {
  include 
"include/lang_{$language}.php";
}

if(!
file_exists("grafx/{$icons}/icons.php")) {
  include 
"grafx/default/icons.php";
} else {
  include 
"grafx/{$icons}/icons.php";
}
?>

ViewVC Help
Powered by ViewVC 1.0.3