gn="justify"> $ resultArr= raquo ;;;
}; search :
$ resultArr= raquo ;;; poster : ($ link!= ) {
$ catInfo=getCurrentCategoryInfo ($ link);
$ resultArr=$ catInfo [ header ];
};
}
$ result=$ resultArr;
$ result;
} add_recently_watch ($ poster_id) {(! empty ($ _COOKIE [ recently ])) {
$ next_step=count ($ _COOKIE [ recently ]); (! in_array ($ poster_id, $ _COOKIE [ recently ])) {( recently [$ next_step] raquo ;, $ poster_id, time () + 360000000, /);
}
} {( recently [0] raquo ;, $ poster_id, time () + 360000000, /);
}
} addMesage ($ status, $ text) {
$ classMessage=$ status;
$ _ SESSION [ service_message ]=" lt; div gt;
} writeMessage () {$ _SESSION [ service_message ];
$ _ SESSION [ service_message ]= raquo ;;
} currentEmail ($ email) {true;
}
? gt ;. php:
lt ;? php
$ config=array (
css = gt; array (
style. css ,
main_banner. css ,
content_page. css ,
jquery. lightbox - 0.5. css ,
cart. css
),
js = gt; array (
jquery. js ,
jquery. cookie. js ,
horizontal_slider. js ,
main. js ,
jquery. lightbox - 0.5. js ,
cart. js
),
);
$ dbConfig=array (
user = gt; root ,
password = gt; 11051988 ,
db_host = gt; localhost ,
db_base = gt; posters
);
? gt;
_connect. php:
lt ;? php
$ connect=mysql_connect ($ dbConfig [ db_host ], $ dbConfig [ user ], $ dbConfig [ password ]) die ( Could not connect: . mysql_error ()); _ select_db ($ dbConfig [ db_base ]) die ( Could not select database: raquo ;. mysql_error ()); _ query ( SET NAMES UTF8 );
? gt ;. php:
lt ;? php
/* get or post value */
$ reqLink=$ _GET [ link ];
$ reqId=$ _GET [ id ];
$ reqImageId=$ _GET [ image_id ];
$ type=$ _GET [ type ];
$ action=$ _GET [ action ]; (empty ($ action)) {
$ action=$ _POST [ action ];
}
$ lastURL=$ _SERVER [ HTTP_REFERER ];
$ delete_action=$ _POST [ delete_poster ];
$ request_action=$ _POST [ submit ];
/* basic value */
$ allCatSubIdLink=AllCatSubIdLink ();
$ currentYear=getCurrentYear ();
$ styles=createCssStylesTags ($ config [ css ]);
$ scripts=createJSTags ($ config [ js ]);
$ template=getTemplate ($ _GET [ template ]);
$ allCategoryList=getAllCategoriesAlphabetical ();
$ recentlyWatchList=getRecentlyWatchPoster ($ allCatSubIdLink);
/* user */
$ userLogin=$ _POST [ email ];
$ userPassword=$ _POST [ password ];
$ userName=$ _POST [ name ];
$ userCity=$ _POST [ city ];
$ userPhone=$ _POST [ phone ];
$ statusMessage=new StatusMessage (true);
$ user=new Profile ($ statusMessage);
$ userInfo=$ user- gt; get_user_info ();
$ auth=$ userInfo [ auth ];
/**/($ template) { index :
$ bestSalePosterList=getBestSalePosterData ($ allCatSubIdLink);
/* sliders */
$ allCategorySlider=createHorizontalSlider ( 206x206 raquo ;, $ allCategoryList, main_slider );
$ recentlyWatchSlider=createHorizontalSlider ( 209x198 raquo ;, $ recentlyWatchList);