Advertisement
i-Hmx

control_panel.php

Mar 9th, 2012
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.53 KB | None | 0 0
  1. <?php
  2. /*********************/
  3. /*                   */
  4. /*  Dezend for PHP5  */
  5. /*         NWS       */
  6. /*      Nulled.WS    */
  7. /*                   */
  8. /*********************/
  9.  
  10. $control_panel = 1;
  11. include( "API/config.php" );
  12. if ( isset( $_POST['language'] ) )
  13. {
  14.     unset( $_SESSION['language'] );
  15.     $_SESSION['language'] = $_POST['language'];
  16. }
  17. else if ( !isset( $_SESSION['language'] ) )
  18. {
  19.     $_SESSION['language'] = $default_language;
  20. }
  21. $language_extension = $_SESSION['language'];
  22. include( "API/config.php" );
  23. if ( $page_style )
  24. {
  25.     $joinperc = "%";
  26. }
  27. include( "templates/smarty/Smarty.class.php" );
  28. $Var_744->Smarty( );
  29. $smarty = $Var_744;
  30. $smarty->template_dir = $path."/templates";
  31. $smarty->compile_dir = $path."/cache";
  32. if ( isset( $_SESSION['valid_user'] ) )
  33. {
  34.     assign( "affiliateUsername", $_SESSION['valid_user'] );
  35. }
  36. assign( "language_type", $_SESSION['language'] );
  37. assign( "sitename", $sitename );
  38. assign( "localserver", $_SERVER['PHP_SELF'] );
  39. assign( "page_align", $page_align );
  40. assign( "panel_width", $panel_width );
  41. if ( isset( "joinperc" ) )
  42. {
  43.     assign( "joinperc", $joinperc );
  44. }
  45. assign( "page_border", $page_border );
  46. assign( "white_back", $white_back );
  47. assign( "lighter_cells", $lighter_cells );
  48. assign( "page_back", $page_back );
  49. assign( "cp_head_back", $cp_head_back );
  50. assign( "cp_foot_back", $cp_foot_back );
  51. assign( "top_bot_links", $top_bot_links );
  52. assign( "top_bot_text", $top_bot_text );
  53. assign( "alt_links", $alt_links );
  54. assign( "left_column", $left_column );
  55. assign( "table_top", $mid_cells );
  56. assign( "light_cells", $light_cells );
  57. assign( "logged_menu", $logged_menu );
  58. assign( "menu_links", $menu_links );
  59. assign( "dim_font", $dim_font );
  60. assign( "tag_color", $tag_color );
  61. assign( "section_head_txt", $section_head_txt );
  62. assign( "red_text", $red_text );
  63. assign( "page_links", $page_links );
  64. assign( "currency", $currency );
  65. assign( "cur_sym", $cur_sym );
  66. assign( "main_logo", $main_logo );
  67. assign( "header_title", $header_title );
  68. assign( "header_indexLink", $header_indexLink );
  69. assign( "header_signupLink", $header_signupLink );
  70. assign( "header_accountLink", $header_accountLink );
  71. assign( "header_emailLink", $header_emailLink );
  72. assign( "header_greeting", $header_greeting );
  73. assign( "header_nonLogged", $header_nonLogged );
  74. assign( "header_logout", $header_logout );
  75. assign( "index_table_sale", $index_table_sale );
  76. assign( "index_table_sale_text", $index_table_sale_text );
  77. assign( "index_table_click", $index_table_click );
  78. assign( "index_table_click_text", $index_table_click_text );
  79. if ( $idev_affiliate )
  80. {
  81.     assign( "affiliate_account", "/affiliates/idevaffiliate.php?id=".$idev_affiliate );
  82. }
  83. assign( "footer_tag", $footer_tag );
  84. assign( "footer_copyright", $footer_copyright );
  85. assign( "footer_rights", $footer_rights );
  86. assign( "page_bkg_image", $page_bkg_image );
  87. $getpackid = mysql_query( "select id from idevaff_language_packs where name = '{$language_extension}'" );
  88. $getpackid = mysql_fetch_array( $getpackid );
  89. $packid = $getpackid['id'];
  90. $gettokens = mysql_query( "select id, name from idevaff_language_custom" );
  91. while ( !mysql_num_rows( $gettokens ) || !( $qry = mysql_fetch_array( $gettokens ) ) )
  92. {
  93.     $token_id = $qry['id'];
  94.     $token_name = $qry['name'];
  95.     $getlang = mysql_query( "select pack_".$packid." as norm from idevaff_language_custom_values where id = {$token_id}" );
  96.     $newqry = mysql_fetch_array( $getlang );
  97.     $lang_item = html_entity_decode( nl2br( $newqry['norm'] ) );
  98.     assign( $token_name, $lang_item );
  99. }
  100. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement