Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1215

Přidáno uživatelem Ondřej Fibich před asi 13 roky(ů)

Novinky:

- dokonceni registrace instalace na FreeNetIS.org

Zobrazit rozdíly:

freenetis/branches/testing/application/models/address_point.php
* @package Model
* @property Country_Model $country
* @property integer $country_id
* @property Town_Model $town
* @property integer $town_id
* @property Street_Model $street
* @property integer $street_id
* @property integer $street_number
* @property mixed $gps
......
{
protected $has_many = array('members', 'devices', 'item_locations');
protected $belongs_to = array('town', 'street', 'country');
/**
* @author Ondrej Fibich
* @return string reprezentation of address point
*/
public function __toString()
{
if (!$this->id)
return '';
return (
$this->country->country_name . ', ' .
$this->town->town . ($this->town->quarter ? ' - ' . $this->town->quarter : '') . ', ' .
$this->street->street . ', ' . $this->street_number
);
}
/**
* Check if address point exists
freenetis/branches/testing/application/controllers/installation.php
*
*/
// url for registration to FreenetIS.org
define('REGISTER_URL', 'http://dev.freenetis.org/register.php');
/**
* Controller performs installation of FreeNetIS
*
......
$suffix = substr(server::script_name(),0,-9);
$this->settings->set('suffix', $suffix);
/**
* @todo do part of app in FreeNetIS.org
*
// send registration data
if ($form_data['register_install'])
{
@file_get_contents('http://localhost/register.php?name='.$form_data["name"].'&email='.$form_data["email"]);
@file_get_contents(
REGISTER_URL .
'?name=' . urlencode($form_data["name"]) .
'&email=' . urlencode($form_data["email"]) .
'&address=' . urlencode($address_point->__toString())
);
}
*/
$view = new View('installation_done');

Také k dispozici: Unified diff