From 257eeb932340f510db9b92c3760ae79bed924989 Mon Sep 17 00:00:00 2001 From: paulr Date: Wed, 10 Aug 2011 17:10:11 +1000 Subject: [PATCH] moved admin to repo admin... whichi s really what it is --- plugins/admin.php | 467 ------------------------------------------------ plugins/repo_admin.php | 467 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 467 insertions(+), 467 deletions(-) delete mode 100644 plugins/admin.php create mode 100644 plugins/repo_admin.php diff --git a/plugins/admin.php b/plugins/admin.php deleted file mode 100644 index e3dc5ce..0000000 --- a/plugins/admin.php +++ /dev/null @@ -1,467 +0,0 @@ -config = $config; - error_log("constructor for GLCASRepoAdmin"); - - } - - function go($url) - { - error_log("repo:go called"); - - if(isset($_REQUEST["action"])) { - switch($_REQUEST["action"]) { - case "updaterepo": - error_log("in updaterepo"); - GLCASpageBuilder($this,"doUpdateRepo"); - return; - case "reponext": - error_log("in reponext"); - GLCASpageBuilder($this,"doRepoNextForm"); - return; - break; - case "addrepoapt": - GLCASpageBuilder($this,"doAddRepoApt"); - return; - case "addrepoyum": - GLCASpageBuilder($this,"doAddRepoYum"); - return; - case "deleterepo": - error_log("call delete repo"); - GLCASpageBuilder($this, "doRemoveRepo"); - return; - case "setstorage": - error_log("call setstorage"); - GLCASpageBuilder($this, "setStorage"); - return; - case "freezerepo": - error_log("call freezerepo"); - GLCASpageBuilder($this, "freezeRepo"); - return; - case "scanrepo": - break; - } - } - GLCASpageBuilder($this, "body"); - } - - function cron() - { - echo "REPOADMIN CRON: nothing to see here
"; - // TODO: touch cronstamp file here - - // make a backup of the config.. but.. errr. how to tell if theres an old backup? - // backups will occur... weekly and be called $configpath.DDMMYYYY - $configpath = glcas_getWebConfigPath(); - $basepath = dirname($configpath); - echo "REPOADMIN CRON: backing up config, $configpath, $basepath
"; - $nowtime = time(); - $oneday = 3600 * 24; // 1 hour in seconds, by 24 hours - for($i = 0; $i < 7; $i ++) { - $cdatestr = strftime("%d-%h-%Y", $nowtime - ($oneday*$i)); - $backupfile = "$configpath.$cdatestr"; - error_log("checking for backup of config as $backupfile"); - if(file_exists($backupfile)) { - error_log("backupconfig exists as $backupfile, exit"); - echo "ADMIN CRON: backup of config is $backupfile, created $i days ago, not creating new one
"; - return; - } - } - $nowdatestr = strftime("%d-%h-%Y"); - $backupfile = "$configpath.$nowdatestr"; - copy($configpath, $backupfile); - echo "REPOADMIN CRON: createing backup of config as $backupfile
"; - } - - function body($url) - { - // for the main admin body, we hae the following components - - // 1. list of currently available repos and stuff - - // 2. way to add a repo direct - - // 3. way to scan for a repo given a url - - // so first, lets do the main body - $this->mainBody($url); - } - - function freezeRepo($url) - { - $repo = $_REQUEST["repo"]; - - - $myRep = new GLCASRepo($this->config); - - - error_log("called freeze repo on $repo"); - $myRep->freezeRepo($repo); - - global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; - header("Location: $BASE_URL/repoadmin/"); - - } - - function doRemoveRepo($url) - { - $repo = $_REQUEST["repo"]; - $myRep = new GLCASRepo($this->config); - - - error_log("called delete repo on $repo"); - $myRep->deleteRepo($repo); - - global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; - header("Location: $BASE_URL/repoadmin/"); - } - - - function setStorage($url) - { - - } - - function doRepoNextForm($url) - { - $myRep = new GLCASRepo($this->config); - - $kos = getKnownOSList(); - - $wasyum = false; - $wasapt = false; - if($_REQUEST["repotype"] == "yumbase") { - $glt = $myRep->getRepoDetailsYum($_REQUEST["repourl"]); - $wasyum = true; - } else if($_REQUEST["repotype"] == "yummirrorlist") { - $glt = $myRep->getRepoDetailsYum($_REQUEST["repourl"], true); - $wasyum = true; - } else if($_REQUEST["repotype"] == "apt") { - $glt = $myRep->getRepoDetailsApt($_REQUEST["repourl"]); - $wasapt = true; - } - - if($wasapt) { - error_log("in wasapt"); - $repourl = $_REQUEST["repourl"]; - - if($glt === false) { - echo "Could not find any apt repository at $repourl
"; - return; - } - - $extratext = ""; - $provides = ""; - if($glt["nrepos"] > 0) { - - foreach($glt["knownrepo"] as $key => $val) { - $reponame = $kos["apt"][$val]; - //echo "Fount a repo, $val which is $reponame
"; - $provides .= "$reponame\n"; - } - $extratext = " for ".$glt["distros"]; - } else { - //echo "Looks like an apt repo, but I cant find any known distro's
"; - } - //$existing_repos["distros"] = "Ubuntu, Debian"; - //$existing_repos["versions"] = "8.04LTS, 9.10, 10.04LTS, 10.10, 11.04, 11.10"; - //$existing_repos["arch"] = "x86_64, i386"; - - - $distros = $glt["distros"]; - $version = $glt["versions"]; - $archs = $glt["arch"]; - - //echo "
";
-			//print_r($glt);
-			//echo "
"; - - echo "The joy of apt is that there could be a million distro's under the root of an apt mirror"; - echo "if it doesn't list here, but you know its there, its still usable for glcas"; - echo "
"; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - - // TODO: deal with block bit - echo ""; - //echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo "
Description
Provides (tick those you wish to BLOCK - not implemented)"; - foreach($glt["knownrepo"] as $key => $val) { - $reponame = $kos["apt"][$val["name"]]; - $a = ""; - $b = ""; - if($glt["knownrepo"][$key]["i386"]) $a = "i386"; - if($glt["knownrepo"][$key]["amd64"]) $b = "x86_64"; - if($a != "" && $b != "") $archs = "$a/$b"; - else $archs = "$a$b"; - echo " $reponame ($archs)
"; - } - - echo "
Provides
Short URL
URL Prefix (blank for none)
Expire time for Meta Data days
"; - echo "
"; - return true; - } - - if($wasyum) { - $os = $glt["OS"]; - $version = $glt["version"]; - $arch = $glt["arch"]; - $other = $glt["other"]; - $repourl = $_REQUEST["repourl"]; - echo "
"; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo "
Description
OS
Version
Architecture
Other (OS, Updates, etc)
Short URL
URL Prefix (blank for none)
Do Initial Update (can take a while, but done in background)
Expire time for Meta Data days
"; - echo "
"; - } - } - - function doAddRepoApt($url) - { - $repo = new GLCASRepo($this->config); - - $desc = $_REQUEST["desc"]; - $OS = $_REQUEST["distro"]; - $version = $_REQUEST["provides"]; - $arch = $_REQUEST["arch"]; - $shorturl = $_REQUEST["shorturl"]; - $prefix = $_REQUEST["prefix"]; - $repurl = $_REQUEST["repourl"]; - $expiretime = $REQUEST["expiretime"]; - $init = false; - if(isset($_REQUEST["initial"])) $init = true; - - $blocklist = null; - $bn = 0; - foreach($_REQUEST as $key => $val) { - if(preg_match("/^blocked-*/", $key)) { - $blocked = preg_replace("/^blocked-/", "", $key); - //echo "
got block for $blocked
"; - $blocklist[$bn] = "dists\/$blocked.*"; - $bn++; - } - } - - //echo "
";
-		//print_r($_REQUEST);
-		//echo "
"; - - //exit(0); - - $repo->addRepo($desc, $OS, $version, $arch, "-", $shorturl, $prefix, $repurl, "APT", $init, $expiretime, $blocklist); - - // next we need to deal with that "blocked" bit - - global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; - header("Location: $BASE_URL/repoadmin/"); - } - - function doAddRepoYum($url) - { - $repo = new GLCASRepo($this->config); - - $desc = $_REQUEST["desc"]; - $OS = $_REQUEST["OS"]; - $version = $_REQUEST["version"]; - $arch = $_REQUEST["arch"]; - $other = $_REQUEST["other"]; - $shorturl = $_REQUEST["shorturl"]; - $prefix = $_REQUEST["prefix"]; - $repurl = $_REQUEST["repourl"]; - $expiretime = $REQUEST["expiretime"]; - $init = false; - if(isset($_REQUEST["initial"])) $init = true; - - - - $repo->addRepo($desc, $OS, $version, $arch, $other, $shorturl, $prefix, $repurl, "YUM", $init, $expiretime); - - global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; - header("Location: $BASE_URL/repoadmin/"); - } - - function doUpdateRepo($url) - { - $rkey = $_REQUEST["repo"]; - - error_log("would update for repo"); - - $repo = new GLCASRepo($this->config); - - $repo->updateRepo($rkey); - global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; - header("Location: $BASE_URL/repoadmin/"); - } - - function mainBody($url) - { - global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; - - // first, list available repos - echo "

Repositories

"; - echo "
"; - echo ""; - - // now iterate thru the repos and print them - $repo = new GLCASRepo($this->config); - $repos = $repo->getRepos(); - - foreach($repos as $rkey => $rval) { - $desc = $rval["desc"]; - $os = $rval["os"]; - $version = $rval["version"]; - $arch = $rval["arch"]; - $other = $rval["other"]; - $repotype = $rval["repotype"]; - $prefix = $rval["prefix"]; - $shorturl = $rval["shorturl"]; - if(isset($rval["frozen"])) $frozen = $rval["frozen"]; - else $frozen = false; - if($prefix == "") $prefix = "-"; - if($shorturl == "") $shorturl = "-"; - if($frozen) { - $bgcol = "bgcolor=\"#bbbbff\""; - $frotext = "Unfreeze"; - } else { - $frotext = "Freeze"; - $bgcol = ""; - } - echo ""; - - // get url - $browseurl = "$BASE_URL/repo/$rkey"; - if($shorturl!="-") { - $brurl = $shorturl; - if($prefix != "-") $brurl = "$prefix/$shorturl"; - $browseurl = "$BASE_URL/$brurl/"; - } - - echo ""; - echo ""; - } - - echo "
NameTypeOSVersionArchitectureOtherPrefixShort URLBrowseControl
$desc$repotype$os$version$arch$other$prefix$shorturlBrowse"; - - // Edit - echo "Edit "; - // update - if(!$frozen) echo "Update "; - // freeze - echo "$frotext "; - // deactivate - echo "Disable "; - // clean - echo "Clean "; - // Remove - echo "Delete"; - - echo "


"; - //echo "
";
-		//if($repos !== false) print_r($repos);
-		//echo "
"; - - // wrap all this in a table - echo "
"; - // now, add a repo - echo "

Add A Repo

"; - echo "
"; - echo "Type
"; - echo "URL
"; - echo "
"; - echo "
"; - - echo "
"; - - // now scan for a repo - echo "

Scan For Repos - not implemented

"; - echo "
"; - echo "Hint
"; - echo "URL
"; - echo "
"; - echo "
"; - - echo "
"; - - // now for mirror lists - echo "

Via Mirrolist - not implemented

"; - echo "
"; - echo "Distro
"; - echo "Architecture
"; - echo "Version
"; - echo "Get updates too
"; - echo "
"; - echo "
"; - - - echo "
"; - - // repo storage location - echo "

Storage


"; - echo "
"; - $storloc = $this->config->getConfig("storagelocation"); - echo ""; - echo ""; - echo "
"; - - echo "
"; - echo "

Proxy Config


"; - echo "
"; - $proxyaddress = $this->config->getConfig("proxyaddress"); - $proxylogin = $this->config->getConfig("proxylogin"); - $proxypass = $this->config->getConfig("proxypass"); - echo "Proxy Address
"; - echo "Proxy Login
"; - echo "Proxy Password
"; - echo ""; - echo "
"; - - } - - private $config; -} - -?> \ No newline at end of file diff --git a/plugins/repo_admin.php b/plugins/repo_admin.php new file mode 100644 index 0000000..e3dc5ce --- /dev/null +++ b/plugins/repo_admin.php @@ -0,0 +1,467 @@ +config = $config; + error_log("constructor for GLCASRepoAdmin"); + + } + + function go($url) + { + error_log("repo:go called"); + + if(isset($_REQUEST["action"])) { + switch($_REQUEST["action"]) { + case "updaterepo": + error_log("in updaterepo"); + GLCASpageBuilder($this,"doUpdateRepo"); + return; + case "reponext": + error_log("in reponext"); + GLCASpageBuilder($this,"doRepoNextForm"); + return; + break; + case "addrepoapt": + GLCASpageBuilder($this,"doAddRepoApt"); + return; + case "addrepoyum": + GLCASpageBuilder($this,"doAddRepoYum"); + return; + case "deleterepo": + error_log("call delete repo"); + GLCASpageBuilder($this, "doRemoveRepo"); + return; + case "setstorage": + error_log("call setstorage"); + GLCASpageBuilder($this, "setStorage"); + return; + case "freezerepo": + error_log("call freezerepo"); + GLCASpageBuilder($this, "freezeRepo"); + return; + case "scanrepo": + break; + } + } + GLCASpageBuilder($this, "body"); + } + + function cron() + { + echo "REPOADMIN CRON: nothing to see here
"; + // TODO: touch cronstamp file here + + // make a backup of the config.. but.. errr. how to tell if theres an old backup? + // backups will occur... weekly and be called $configpath.DDMMYYYY + $configpath = glcas_getWebConfigPath(); + $basepath = dirname($configpath); + echo "REPOADMIN CRON: backing up config, $configpath, $basepath
"; + $nowtime = time(); + $oneday = 3600 * 24; // 1 hour in seconds, by 24 hours + for($i = 0; $i < 7; $i ++) { + $cdatestr = strftime("%d-%h-%Y", $nowtime - ($oneday*$i)); + $backupfile = "$configpath.$cdatestr"; + error_log("checking for backup of config as $backupfile"); + if(file_exists($backupfile)) { + error_log("backupconfig exists as $backupfile, exit"); + echo "ADMIN CRON: backup of config is $backupfile, created $i days ago, not creating new one
"; + return; + } + } + $nowdatestr = strftime("%d-%h-%Y"); + $backupfile = "$configpath.$nowdatestr"; + copy($configpath, $backupfile); + echo "REPOADMIN CRON: createing backup of config as $backupfile
"; + } + + function body($url) + { + // for the main admin body, we hae the following components + + // 1. list of currently available repos and stuff + + // 2. way to add a repo direct + + // 3. way to scan for a repo given a url + + // so first, lets do the main body + $this->mainBody($url); + } + + function freezeRepo($url) + { + $repo = $_REQUEST["repo"]; + + + $myRep = new GLCASRepo($this->config); + + + error_log("called freeze repo on $repo"); + $myRep->freezeRepo($repo); + + global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; + header("Location: $BASE_URL/repoadmin/"); + + } + + function doRemoveRepo($url) + { + $repo = $_REQUEST["repo"]; + $myRep = new GLCASRepo($this->config); + + + error_log("called delete repo on $repo"); + $myRep->deleteRepo($repo); + + global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; + header("Location: $BASE_URL/repoadmin/"); + } + + + function setStorage($url) + { + + } + + function doRepoNextForm($url) + { + $myRep = new GLCASRepo($this->config); + + $kos = getKnownOSList(); + + $wasyum = false; + $wasapt = false; + if($_REQUEST["repotype"] == "yumbase") { + $glt = $myRep->getRepoDetailsYum($_REQUEST["repourl"]); + $wasyum = true; + } else if($_REQUEST["repotype"] == "yummirrorlist") { + $glt = $myRep->getRepoDetailsYum($_REQUEST["repourl"], true); + $wasyum = true; + } else if($_REQUEST["repotype"] == "apt") { + $glt = $myRep->getRepoDetailsApt($_REQUEST["repourl"]); + $wasapt = true; + } + + if($wasapt) { + error_log("in wasapt"); + $repourl = $_REQUEST["repourl"]; + + if($glt === false) { + echo "Could not find any apt repository at $repourl
"; + return; + } + + $extratext = ""; + $provides = ""; + if($glt["nrepos"] > 0) { + + foreach($glt["knownrepo"] as $key => $val) { + $reponame = $kos["apt"][$val]; + //echo "Fount a repo, $val which is $reponame
"; + $provides .= "$reponame\n"; + } + $extratext = " for ".$glt["distros"]; + } else { + //echo "Looks like an apt repo, but I cant find any known distro's
"; + } + //$existing_repos["distros"] = "Ubuntu, Debian"; + //$existing_repos["versions"] = "8.04LTS, 9.10, 10.04LTS, 10.10, 11.04, 11.10"; + //$existing_repos["arch"] = "x86_64, i386"; + + + $distros = $glt["distros"]; + $version = $glt["versions"]; + $archs = $glt["arch"]; + + //echo "
";
+			//print_r($glt);
+			//echo "
"; + + echo "The joy of apt is that there could be a million distro's under the root of an apt mirror"; + echo "if it doesn't list here, but you know its there, its still usable for glcas"; + echo "
"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + // TODO: deal with block bit + echo ""; + //echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo "
Description
Provides (tick those you wish to BLOCK - not implemented)"; + foreach($glt["knownrepo"] as $key => $val) { + $reponame = $kos["apt"][$val["name"]]; + $a = ""; + $b = ""; + if($glt["knownrepo"][$key]["i386"]) $a = "i386"; + if($glt["knownrepo"][$key]["amd64"]) $b = "x86_64"; + if($a != "" && $b != "") $archs = "$a/$b"; + else $archs = "$a$b"; + echo " $reponame ($archs)
"; + } + + echo "
Provides
Short URL
URL Prefix (blank for none)
Expire time for Meta Data days
"; + echo "
"; + return true; + } + + if($wasyum) { + $os = $glt["OS"]; + $version = $glt["version"]; + $arch = $glt["arch"]; + $other = $glt["other"]; + $repourl = $_REQUEST["repourl"]; + echo "
"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo "
Description
OS
Version
Architecture
Other (OS, Updates, etc)
Short URL
URL Prefix (blank for none)
Do Initial Update (can take a while, but done in background)
Expire time for Meta Data days
"; + echo "
"; + } + } + + function doAddRepoApt($url) + { + $repo = new GLCASRepo($this->config); + + $desc = $_REQUEST["desc"]; + $OS = $_REQUEST["distro"]; + $version = $_REQUEST["provides"]; + $arch = $_REQUEST["arch"]; + $shorturl = $_REQUEST["shorturl"]; + $prefix = $_REQUEST["prefix"]; + $repurl = $_REQUEST["repourl"]; + $expiretime = $REQUEST["expiretime"]; + $init = false; + if(isset($_REQUEST["initial"])) $init = true; + + $blocklist = null; + $bn = 0; + foreach($_REQUEST as $key => $val) { + if(preg_match("/^blocked-*/", $key)) { + $blocked = preg_replace("/^blocked-/", "", $key); + //echo "
got block for $blocked
"; + $blocklist[$bn] = "dists\/$blocked.*"; + $bn++; + } + } + + //echo "
";
+		//print_r($_REQUEST);
+		//echo "
"; + + //exit(0); + + $repo->addRepo($desc, $OS, $version, $arch, "-", $shorturl, $prefix, $repurl, "APT", $init, $expiretime, $blocklist); + + // next we need to deal with that "blocked" bit + + global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; + header("Location: $BASE_URL/repoadmin/"); + } + + function doAddRepoYum($url) + { + $repo = new GLCASRepo($this->config); + + $desc = $_REQUEST["desc"]; + $OS = $_REQUEST["OS"]; + $version = $_REQUEST["version"]; + $arch = $_REQUEST["arch"]; + $other = $_REQUEST["other"]; + $shorturl = $_REQUEST["shorturl"]; + $prefix = $_REQUEST["prefix"]; + $repurl = $_REQUEST["repourl"]; + $expiretime = $REQUEST["expiretime"]; + $init = false; + if(isset($_REQUEST["initial"])) $init = true; + + + + $repo->addRepo($desc, $OS, $version, $arch, $other, $shorturl, $prefix, $repurl, "YUM", $init, $expiretime); + + global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; + header("Location: $BASE_URL/repoadmin/"); + } + + function doUpdateRepo($url) + { + $rkey = $_REQUEST["repo"]; + + error_log("would update for repo"); + + $repo = new GLCASRepo($this->config); + + $repo->updateRepo($rkey); + global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; + header("Location: $BASE_URL/repoadmin/"); + } + + function mainBody($url) + { + global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; + + // first, list available repos + echo "

Repositories

"; + echo "
"; + echo ""; + + // now iterate thru the repos and print them + $repo = new GLCASRepo($this->config); + $repos = $repo->getRepos(); + + foreach($repos as $rkey => $rval) { + $desc = $rval["desc"]; + $os = $rval["os"]; + $version = $rval["version"]; + $arch = $rval["arch"]; + $other = $rval["other"]; + $repotype = $rval["repotype"]; + $prefix = $rval["prefix"]; + $shorturl = $rval["shorturl"]; + if(isset($rval["frozen"])) $frozen = $rval["frozen"]; + else $frozen = false; + if($prefix == "") $prefix = "-"; + if($shorturl == "") $shorturl = "-"; + if($frozen) { + $bgcol = "bgcolor=\"#bbbbff\""; + $frotext = "Unfreeze"; + } else { + $frotext = "Freeze"; + $bgcol = ""; + } + echo ""; + + // get url + $browseurl = "$BASE_URL/repo/$rkey"; + if($shorturl!="-") { + $brurl = $shorturl; + if($prefix != "-") $brurl = "$prefix/$shorturl"; + $browseurl = "$BASE_URL/$brurl/"; + } + + echo ""; + echo ""; + } + + echo "
NameTypeOSVersionArchitectureOtherPrefixShort URLBrowseControl
$desc$repotype$os$version$arch$other$prefix$shorturlBrowse"; + + // Edit + echo "Edit "; + // update + if(!$frozen) echo "Update "; + // freeze + echo "$frotext "; + // deactivate + echo "Disable "; + // clean + echo "Clean "; + // Remove + echo "Delete"; + + echo "


