-
+23.7
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
function _validateDelete($d) {
$valid = true;
if (!$d["product_id"]) {
$this->setError(dgettext("Core", "Product not selected."));
return false;
}
if (!$d["product_id"]) {
$this->setError(dgettext("Core", "Please select a record to delete."));
$valid = false;
}
return $valid;
}
Индусокод классический
guest,
21 Января 2009
-
+79.2
- 001
- 002
- 003
- 004
- 005
- 006
- 007
- 008
- 009
- 010
- 011
- 012
- 013
- 014
- 015
- 016
- 017
- 018
- 019
- 020
- 021
- 022
- 023
- 024
- 025
- 026
- 027
- 028
- 029
- 030
- 031
- 032
- 033
- 034
- 035
- 036
- 037
- 038
- 039
- 040
- 041
- 042
- 043
- 044
- 045
- 046
- 047
- 048
- 049
- 050
- 051
- 052
- 053
- 054
- 055
- 056
- 057
- 058
- 059
- 060
- 061
- 062
- 063
- 064
- 065
- 066
- 067
- 068
- 069
- 070
- 071
- 072
- 073
- 074
- 075
- 076
- 077
- 078
- 079
- 080
- 081
- 082
- 083
- 084
- 085
- 086
- 087
- 088
- 089
- 090
- 091
- 092
- 093
- 094
- 095
- 096
- 097
- 098
- 099
- 100
if ($_GET[g] == 1) {$dir="g/irk/files/"; $dir_count="g/irk/banners/"; $city_for_files='Иркутск'; $city_for_files2='Иркутска'; $cityphonecode='3952'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 2) {$dir="g/novosib/files/"; $dir_count="g/novosib/banners/"; $city_for_files='Новосибирск'; $city_for_files2='Новосибирска'; $cityphonecode='383'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 3) {$dir="g/moscow/files/"; $dir_count="g/moscow/banners/"; $city_for_files='Москва'; $city_for_files2='Москвы'; $cityphonecode='495'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 4) {$dir="g/minsk/files/"; $dir_count="g/minsk/banners/"; $city_for_files='Минск'; $city_for_files2='Минска'; $cityphonecode='17'; $countryphonecode='Белорусии - 735';}
elseif ($_GET[g] == 5) {$dir="g/speterburg/files/"; $dir_count="g/speterburg/banners/"; $city_for_files='Санкт-Петербург'; $city_for_files2='Санкт-Петербурга'; $cityphonecode='812'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 6) {$dir="g/kiev/files/"; $dir_count="g/kiev/banners/"; $city_for_files='Киев'; $city_for_files2='Киева'; $cityphonecode='44'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 7) {$dir="g/kemerovo/files/"; $dir_count="g/kemerovo/banners/"; $city_for_files='Кемерово'; $city_for_files2='Кемерово'; $cityphonecode='3842'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 8) {$dir="g/angarsk/files/"; $dir_count="g/angarsk/banners/"; $city_for_files='Ангарск'; $city_for_files2='Ангарска'; $cityphonecode='3951'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 9) {$dir="g/ijevsk/files/"; $dir_count="g/ijevsk/banners/"; $city_for_files='Ижевск'; $city_for_files2='Ижевска'; $cityphonecode='3412'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 10) {$dir="g/chudovo/files/"; $dir_count="g/chudovo/banners/"; $city_for_files='Чудово'; $city_for_files2='Чудово';}
elseif ($_GET[g] == 11) {$dir="g/cheremhovo/files/"; $dir_count="g/cheremhovo/banners/"; $city_for_files='Черемхово'; $city_for_files2='Черемхово'; $cityphonecode='39546'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 12) {$dir="g/nnovgorod/files/"; $dir_count="g/nnovgorod/banners/"; $city_for_files='Нижний Новгород'; $city_for_files2='Нижнего Новгорода'; $cityphonecode='8312'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 13) {$dir="g/kaliningrad/files/"; $dir_count="g/kaliningrad/banners/"; $city_for_files='Калининград'; $city_for_files2='Калининграда'; $cityphonecode='4012'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 14) {$dir="g/bratsk/files/"; $dir_count="g/bratsk/banners/"; $city_for_files='Братск'; $city_for_files2='Братска'; $cityphonecode='3953'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 15) {$dir="g/dzerjinsk/files/"; $dir_count="g/dzerjinsk/banners/"; $city_for_files='Дзержинск'; $city_for_files2='Дзержинска'; $cityphonecode='8313'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 16) {$dir="g/serov/files/"; $dir_count="g/serov/banners/"; $city_for_files='Серов'; $city_for_files2='Серова'; $cityphonecode='34315'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 17) {$dir="g/ustilimsk/files/"; $dir_count="g/ustilimsk/banners/"; $city_for_files='Усть-Илимск'; $city_for_files2='Усть-Илимска'; $cityphonecode='39535'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 18) {$dir="g/vladivostok/files/"; $dir_count="g/vladivostok/banners/"; $city_for_files='Владивосток'; $city_for_files2='Владивостока'; $cityphonecode='4232'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 19) {$dir="g/chita/files/"; $dir_count="g/chita/banners/"; $city_for_files='Чита'; $city_for_files2='Читы'; $cityphonecode='3022'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 20) {$dir="g/krasnoiarsk/files/"; $dir_count="g/krasnoiarsk/banners/"; $city_for_files='Красноярск'; $city_for_files2='Красноярска'; $cityphonecode='3912'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 21) {$dir="g/barnaul/files/"; $dir_count="g/barnaul/banners/"; $city_for_files='Барнаул'; $city_for_files2='Барнаула'; $cityphonecode='3852'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 22) {$dir="g/arhangelsk/files/"; $dir_count="g/arhangelsk/banners/"; $city_for_files='Архангельск'; $city_for_files2='Архангельска'; $cityphonecode='8182'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 23) {$dir="g/tomsk/files/"; $dir_count="g/tomsk/banners/"; $city_for_files='Томск'; $city_for_files2='Томска'; $cityphonecode='3822'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 24) {$dir="g/astrahan/files/"; $dir_count="g/astrahan/banners/"; $city_for_files='Астрахань'; $city_for_files2='Астрахани'; $cityphonecode='8512'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 25) {$dir="g/nahodka/files/"; $dir_count="g/nahodka/banners/"; $city_for_files='Находка'; $city_for_files2='Находки'; $cityphonecode='42366'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 26) {$dir="g/cherepovec/files/"; $dir_count="g/cherepovec/banners/"; $city_for_files='Череповец'; $city_for_files2='Череповца'; $cityphonecode='8202'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 27) {$dir="g/belgorod/files/"; $dir_count="g/belgorod/banners/"; $city_for_files='Белгород'; $city_for_files2='Белгорода'; $cityphonecode='4722'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 28) {$dir="g/briansk/files/"; $dir_count="g/briansk/banners/"; $city_for_files='Брянск'; $city_for_files2='Брянска'; $cityphonecode='4832'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 29) {$dir="g/vladimir/files/"; $dir_count="g/vladimir/banners/"; $city_for_files='Владимир'; $city_for_files2='Владимира'; $cityphonecode='4922'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 30) {$dir="g/volgograd/files/"; $dir_count="g/volgograd/banners/"; $city_for_files='Волгоград'; $city_for_files2='Волгограда'; $cityphonecode='8442'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 31) {$dir="g/vologda/files/"; $dir_count="g/vologda/banners/"; $city_for_files='Вологда'; $city_for_files2='Вологды'; $cityphonecode='8172'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 32) {$dir="g/voronej/files/"; $dir_count="g/voronej/banners/"; $city_for_files='Воронеж'; $city_for_files2='Воронежа'; $cityphonecode='4732'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 33) {$dir="g/ivanovo/files/"; $dir_count="g/ivanovo/banners/"; $city_for_files='Иваново'; $city_for_files2='Иваново'; $cityphonecode='4932'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 34) {$dir="g/kaluga/files/"; $dir_count="g/kaluga/banners/"; $city_for_files='Калуга'; $city_for_files2='Калуги'; $cityphonecode='48422'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 35) {$dir="g/kirov/files/"; $dir_count="g/kirov/banners/"; $city_for_files='Киров'; $city_for_files2='Кирова'; $cityphonecode='8332'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 36) {$dir="g/kostroma/files/"; $dir_count="g/kostroma/banners/"; $city_for_files='Кострома'; $city_for_files2='Костромы'; $cityphonecode='4942'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 37) {$dir="g/rostov/files/"; $dir_count="g/rostov/banners/"; $city_for_files='Ростов-на-Дону'; $city_for_files2='Ростова-на-Дону'; $cityphonecode='8632'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 38) {$dir="g/klaipeda/files/"; $dir_count="g/klaipida/banners/"; $city_for_files='Клайпеда'; $city_for_files2='Клайпеды'; $cityphonecode='46'; $countryphonecode='Литвы - 370';}
elseif ($_GET[g] == 39) {$dir="g/varshava/files/"; $dir_count="g/varshava/banners/"; $city_for_files='Варшава (Warszawa)'; $city_for_files2='Варшавы'; $cityphonecode='22'; $countryphonecode='Польши - 48';}
elseif ($_GET[g] == 40) {$dir="g/usoliesib/files/"; $dir_count="g/usoliesib/banners/"; $city_for_files='Усолье-Сибирское'; $city_for_files2='Усолья-Сибирского'; $cityphonecode='39543'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 41) {$dir="g/GERMANY/hannover/files/"; $dir_count="g/GERMANY/hannover/banners/"; $city_for_files='Ганновер'; $city_for_files2='Ганновера'; $cityphonecode=''; $countryphonecode='Германии -';}
elseif ($_GET[g] == 42) {$dir="g/habarovsk/files/"; $dir_count="g/habarovsk/banners/"; $city_for_files='Хабаровск'; $city_for_files2='Хабаровска'; $cityphonecode='4212'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 43) {$dir="g/lipeck/files/"; $dir_count="g/lipeck/banners/"; $city_for_files='Липецк'; $city_for_files2='Липецка'; $cityphonecode='4742'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 44) {$dir="g/yaroslavl/files/"; $dir_count="g/yaroslavl/banners/"; $city_for_files='Ярославль'; $city_for_files2='Ярославля'; $cityphonecode='4852'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 45) {$dir="g/riazan/files/"; $dir_count="g/riazan/banners/"; $city_for_files='Рязань'; $city_for_files2='Рязани'; $cityphonecode='4912'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 46) {$dir="g/ufa/files/"; $dir_count="g/ufa/banners/"; $city_for_files='Уфа'; $city_for_files2='Уфы'; $cityphonecode='347'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 47) {$dir="g/ekaterinburg/files/"; $dir_count="g/ekaterinburg/banners/"; $city_for_files='Екатеринбург'; $city_for_files2='Екатеринбурга'; $cityphonecode='343'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 48) {$dir="g/POLAND/poznan/files/"; $dir_count="g/POLAND/poznan/banners/"; $city_for_files='Познань'; $city_for_files2='Познани'; $cityphonecode='61'; $countryphonecode='Польши - 48';}
elseif ($_GET[g] == 49) {$dir="g/pereslavlzalesskii/files/"; $dir_count="g/pereslavlzalesskii/banners/"; $city_for_files='Переславль-Залесский'; $city_for_files2='Переславля-Залесского'; $cityphonecode='48535'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 50) {$dir="g/ulanude/files/"; $dir_count="g/ulanude/banners/"; $city_for_files='Улан-Удэ'; $city_for_files2='Улан-Удэ'; $cityphonecode='30122'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 51) {$dir="g/stavropol/files/"; $dir_count="g/stavropol/banners/"; $city_for_files='Ставрополь'; $city_for_files2='Ставрополя'; $cityphonecode='8652'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 52) {$dir="g/velikieluki/files/"; $dir_count="g/velikieluki/banners/"; $city_for_files='Великие Луки'; $city_for_files2='города Великие Луки'; $cityphonecode='81153'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 54) {$dir="g/harkov/files/"; $dir_count="g/harkov/banners/"; $city_for_files='Харьков'; $city_for_files2='Харькова'; $cityphonecode='057'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 55) {$dir="g/tula/files/"; $dir_count="g/tula/banners/"; $city_for_files='Тула'; $city_for_files2='Тулы'; $cityphonecode='4872'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 56) {$dir="g/orel/files/"; $dir_count="g/orel/banners/"; $city_for_files='Орел'; $city_for_files2='Орла'; $cityphonecode='4862'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 57) {$dir="g/gomel/files/"; $dir_count="g/gomel/banners/"; $city_for_files='Гомель'; $city_for_files2='Гомеля'; $cityphonecode='232'; $countryphonecode='Белоруссии - 375';}
elseif ($_GET[g] == 58) {$dir="g/vorkuta/files/"; $dir_count="g/vorkuta/banners/"; $city_for_files='Воркута'; $city_for_files2='Воркуты'; $cityphonecode='82151'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 59) {$dir="g/dnepropetrovsk/files/"; $dir_count="g/dnepropetrovsk/banners/"; $city_for_files='Днепропетровск'; $city_for_files2='Днепропетровск'; $cityphonecode='056'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 60) {$dir="g/dusseldorf/files/"; $dir_count="g/dusseldorf/banners/"; $city_for_files='Дюссельдорф'; $city_for_files2='Дюссельдорфа'; $cityphonecode='211'; $countryphonecode='Германии - 49';}
elseif ($_GET[g] == 61) {$dir="g/bonn/files/"; $dir_count="g/bonn/banners/"; $city_for_files='Бонн'; $city_for_files2='Бонна'; $cityphonecode='228'; $countryphonecode='Германии - 49';}
elseif ($_GET[g] == 62) {$dir="g/gamburg/files/"; $dir_count="g/gamburg/banners/"; $city_for_files='Гамбург'; $city_for_files2='Гамбурга'; $cityphonecode='40'; $countryphonecode='Германии - 49';}
elseif ($_GET[g] == 63) {$dir="g/zaporozhie/files/"; $dir_count="g/zaporozhie/banners/"; $city_for_files='Запорожье'; $city_for_files2='Запорожья'; $cityphonecode='61'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 64) {$dir="g/voskresensk/files/"; $dir_count="g/voskresensk/banners/"; $city_for_files='Воскресенск'; $city_for_files2='Воскресенска'; $cityphonecode='496'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 65) {$dir="g/nijnitagil/files/"; $dir_count="g/nijnitagil/banners/"; $city_for_files='Нижний Тагил'; $city_for_files2='Нижнего Тагила'; $cityphonecode='3435'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 66) {$dir="g/samara/files/"; $dir_count="g/samara/banners/"; $city_for_files='Самара'; $city_for_files2='Самары'; $cityphonecode='846'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 67) {$dir="g/taganrog/files/"; $dir_count="g/taganrog/banners/"; $city_for_files='Таганрог'; $city_for_files2='Таганрога'; $cityphonecode='8634'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 68) {$dir="g/nurnberg/files/"; $dir_count="g/nurnberg/banners/"; $city_for_files='Нюрнберг'; $city_for_files2='Нюрнберга'; $cityphonecode='911'; $countryphonecode='Германии - 49';}
elseif ($_GET[g] == 69) {$dir="g/mariuopol/files/"; $dir_count="g/mariuopol/banners/"; $city_for_files='Мариуополь'; $city_for_files2='Мариуополя'; $cityphonecode='629'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 70) {$dir="g/uzhnouralsk/files/"; $dir_count="g/uzhnouralsk/banners/"; $city_for_files='Южноуральск'; $city_for_files2='Южноуральска'; $cityphonecode='35134'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 73) {$dir="g/almati/files/"; $dir_count="g/almati/banners/"; $city_for_files='Алматы'; $city_for_files2='Алматы'; $cityphonecode='3272'; $countryphonecode='Казахстана - 7';}
elseif ($_GET[g] == 74) {$dir="g/saratov/files/"; $dir_count="g/saratov/banners/"; $city_for_files='Саратов'; $city_for_files2='Саратова'; $cityphonecode='8452'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 75) {$dir="g/kirovgrad/files/"; $dir_count="g/kirovgrad/banners/"; $city_for_files='Кировград'; $city_for_files2='Кировграда'; $cityphonecode='34357'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 76) {$dir="g/orenburg/files/"; $dir_count="g/orenburg/banners/"; $city_for_files='Оренбург'; $city_for_files2='Оренбурга'; $cityphonecode='3532'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 77) {$dir="g/ulianovsk/files/"; $dir_count="g/ulianovsk/banners/"; $city_for_files='Ульяновск'; $city_for_files2='Ульяновска'; $cityphonecode='8422'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 78) {$dir="g/stupino/files/"; $dir_count="g/stupino/banners/"; $city_for_files='Ступино'; $city_for_files2='Ступино'; $cityphonecode='264'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 79) {$dir="g/abakan/files/"; $dir_count="g/abakan/banners/"; $city_for_files='Абакан'; $city_for_files2='Абакана'; $cityphonecode='39022'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 80) {$dir="g/ozersk/files/"; $dir_count="g/ozersk/banners/"; $city_for_files='Озерск'; $city_for_files2='Озерска'; $cityphonecode='35130'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 71) {$dir="g/tbilisi/files/"; $dir_count="g/tbilisi/banners/"; $city_for_files='Тбилиси'; $city_for_files2='Тбилиси'; $cityphonecode='32'; $countryphonecode='Грузии - 7';}
elseif ($_GET[g] == 72) {$dir="g/vilnus/files/"; $dir_count="g/vilnus/banners/"; $city_for_files='Вильнюс'; $city_for_files2='Вильнюса'; $cityphonecode='5'; $countryphonecode='Литвы - 370';}
elseif ($_GET[g] == 81) {$dir="g/kungur/files/"; $dir_count="g/kungur/banners/"; $city_for_files='Кунгур'; $city_for_files2='Кунгура'; $cityphonecode='34271'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 82) {$dir="g/sochi/files/"; $dir_count="g/sochi/banners/"; $city_for_files='Сочи'; $city_for_files2='Сочи'; $cityphonecode='8622'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 83) {$dir="g/magadan/files/"; $dir_count="g/magadan/banners/"; $city_for_files='Магадан'; $city_for_files2='Магадана'; $cityphonecode='4132'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 84) {$dir="g/gai/files/"; $dir_count="g/gai/banners/"; $city_for_files='Гай'; $city_for_files2='Гай'; $cityphonecode='35362'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 85) {$dir="g/kasimov/files/"; $dir_count="g/kasimov/banners/"; $city_for_files='Касимов'; $city_for_files2='Касимова'; $cityphonecode='49131'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 86) {$dir="g/berdsk/files/"; $dir_count="g/berdsk/banners/"; $city_for_files='Бердск'; $city_for_files2='Бердска'; $cityphonecode='38341'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 87) {$dir="g/armavir/files/"; $dir_count="g/armavir/banners/"; $city_for_files='Армавир'; $city_for_files2='Армавира'; $cityphonecode='86137'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 88) {$dir="g/staroskol/files/"; $dir_count="g/staroskol/banners/"; $city_for_files='Старый Оскол'; $city_for_files2='Старый Оскол'; $cityphonecode='4725'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 89) {$dir="g/salavat/files/"; $dir_count="g/salavat/banners/"; $city_for_files='Салават'; $city_for_files2='Салавата'; $cityphonecode='34763'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 90) {$dir="g/mendeleevsk/files/"; $dir_count="g/mendeleevsk/banners/"; $city_for_files='Менделеевск'; $city_for_files2='Менделеевска'; $cityphonecode='85549'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 91) {$dir="g/omsk/files/"; $dir_count="g/omsk/banners/"; $city_for_files='Омск'; $city_for_files2='Омска'; $cityphonecode='3812'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 92) {$dir="g/velikii novgorod/files/"; $dir_count="g/velikii novgorod/banners/"; $city_for_files='Великий Новгород'; $city_for_files2='Великого Новгорода'; $cityphonecode='8162'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 93) {$dir="g/astana/files/"; $dir_count="g/astana/banners/"; $city_for_files='Астана'; $city_for_files2='Астаны'; $cityphonecode='3172'; $countryphonecode='Казахстана - 7';}
elseif ($_GET[g] == 94) {$dir="g/yakutsk/files/"; $dir_count="g/yakutsk/banners/"; $city_for_files='Якутск'; $city_for_files2='Якутска'; $cityphonecode='4112'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 95) {$dir="g/kazan/files/"; $dir_count="g/kazan/banners/"; $city_for_files='Казань'; $city_for_files2='Казани'; $cityphonecode='843'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 96) {$dir="g/iokshar/files/"; $dir_count="g/iokshar/banners/"; $city_for_files='Йошкар-Ола'; $city_for_files2='Йошкар-Ола'; $cityphonecode='8362'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 97) {$dir="g/bogota/files/"; $dir_count="g/bogota/banners/"; $city_for_files='Богота'; $city_for_files2='Богота'; $cityphonecode='1'; $countryphonecode='Колумбии - 57';}
elseif ($_GET[g] == 98) {$dir="g/zlatoust/files/"; $dir_count="g/zlatoust/banners/"; $city_for_files='Златоуст'; $city_for_files2='Златоуста'; $cityphonecode='1'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 99) {$dir="g/kishtim/files/"; $dir_count="g/kishtim/banners/"; $city_for_files='Кыштым'; $city_for_files2='Кыштыма'; $cityphonecode='35151'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 100) {$dir="g/perm/files/"; $dir_count="g/perm/banners/"; $city_for_files='Пермь'; $city_for_files2='Перми'; $cityphonecode='342'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 101) {$dir="g/chelyabinsk/files/"; $dir_count="g/chelyabinsk/banners/"; $city_for_files='Челябинск'; $city_for_files2='Челябинска'; $cityphonecode='342'; $countryphonecode='России - 7';}
это надо прочувствовать, поэтому вставляю полностью
guest,
21 Января 2009
-
+18.7
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
$path = "a/b/c/d";
$sections = array_reverse (explode ("/", $path));
$sql = "SELECT `t1`.`id` FROM ";
for ($i = 1; $i <= count ($sections); $i ++)
$from_tables[] = "`test` `t".$i."`";
$sql = $sql.implode (", ", $from_tables);
$sql .= " WHERE ";
for ($i = 1; $i < count ($sections); $i ++)
$sql .= "`t".$i."`.`parent_id` = `t".($i+1)."`.`id` AND `t".$i."`.`name` = '".$sections[$i-1]."' AND";
$sql .= " `t".count ($sections)."`.`parent_id` = '0' AND `t".count ($sections)."`.`name` = '".$sections[count($sections)-1]."'";
echo $sql;
guest,
20 Января 2009
-
+22
- 1
- 2
- 3
set_include_path('.'.PATH_SEPARATOR . './library'
.PATH_SEPARATOR.'./application/models/'
.PATH_SEPARATOR.get_include_path());
"Так и не смог я в тот вечер понять..." что имел в виду автор. Он, видимо, и сам не понял, поэтому сунул библиотеки зенда в несколько папок...
guest,
20 Января 2009
-
+32.2
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
if ($content->num_of_subscribers == 1)
{
$icon_num = getExternalThemeFile("media/babble1-blue.png");
}
if ($content->num_of_subscribers == 2)
{
$icon_num = getExternalThemeFile("media/babble2-blue.png");
}
if ($content->num_of_subscribers == 3)
{
$icon_num = getExternalThemeFile("media/babble3-blue.png");
}
if ($content->num_of_subscribers == 4)
{
$icon_num = getExternalThemeFile("media/babble4-blue.png");
}
if ($content->num_of_subscribers == 5)
{
$icon_num = getExternalThemeFile("media/babble5-blue.png");
}
if ($content->num_of_subscribers == 6)
{
$icon_num = getExternalThemeFile("media/babble6-blue.png");
}
if ($content->num_of_subscribers == 7)
{
$icon_num = getExternalThemeFile("media/babble7-blue.png");
}
if ($content->num_of_subscribers == 8)
{
$icon_num = getExternalThemeFile("media/babble8-blue.png");
}
if ($content->num_of_subscribers == 9)
{
$icon_num = getExternalThemeFile("media/babble9-blue.png");
}
if ($content->num_of_subscribers == 10)
{
$icon_num = getExternalThemeFile("media/babble10-blue.png");
}
if ($content->num_of_subscribers > 10)
{
$icon_num = getExternalThemeFile("media/babble11-blue.png");
}
И ведь не лень было копи-пэстить, а потом и цифорки менять :)
guest,
19 Января 2009
-
+28
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
/*
пройдя голосование пользователь переходит на такую страничку
/voted.html?how=bae60998ffe4923b131e3d6e4c19993e&key=
а ниже обработчик этой страницы
*/
if ($_GET['how'] == md5('bad')) {
$msg['msg'] = "<h1>You have already voted!</h1>";
$msg['coupon'] = "Your 5% discount coupon is <font color=red>".$voteSys->getUsedCoupon($_GET['key'])."</font>";
$msg['coupon_link'] = '<a style="border: red;" href="'.$site_url.'/order.htm?coupon='.$voteSys->getUsedCoupon($_GET['key']).'"><h1>You can use your 5% discount NOW!</h1></a>';
}
elseif ($_GET['how'] == md5('good')) {
if ($voteSys->isValidKeyWithCoupon($_GET['key'])) {
$msg['msg'] = " Thank you for completing this questionnaire, <br>you opinion is very important to us!";
А наших программистов не учили пользоваться СЕССИЯМи !!
guest,
19 Января 2009
-
+23
Кусочек из одного похек скрипта
guest,
19 Января 2009
-
+34.2
- 1
- 2
- 3
- 4
$this->errorMessage .= str_replace("#CHAR#", $sourceString[$i], "Can not find maching char \"#CHAR#\" in destination encoding table.");
<skip>
if(substr($str, 0, 5)=="<?"."php")
<skip>
Встретилось тут в битриксе 6.какой-то версии.
Мысли по первой строке: "а что такое конкатенация, мы не знаем 0_о"...
По второй: "а, не, что это такое мы знаем, только вот зачем это надо, не знаем".
А вы говорите, 1с...
guest,
16 Января 2009
-
+34.2
- 1
- 2
- 3
if (preg_match("/^([zZ][aA]|[зЗ][аА])$/", $text)) {
//za
} elseif (preg_match("/^([pP][rR][oO][tT][iI][vV]|[пП][рР][оО][тТ]][иИ][вВ])$/", $text)){
Составил кто-то регулярку на проверку в сообщении слов за/za, против/protiv
Обратите внимание как элегантно решена проблемма регистра символов
guest,
16 Января 2009
-
+28
- 1
- 2
- 3
- 4
- 5
- 6
- 7
if (0) {
?>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr> .... . ...
Фрагментик из крелоада(CRELoaded).
Жёсткая дискретная логика!
guest,
16 Января 2009