,
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:». 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);
$ bestSalePosterSlider=createHorizontalSlider ( 165x150 raquo ;, $ bestSalePosterList);
/* handlist */
$ mainHandlist=createAlphabeticalList (createAllCategoryATagArray ($ allCategoryList), 5) ;; poster :
$ posterHandlist=createAlphabeticalList (createAllCategoryATagArray ($ allCategoryList), 2);
$ catInfo=getCurrentCategoryInfo ($ reqLink);
$ allPosterInCatArray=getAllPosterInCat ($ catInfo [ id ], $ catInfo [ link ]);
$ currentPosterInfo=getCurrentPosterInfo ($ reqId, $ allPosterInCatArray, $ catInfo [ link ]); _ recently_watch ($ currentPosterInfo [ id ]);
$ currentPosterSize=getCurrentPosterSize ($ currentPosterInfo [ id ], $ currentPosterInfo [ link ]);
$ currentPosterSizeI=getCurrentSizeI ($ currentPosterSize, $ reqImageId);
$ currentImage=createCurrentPosterImage ($ currentPosterSize [$ currentPosterSizeI] [ big_image ], $ currentPosterSize [$ currentPosterSizeI] [ image ]);
$ posterSizeBlock=createSizeChage ($ currentPosterSize, $ currentPosterSizeI);
/* sliders */
$ recentlyWatchSlider=createHorizontalSlider ( 140x110 raquo ;, $ recentlyWatchList);
$ allPosterInCatSlider=createHorizontalSlider ( 209x198 raquo ;, $ allPosterInCatArray, «, poster raquo ;, $ currentPosterInfo [ id ]) ;; content :
$ contentHandlist=cr...