"; + //echo "
";
+		//if($repos !== false) print_r($repos);
+		//echo "
"; + + // wrap all this in a table + echo "
"; + // now, add a repo + echo "

Add A Repo

"; + echo "
"; + echo "Type
"; + echo "URL
"; + echo "
"; + echo "
"; + + echo "
"; + + // now scan for a repo + echo "

Scan For Repos - not implemented

"; + echo "
"; + echo "Hint
"; + echo "URL
"; + echo "
"; + echo "
"; + + echo "
"; + + // now for mirror lists + echo "

Via Mirrolist - not implemented

"; + echo "
"; + echo "Distro
"; + echo "Architecture
"; + echo "Version
"; + echo "Get updates too
"; + echo "
"; + echo "
"; + + + echo "
"; + + // repo storage location + echo "

Storage


"; + echo "
"; + $storloc = $this->config->getConfig("storagelocation"); + echo ""; + echo ""; + echo "
"; + + echo "
"; + echo "

Proxy Config


"; + echo "
"; + $proxyaddress = $this->config->getConfig("proxyaddress"); + $proxylogin = $this->config->getConfig("proxylogin"); + $proxypass = $this->config->getConfig("proxypass"); + echo "Proxy Address
"; + echo "Proxy Login
"; + echo "Proxy Password
"; + echo ""; + echo "
"; + + } + + private $config; +} + +?> \ No newline at end of file -- 1.7.0.4