/** * * @return void */ public function contact() { $this->loadModel('content'); Loader::library('Form'); $data = array(); if (Input::post()) { Form::rule('name', 'trim|required|alpha|maxLength:100'); Form::rule('email', 'trim|required|validEmail|maxLength:100'); Form::rule('message', 'trim|required|maxLength:5000'); Form::rule('captcha', 'trim|required|numeric|verifyCaptcha'); if (Form::run() === TRUE) { $sendData = array('name' => Input::post('name'), 'email' => Input::post('email'), 'message' => Input::post('message')); $data = $this->mContent->sendMessage($sendData); } else { $data = array('success' => FALSE, 'result' => Form::errors()); } } $data['sidebarLayout'] = View::render('content/vSidebar', array('page' => 'contact'), TRUE); Layout::title('Contact'); Layout::desc('Contact us.'); Layout::view('content/vContact', $data); }
/** * * @param string $tag Default is NULL * @param int $page Default is NULL * @return void */ public function index($tag = NULL, $page = NULL) { $getData = array('query' => $tag ? $tag : Input::get('query'), 'type' => Input::get('type'), 'country' => Input::get('country'), 'make' => Input::get('make'), 'model' => Input::get('model'), 'year_min' => Input::get('year_min'), 'year_max' => Input::get('year_max'), 'price_min' => Input::get('price_min'), 'price_max' => Input::get('price_max'), 'currency' => Input::get('currency'), 'condition' => Input::get('condition'), 'color' => Input::get('color'), 'mileage_min' => Input::get('mileage_min'), 'mileage_max' => Input::get('mileage_max'), 'vehicle' => Input::get('vehicle'), 'vin' => Input::get('vin'), 'state' => Input::get('state'), 'city' => Input::get('city'), 'location' => Input::get('location'), 'order' => Input::get('order'), 'page' => $page ? $page : Input::get('page')); $getData = $this->mSearch->fixDashes($getData); $getData = $this->mSearch->fixLower($getData); $data = $this->mSearch->apiResults($getData); $data['params'] = $getData; $data['yearMin'] = $getData['year_min'] ? $getData['year_min'] : 1980; $data['yearMax'] = $getData['year_max'] ? $getData['year_max'] : (int) date('Y'); $data['priceMin'] = $getData['price_min'] ? $getData['price_min'] : 0; $data['priceMax'] = $getData['price_max'] ? $getData['price_max'] : 50000; $data['mileageMin'] = $getData['mileage_min'] ? $getData['mileage_min'] : 0; $data['mileageMax'] = $getData['mileage_max'] ? $getData['mileage_max'] : 200000; $this->mSearch->saveTags($getData['query'], $data['total']); $data['latestTags'] = $this->mSearch->getTags('latest'); $data['randomTags'] = $this->mSearch->getTags('random'); if ($tag !== NULL) { Pagination::setQueryString(FALSE); Pagination::setURL(tagLink($getData['query'])); $seoData = $this->mSearch->setSeo('tags', $getData, $data['total']); Layout::title(getSeo($seoData, 'tagsTitle')); Layout::desc(getSeo($seoData, 'tagsDesc')); Layout::heading(getSeo($seoData, 'tagsHeading')); } else { Pagination::setQueryString(TRUE); Pagination::setURL(searchLink($getData, FALSE)); $seoData = $this->mSearch->setSeo('search', $getData, $data['total']); Layout::title(getSeo($seoData, 'searchTitle')); Layout::desc(getSeo($seoData, 'searchDesc')); Layout::heading(getSeo($seoData, 'searchHeading')); } Pagination::setTotal($data['total'], Config::get('searchResultsLimit', 'limit'), Config::get('searchPaginaLimit', 'limit')); Pagination::setCurrent($getData['page']); Pagination::setNumLinks(3); Pagination::run(); $data['pagination'] = Pagination::getPagina(); Layout::view('vSearch', $data); }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo Layout::lang_code(); ?> "> <head> <title><?php echo Layout::title(); ?> </title> <link rel="shortcut icon" href="<?php echo Layout::path(); ?> images/favicon.png" type="image/png" /> <?php echo Layout::zone('meta'); ?> <!-- reset and font stylesheet --> <?php echo Layout::resetter(); ?> <!-- common stylesheet --> <link rel="stylesheet" type="text/css" href="<?php echo Layout::path(); ?> style/base.css" /> <link rel="stylesheet" type="text/css" href="<?php echo Layout::path(); ?> style/lms-home.css" />
<?php /* INFO ON WHAT THIS PAGE WILL SHOW Graphs of all my arena stats Need to do importing of all my old arena runs New feature of arena (how many of which rarity rarity) */ include_once "classes/functions.php"; include_once "classes/layout.php"; $functions = new Functions(); $layout = new Layout(); $database2 = new Database2(); $layout->title("HS Arena stats"); $layout->header(); $arena_id = Functions::Post_Int('ArenaID'); $new_arena = 0; Functions::ClassList_Load_Classes($database2, $classes); if (!Functions::ArenaRun_Load_ID($database2, $arena_id, $arena_run)) { if (!Functions::ArenaRun_Load_Active($database2, $arena_run)) { $new_arena = 1; } } if (!$new_arena) { Functions::ArenaRewards_Load_ArenaID($database2, $arena_run['id'], $arena_rewards); Functions::ArenaMatchList_Load_ArenaID($database2, $arena_run['id'], $arena_matches); } ?> <a href="index.php">Home</a> <h1 style="margin: 5px;">Arena Stats and Data</h1>
- missing playable - missing golden - missing normal - Split, Cards/Stats/Add/Update to their own pages - Adding Packs should be changed (right now no way to fix a bad mistake of adding packs) - Change to be a more organized list with better filters - Improve the Number of cards By set - include rarity percentage complete - include dust required to complete set */ include_once "classes/functions.php"; include_once "classes/layout.php"; $functions = new Functions(); $layout = new Layout(); $database2 = new Database2(); $layout->title("HS Card Stats"); $layout->header(); $class = Functions::Get('Class'); $missing = Functions::Get('Missing'); if ($class == '') { $class = 'Neutral'; } if ($missing == '' || $missing == 'undefined') { $missing = 'None'; } Functions::Account_Load($database2, $account); Functions::ClassList_Load($database2, $classes); Functions::SetList_Load($database2, $card_sets); Functions::RarityList_Load_All($database2, $rarities); if (!Functions::Class_Load_Name($database2, $class, $null)) { if (!Functions::Rarity_Load_Name($database2, $class, $null)) {