global $settings, $db, $categoriestable, $language;
if (!strstr($settings->categoryfields, 'related'))
{
$settings->categoryfields .= ',related';
$settings->update('categoryfields');
$result = $db->alter('categoriestable', 'ADD', 'related', 'text NOT NULL');
}
$thisone[0] = 'dateformat_regular';
$thisvalue[0] = $settings->dateformat;
$thisone[1] = 'dateformat_comments';
$thisvalue[1] = $settings->commentsdateformat;
$thisone[2] = 'dateformat_locale';
$thisvalue[2] = $settings->locale;
$thisone[3] = 'misc_newestlist';
$thisvalue[3] = 'newest';
$thisone[4] = 'misc_aswellas';
$thisvalue[4] = 'as well as';
$thisone[5] = 'misc_article_plural';
$thisvalue[5] = '';
$thisone[6] = 'misc_and';
$thisvalue[6] = 'and';
$thisone[7] = 'misc_or';
$thisvalue[7] = 'or';
$thisone[8] = 'misc_in';
$thisvalue[8] = 'in';
$thisone[9] = 'editlink_owner';
$thisvalue[9] = 'Owner id#';
$thisone[10] = 'editprofile_changepass';
$thisvalue[10] = '(Leave blank to keep current password)';
$langs = explode(',', $settings->languages);
if (is_array($langs))
{
$num = sizeof($langs);
for ($x=0; $x<$num; $x++)
{
for ($y=0; $y<11; $y++)
{
if (!strstr($language->allnames(), $thisone[$y]))
$db->insert('languagetable', 'id,name,value,groupid', "'', '$thisone[$y]', '$thisvalue[$y]', '$langs[$x]'");
}
}
}
else
{
for ($y=0; $y<11; $y++)
{
if (!strstr($language->allnames(), $thisone[$y]))
$result = $db->insert('languagetable', 'id,name,value,groupid', "'', '$thisone[$y]', '$thisvalue[$y]', '$langs'");
}
}
?>
Wyszukiwarka
Podobne podstrony:
docs Nebula Fix NumbersFix Problem with disconnect with ASDL?ble modems (3)Web pages slow down, FIX (3)szybki fix GPSWeb pages slow down, FIX (2)2005 10?sy Fix Editing Web Pages with FckeditorBusta Rhymes There s not a problem my squad?n t fixIE Another way to fix IE6 slow page load (2)ZMIANY W OPIS 736 CF2 (Critical Fix 2)Fix Problem with disconnect with ASDL?ble modems (2)Permanent Acceleration Fix62 Fix Loopy LiftsHOW TO FIX A FOOTBALL MATCHwięcej podobnych podstron