Advertisement
Guest User

Untitled

a guest
Apr 28th, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function MyBrand() {
  15. global $page_member_id;
  16. global $tablepre;
  17. global $db;
  18.  
  19. $mm_brand = array( );
  20. $q = $db->query( 'SELECT id,brandname FROM `' . $tablepre . 'brand_table` WHERE isCheck=\'1\' OR supplier_id=\'' . $page_member_id . '\' ORDER BY `id` DESC' );
  21.  
  22. while ($rt = $db->fetch_array( $q )) {
  23. $mm_brand[0] = '--';
  24. $mm_brand[$rt['id']] = $rt['brandname'];
  25. }
  26.  
  27. return $mm_brand;
  28. }
  29.  
  30. define( 'MVMMALL_SCR', 'index' );
  31. require_once( 'include/common.inc.php' );
  32. require_once( MVMMALL_ROOT . 'header.php' );
  33.  
  34. if (in_array( $action, array( 'list', 'uplist', 'downlist' ) )) {
  35. require_once( MVMMALL_ROOT . './include/pager.class.php' );
  36. $search_sql = 'WHERE `supplier_id`=\'' . $page_member_id . '\' ';
  37.  
  38. if ($action == 'uplist') {
  39. $search_sql .= ' AND upv=\'1\'';
  40. }
  41. ....................................................................
  42. ................................
  43. .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement