Changeset 97
- Timestamp:
- 11/28/06 16:39:57 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/mods/item_values/settings.php
r96 r97 1 1 <?php 2 require_once("common/class.page.php"); 3 require_once("common/admin_menu.php"); 2 4 // This script goies out and sync's the ship values to the database. 3 5 //Ebil Hax by coni cus hes and ass ;) … … 5 7 // enable the mod, then click on settings for the mod, and it will go out and get ship pricing. 6 8 7 require_once("common/class.page.php");8 require_once("common/admin_menu.php");9 9 require_once("common/db.php"); //Include database interface - May need to change this to reflect your local, its not a dev tool for nothing. 10 10 require_once("xmllibrary.php"); //include xml interface 11 11 12 12 $page = new Page("Settings - ship price import"); 13 if ($_POST['submit']) 14 { 13 15 14 if ($_REQUEST['do'] == 'scan')15 {16 16 //http://eve-central.com/home/marketstat_xml.html?typeid= 17 17 $html = "Querying Database for Ship Item Numbers<br>"; … … 46 46 while ($row = $qry->getRow()) 47 47 { 48 //$row = $qry->getRow();49 48 //Get data for every single ship in the database 50 49 //Get the information from eve central; 51 // $html .= "Getting Value of item: " . $row['itm_name'] . "<br>";52 50 $pricedata = file_get_contents("http://eve-central.com/home/marketstat_xml.html?typeid=" . $row['itm_externalid']); 53 51 $pdata = XML_unserialize($pricedata); … … 67 65 else 68 66 { 69 $html .= '<a href="?a=settings_item_values&do=scan">Scan</a><br/>'; 67 $html .= "<div class=block-header2>Global options</div>"; 68 $html .= "<form id=options name=options method=post action=>"; 69 $html .= "<div class=block-header2>Value Sync</div>"; 70 $html .= "<br>Look for neat stuff here and more sync stuff later, Until then hit submit to update your ship values."; 71 $html .= "<br>This takes a hell of a long time!"; 72 $html .= "<br>And if you know anyone at eve central, please convince them to give us the xml output we asked for<br>"; 73 $html .= "<br><input type=submit name=submit value=\"Submit\">"; 70 74 } 75 76 77 78 79 71 80 $page->setContent($html); 72 81 $page->addContext($menubox->generate());