Advertisement
Guest User

Untitled

a guest
Sep 20th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for SourceGuardian & phpSHIELD)
  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. if (!defined( 'IN_CLIPBUCKET' )) {
  15. exit( 'Invalid access' );
  16. }
  17.  
  18. $premium_opts = array( );
  19.  
  20. if (!$_POST['make_premium']) {
  21. $checked = 'no';
  22. }
  23.  
  24.  
  25. if (has_access( 'allow_make_premium', true )) {
  26. $premium_opts['make_premium'] = array( 'title' => 'Make premium', 'id' => 'is_premium', 'name' => 'is_premium', 'type' => 'radiobutton', 'sep' => ' ', 'value' => array( 'no' => 'No', 'yes' => 'Yes', 'ppv' => 'PPV' ), 'extra_tags' => ' onclick="switchPremium(this)"', 'db_field' => 'is_premium' );
  27.  
  28. if ($checked) {
  29. $premium_opts['make_premium']['checked'] = $checked;
  30. }
  31.  
  32. $premium_opts['credits_required'] = array( 'title' => 'Credits required', 'id' => 'credits_required', 'name' => 'credits_required', 'type' => 'textfield', 'anchor_after' => 'credits_required_after', 'db_field' => 'credits_required' );
  33. $cpkgs = array( '' => '- Add video to premium-' );
  34. $pkgs = $paidSub->getPackages( array( 'is_collection' => 'yes' ) );
  35.  
  36. if ($pkgs) {
  37. foreach ($pkgs as $p) {
  38. $cpkgs[$p['package_id']] = $p['pkg_title'];
  39. }
  40. }
  41.  
  42.  
  43. if (BACK_END) {
  44. $premium_opts['premium_cid'] = array( 'title' => 'Premium collection', 'id' => 'premium_cid', 'name' => 'premium_cid', 'type' => 'dropdown', 'value' => $cpkgs, 'db_field' => 'premium_cid' );
  45. }
  46. ..............................................................................
  47. ................................................
  48. ....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement