Файл: upload/module/core/install/version/install.xml.php
Строк: 124
<?php
/** $Id: install.xml.php 2826 2011-08-11 19:41:03Z Raymond_Benc $ **/
defined('PHPFOX') or exit('NO DICE!');
?>
<phpfox>
<install><![CDATA[
$aRows = array(
array(
'currency_id' => 'USD',
'symbol' => '$' ,
'phrase_var' => 'core.u_s_dollars',
'ordering' => '1',
'is_default' => '1',
'is_active' => '1'
),
array(
'currency_id' => 'EUR',
'symbol' => '€' ,
'phrase_var' => 'core.euros',
'ordering' => '2',
'is_default' => '0',
'is_active' => '1'
),
array(
'currency_id' => 'GBP',
'symbol' => '£',
'phrase_var' => 'core.pounds_sterling',
'ordering' => '3',
'is_default' => '0',
'is_active' => '1'
)
);
foreach ($aRows as $aRow)
{
$aInsert = array();
foreach ($aRow as $sKey => $sValue)
{
$aInsert[$sKey] = $sValue;
}
$this->database()->insert(Phpfox::getT('currency'), $aInsert);
}
$aRows = array(
array(
'url' => 'user/login',
'replacement' => 'login'
),
array(
'url' => 'user/logout',
'replacement' => 'logout'
)
);
foreach ($aRows as $aRow)
{
$aInsert = array();
foreach ($aRow as $sKey => $sValue)
{
$aInsert[$sKey] = $sValue;
}
$this->database()->insert(Phpfox::getT('rewrite'), $aInsert);
}
$aRows = array(
array(
'product_id' => 'phpfox',
'title' => 'Core',
'description' => '',
'version' => '',
'is_active' => '1',
'url' => '',
'url_version_check' => ''
),
array(
'product_id' => 'phpfox_installer',
'title' => 'Core Installer',
'description' => '',
'version' => '1',
'is_active' => '1',
'url' => '',
'url_version_check' => ''
),
array(
'product_id' => 'flowplayer',
'title' => 'Flowplayer',
'description' => 'Video Player for the Web',
'version' => '3.1',
'is_active' => '1',
'url' => null,
'url_version_check' => null
)
);
foreach ($aRows as $aRow)
{
$aInsert = array();
foreach ($aRow as $sKey => $sValue)
{
$aInsert[$sKey] = $sValue;
}
$this->database()->insert(Phpfox::getT('product'), $aInsert);
}
$aCountryChildren = array (
'US' =>
array (
0 => 'Alabama',
1 => 'Alaska',
2 => 'American Samoa',
3 => 'Arizona',
4 => 'Arkansas',
5 => 'California',
6 => 'Colorado',
7 => 'Connecticut',
8 => 'Delaware',
9 => 'District Of Columbia',
10 => 'Federated States Of Micronesia',
11 => 'Florida',
12 => 'Georgia',
13 => 'Guam',
14 => 'Hawaii',
15 => 'Idaho',
16 => 'Illinois',
17 => 'Indiana',
18 => 'Iowa',
19 => 'Kansas',
20 => 'Kentucky',
21 => 'Louisiana',
22 => 'Maine',
23 => 'Marshall Islands',
24 => 'Maryland',
25 => 'Massachusetts',
26 => 'Michigan',
27 => 'Minnesota',
28 => 'Mississippi',
29 => 'Missouri',
30 => 'Montana',
31 => 'Nebraska',
32 => 'Nevada',
33 => 'New Hampshire',
34 => 'New Jersey',
35 => 'New Mexico',
36 => 'New York',
37 => 'North Carolina',
38 => 'North Dakota',
39 => 'Northern Mariana Islands',
40 => 'Ohio',
41 => 'Oklahoma',
42 => 'Oregon',
43 => 'Palau',
44 => 'Pennsylvania',
45 => 'Puerto Rico',
46 => 'Rhode Island',
47 => 'South Carolina',
48 => 'South Dakota',
49 => 'Tennessee',
50 => 'Texas',
51 => 'Utah',
52 => 'Vermont',
53 => 'Virgin Islands',
54 => 'Virginia',
55 => 'Washington',
56 => 'West Virginia',
57 => 'Wisconsin',
58 => 'Wyoming',
),
'SE' =>
array (
0 => 'Blekinge',
1 => 'Bohuslän',
2 => 'Dalarna',
3 => 'Dalsland',
4 => 'Gotland',
5 => 'Gästrikland',
6 => 'Halland',
7 => 'Hälsingland',
8 => 'Härjedalen',
9 => 'Jämtland',
10 => 'Lappland',
11 => 'Medelpad',
12 => 'Norrbotten',
13 => 'Närke',
14 => 'Skåne',
15 => 'Småland',
16 => 'Södermanland',
17 => 'Uppland',
18 => 'Värmland',
19 => 'Västmanland',
20 => 'Västerbotten',
21 => 'Västergötland',
22 => 'Ångermanland',
23 => 'Öland',
24 => 'Östergötland',
)
);
foreach ($aCountryChildren as $sIso => $aChilds)
{
foreach ($aChilds as $sChild)
{
$this->database()->insert(Phpfox::getT('country_child'), array('country_iso' => $sIso, 'name' => $sChild));
}
}
]]></install>
</phpfox>