switch ($_GET['sub'])
{
case "points":
- $SQL[] = "UPDATE "._MYSQL_PREFIX."_config SET points_register='".$_POST['points_register']."', points_ref='".$_POST['points_ref']."' WHERE config='0' LIMIT 1";
+ $SQL[] = "UPDATE "._MYSQL_PREFIX."_config SET points_register='".$_POST['points_register']."', points_ref='".$_POST['points_ref']."' WHERE config=0 LIMIT 1";
break;
case "ref":
// Update cache file
if (GET_EXT_VERSION("cache") >= "0.1.2")
{
- if ($CACHE->cache_file("refdepths", true)) $CACHE->cache_destroy();
+ if ($cacheInstance->cache_file("refdepths", true)) $cacheInstance->cache_destroy();
}
break;
allow_direct_pay='%s',
reg_points_mode='%s',
ref_payout='%d'
-WHERE config='0' LIMIT 1",
+WHERE config=0 LIMIT 1",
$_POST['allow_direct_pay'],
$_POST['reg_points_mode'],
$REF
// Destroy config cache file here...
if (GET_EXT_VERSION("cache") >= "0.1.2")
{
- if ($CACHE->cache_file("config", true)) $CACHE->cache_destroy();
- unset($CFG_CACHE);
+ if ($cacheInstance->cache_file("config", true)) $cacheInstance->cache_destroy();
+ unset($cacheArray);
}
}
else