|
From: OryNider <ory...@us...> - 2007-07-17 06:17:34
|
Update of /cvsroot/mxbb/mx_smartor/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11887 Modified Files: album_pic_nuffed.php Log Message: this will enable pic nuffed efects in the old personal gallery system ;) Index: album_pic_nuffed.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/includes/album_pic_nuffed.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** album_pic_nuffed.php 4 Jul 2007 15:49:32 -0000 1.2 --- album_pic_nuffed.php 17 Jul 2007 06:17:27 -0000 1.3 *************** *** 28,48 **** $phpEx = substr(strrchr(__FILE__, '.'), 1); - /* - if( $module_root_path = '' ) - { - $module_root_path = '../'; - $mx_root_path = $module_root_path . '../../'; - - include_once($mx_root_path . 'common.'.$phpEx); - - // - // Start session management - // - $mx_user->init($user_ip, PAGE_INDEX); - // - // End session management - // - } - */ define('ALBUM_MOD_PATH', 'album_mod/'); --- 28,31 ---- *************** *** 76,90 **** // Get this pic info and current category info // ------------------------------------ ! $sql = "SELECT p.*, c.* FROM ". ALBUM_TABLE ." AS p, ". ALBUM_CAT_TABLE ." AS c ! WHERE pic_id = '$pic_id' AND c.cat_id = p.pic_cat_id"; ! if( !$result = $db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql); } - $thispic = $db->sql_fetchrow($result); $db->sql_freeresult($result); --- 59,87 ---- // Get this pic info and current category info // ------------------------------------ ! if ($cat_id != PERSONAL_GALLERY) ! { ! $sql = "SELECT p.*, c.* FROM ". ALBUM_TABLE ." AS p, ". ALBUM_CAT_TABLE ." AS c ! WHERE p.pic_id = '$pic_id' AND c.cat_id = p.pic_cat_id"; ! if( !($result = $db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql); ! } ! $thispic = $db->sql_fetchrow($result); ! } ! else { ! $sql = "SELECT * ! FROM ". ALBUM_TABLE ." ! WHERE pic_id = '$pic_id'"; ! if( !($result = $db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql); ! } ! $thispic = $db->sql_fetchrow($result); } $db->sql_freeresult($result); |