DS. config. php raquo ;; _ once PATH_BASE. include raquo ;. DS. mysql_connect. php raquo ;;
/* classes */_ once PATH_BASE. adm raquo ;. DS. class raquo ;. DS. resize-class. php raquo ;; _ once PATH_BASE. include raquo ;. DS. classes raquo ;. DS. statusmessage. php raquo ;; _ once PATH_BASE. include raquo ;. DS. classes raquo ;. DS. profile. php raquo ;;
/* modules */_ once PATH_BASE. include raquo ;. DS. modules raquo ;. DS. content_function. php raquo ;; _ once PATH_BASE. include raquo ;. DS. modules raquo ;. DS. file_function. php raquo ;; _ once PATH_BASE. include raquo ;. DS. modules raquo ;. DS. html_tag_function. php raquo ;; _ once PATH_BASE. include raquo ;. DS. modules raquo ;. DS. basket_function. php raquo ;; _ once PATH_BASE. include raquo ;. DS. modules raquo ;. DS. search. php raquo ;; _ once PATH_BASE. include raquo ;. DS. values. php raquo ;;
/* header block */_ once template/page. php raquo ;;
? gt ;. php:
lt ;? php ( DS raquo ;, DIRECTORY_SEPARATOR); ( HOME_PAGE_LINK raquo ;, '# justify gt;/* base path */
$ basePath=explode (DS, dirname (__FILE __)); _ pop ($ basePath);
$ basePath=implode (DS, $ basePath). DS; ( PATH_BASE raquo ;, $ basePath);
? gt; _functions. php:
lt ;? phpgetCurrentYear () {date ( Y );
} addSuffixToNumerals ($ num, $ word, $ closure) {
$ one_num=last_int ($ num, 1);
$ two_num=last_int ($ num,
);
$ finalClose=$ closure [0]; ($ one_num gt;=2 amp; amp; $ one_num lt;=4) {
$ finalClose=$ closure [1];
} ($ one_num gt;=5 amp; amp; $ one_num lt;=9 || $ one_num == 0 || $ two_num gt;=10 amp; amp; $ two_num lt;= 20) {
$ finalClose=$ closure [2];
} $ word. $ finalClose;
} last_int ($ num, $ numSimbol) {
$ result=(int) substr ($ num, strlen ($ num) - $ numSimbol, strlen ($ num)); $ result;
} getValue ($ postValue, $ getValue) {_dump ($ postValue); _ dump ($ getValue);
} getTemplate ($ template) {($ template == ) {
$ tempTemplate= index raquo ;;
} ($ template == poster || $ template == content || $ template == basket || $ template == search || $ template == profile ) {
$ tempTemplate=$ template;
} $ tempTemplate;
} returnURL ($ href, $ type= ) {
$ resultURL=HOME_PAGE_LINK;
$ linkArr=array (); ($ type!= ) {
$ linkArr []=$ type;
} ($ href!= ) {
$ linkArr []=$ href;
} (count ($ linkArr) gt; 0) {
$ resultURL=implode (/ raquo ;, $ linkArr);
$ resultURL=HOME_PAGE_LINK. $ resultURL;
} $ resultURL;
} createBreadCrumb ($ template, $ link= raquo ;, $ posterName= raquo ;, $ type= ) {
$ resultArr=array ();
$ resultArr []=createATag ( lt; strong gt; lt;/strong gt; ); ($ template) { content : ($ type) { contact raquo ;:
$ resultArr []= lt; span gt; lt;/span gt; raquo ;;;
production :
$ resultArr []= lt; span gt; lt;/span gt; raquo ;;;
}; search :
$ resultArr []= lt; span gt; lt;/span gt; raquo ;;; poster : ($ link!= ) {
$ catInfo=getCurrentCategoryInfo ($ link); ($ posterName == ) {
$ resultArr []= lt; span gt; raquo ;. $ catInfo [ header ]. lt;/span gt; raquo ;;
} {
$ resultArr []=createATag ($ catInfo [ header ], $ catInfo [ link ], poster );
$ resultArr []= lt; span gt; # raquo ;. $ posterName. lt;/span gt; raquo ;;
}
};
}
$ result=implode ( lt; span gt;/ lt;/span gt; raquo ;, $ resultArr); $ result;
} createTitle ($ template, $ link= raquo ;, $ posterName= raquo ;, $ type= ) {
$ resultArr= raquo ;; ($ template) { content : ($ type) { contact :
$ resultArr= raquo ;;; production :