<?php
$noauth = true;
chdir(dirname(__FILE__));
$cms_root_path = "../../";
require_once($cms_root_path."includes/compatibility_includer.php");

if ( !empty($_GET) ) {
	$argv = $_GET;
}

if ( empty($argv[1]) ) {	
	Listing::updateListingCache();
} else if ( !empty($argv[1]) && empty($argv[2]) ) {
	Listing::updateListingCache($argv[1]);
} else if ( !empty($argv[1]) && !empty($argv[2]) ) {
	Listing::updateListingCache($argv[1], $argv[2]);
}