morph-rc/configuration/sources/vps-list/classes/class.location.php

30 lines
653 B
PHP
Raw Normal View History

2019-08-07 13:01:04 +02:00
<?php
if($_VPS !== true) { die("x"); }
class Location extends CPHPDatabaseRecordClass
{
public $fill_query = "SELECT * FROM locations WHERE `Id` = '%d'";
public $verify_query = "SELECT * FROM locations WHERE `Id` = '%d'";
public $table_name = "locations";
public $prototype = array(
'string' => array(
'Location' => "Location",
'TestIp4' => "TestIp4",
'TestIp6' => "TestIp6",
'TestFile' => "TestFile"
),
'numeric' => array(
'CountryId' => "CountryId",
'ProviderId' => "ProviderId"
),
'country' => array(
'Country' => "CountryId"
),
'provider' => array(
'Provider' => "ProviderId"
)
);
}
?>