<?php die; require_once dirname(dirname(__FILE__)) . '/config.php'; // gets the module list for this installation $ret = new stdClass(); $ret->ProgVersion = ProgramVersion; $ret->DbVersion = GetParameter('DBUpdate'); $ret->ProgRelease = ProgramRelease; $ret->Action = 'list'; $ret->email = empty($_POST['email']) ? '' : $_POST['email']; $ret->Modules = get_modules(); $ret->Sets = get_sets(); $postdata = http_build_query(array('Json' => gzcompress(serialize($Old)))); // get the online modules $opts = array('http' => array('method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata)); $context = stream_context_create($opts); $stream = fopen('http://ianseo.net/Ianseo/Modules.php', 'r', false, $context); $tmp = stream_get_contents($stream); if (!($NewIanseo = unserialize(gzuncompress($tmp)))) { if ($tmp == 'NothingToDo') { echo get_text('Done', 'Install'); } else { echo get_text('Failed', 'Install'); } echo '</div>'; echo '<div><br/>' . get_text($tmp, 'Install') . '</div>'; include 'Common/Templates/tail.php'; die; } fclose($stream);
require "settings.php"; define("SETUP_PHP", true); global $tmp_prdmap, $PRDMON; $tmp_prdmap = array(); $PRDMON =& $tmp_prdmap; # decide what to do if (isset($_POST["key"])) { switch ($_POST["key"]) { case "write": $OUTPUT = write_sets($_POST); break; default: $OUTPUT = get_sets(); } } else { $OUTPUT = get_sets(); } # display output require "template.php"; function get_sets() { db_conn('cubit'); # Check if setting exists $sql = "SELECT value FROM set WHERE label = 'ACCNEW_LNK'"; $Rslt = db_exec($sql) or errDie("Unable to check database for existing settings."); if (pg_numrows($Rslt) > 0) { $set = pg_fetch_array($Rslt); if ($set['value'] == 'acc-new.php') { return printSet(); } }
* Add easy add for collections * Card details view for collections * Revamp CSS * Trade Calculator */ require_once '../library/database.php'; require_once '../library/account.php'; require_once '../library/collections.php'; require_once '../library/cards.php'; require_once '../library/password.php'; $lifetime = 60 * 60 * 24 * 365; // 1 year in seconds session_set_cookie_params($lifetime, '/'); session_start(); $db = magic_connection(); $sets = get_sets(); if (isset($_SESSION['user_id'])) { $collections = get_collections($_SESSION['user_id']); } $action = filter_input(INPUT_POST, 'action', FILTER_SANITIZE_STRING); if ($action == NULL) { $action = filter_input(INPUT_GET, 'action', FILTER_SANITIZE_STRING); } switch ($action) { case 'Search': $row_count = 0; $page = 1; $searchtype = filter_input(INPUT_GET, 'searchtype', FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY); $searchstring = filter_input(INPUT_GET, 'search', FILTER_SANITIZE_STRING); $colors = filter_input(INPUT_GET, 'colors', FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY); $colortype = filter_input(INPUT_GET, 'colortype', FILTER_VALIDATE_INT);