Advertisement
plas71k

@mizrakbo => adminpaneli => decoded

Mar 24th, 2013
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 10.34 KB | None | 0 0
  1. <?php
  2. /*
  3. * @ Pirate-Sky Crew :: IonCube 7 Decoder
  4. * @ Author: pLa$71k
  5. * @ Web: http://pirate-sky.com
  6. * @ Pirate-Sky Crew © 2008 - 2013
  7. */
  8.  
  9. function wp_ayesoft_menu()
  10. {
  11.     add_menu_page(__('ayesoft film v2', 'ayesoft'), __('ayesoft film v2', 'ayesoft'), 6, basename(__FILE__), 'wp_ayesoft_admin', get_bloginfo('template_url') . '/images/adminpaneli.png');
  12.     add_submenu_page(basename(__FILE__), __('ayesoft Ayarlar', 'ayesoft'), __('ayesoft Ayarlar', 'ayesoft'), 6, basename(__FILE__), 'wp_ayesoft_admin');
  13. }
  14.  
  15. function wp_ayesoft_admin_css()
  16. {
  17.     echo '
  18.    ';
  19. }
  20.  
  21. function wp_ayesoft_admin()
  22. {
  23.     global $ayesoft_options;
  24.    
  25.     if ($_POST['save_ayesoft_options']) {
  26.         foreach ($ayesoft_options as $section) {
  27.             foreach ($section[1] as $option) {
  28.                 update_option($option[0], stripslashes($_POST[$option[0]]));
  29.             }
  30.         }
  31.        
  32.         echo '<div id="message" class="updated fade"><p><strong>' . __('Ayarlarınız kaydedildi :)', 'ayesoft') . '</strong></p></div>';
  33.     }
  34.    
  35.     echo '
  36.    <div class="wrap">
  37.        <h2>';
  38.     _e('ayesoft Film Teması Yönetim Paneli', 'ayesoft');
  39.     echo '</h2>
  40.        <form method="post" action="admin.php?page=adminpaneli.php" id="ayesoft_form">
  41.            ';
  42.     foreach ($ayesoft_options as $section) {
  43.         echo '<h3>' . $section[0] . '</h3><div class="ayesoft_section"><table cellspacing="0" cellpadding="0" class="form-table">';
  44.         foreach ($section[1] as $option) {
  45.             echo '<tr valign="top">';
  46.             echo '<th><label for="' . $option[0] . '">' . $option[2] . '</label></th><td>';
  47.            
  48.             if ($option[4] == 'yesno') {
  49.                 $yes = '';
  50.                 $no  = '';
  51.                
  52.                 if (get_option($option[0]) == 'yes') {
  53.                     $yes = 'selected="selected"';
  54.                 } else {
  55.                     $no = 'selected="selected"';
  56.                 }
  57.                
  58.                 echo '<select name="' . $option[0] . '">
  59.                            <option value="yes" ' . $yes . '>' . __('Evet', 'ayesoft') . '</option>
  60.                            <option value="no" ' . $no . '>' . __('Hayır', 'ayesoft') . '</option>
  61.                        </select>';
  62.             } else {
  63.                 if ($option[4] == 'textarea') {
  64.                     echo '<textarea id="' . $option[0] . '" name="' . $option[0] . '" cols="40" rows="4">' . get_option($option[0]) . '</textarea>';
  65.                 } else {
  66.                     if ($option[4] == 'select_options') {
  67.                         $selected = '';
  68.                         echo '<select name="' . $option[0] . '">';
  69.                         $names    = explode('|', $option[5]);
  70.                         $values   = explode('|', $option[6]);
  71.                         $selected = get_option($option[0]);
  72.                         $loop     = 14;
  73.                        
  74.                         if ($names) {
  75.                             foreach ($names as $name) {
  76.                                 echo '<option value="' . $values[$loop] . '" ';
  77.                                
  78.                                 if ($selected == $values[$loop]) {
  79.                                     echo 'selected="selected"';
  80.                                 }
  81.                                
  82.                                 echo '>' . $name . '</option>';
  83.                                 ++$loop;
  84.                             }
  85.                         }
  86.                        
  87.                         echo '</select>';
  88.                     } else {
  89.                         echo '<input type="text" id="' . $option[0] . '" name="' . $option[0] . '" size="50" value="' . get_option($option[0]) . '" />';
  90.                     }
  91.                 }
  92.             }
  93.            
  94.            
  95.             if ($option[3]) {
  96.                 echo '<br/><span class="setting-description">' . $option[3] . '</span>';
  97.             }
  98.            
  99.             echo '</td></tr>';
  100.         }
  101.        
  102.         echo '</table></div><br class="clear" />';
  103.     }
  104.    
  105.     echo '            <p class="submit" style="text-align:right"><input type="submit" value="';
  106.     _e('Kaydet', 'ayesoft');
  107.     echo '" name="save_ayesoft_options" /></p>
  108.        </form>
  109.    </div>
  110.  
  111.    ';
  112. }
  113.  
  114. add_action('admin_menu', 'wp_ayesoft_menu');
  115. $ayesoft_options = array(
  116.     array(
  117.         __('Tema Kullanım Ayarları', 'ayesoft'),
  118.         array(
  119.             array(
  120.                 'logo',
  121.                 __('http://www.siteadresi.com/logo.png', 'ayesoft'),
  122.                 __('Logo Adresiniz', 'ayesoft'),
  123.                 '',
  124.                 ''
  125.             ),
  126.             array(
  127.                 'bgurl',
  128.                 __('', 'ayesoft'),
  129.                 __('Arka Plan Resmi', 'ayesoft'),
  130.                 'Default Ayarları Kullanmak İçin Boş Bırakınız',
  131.                 ''
  132.             ),
  133.             array(
  134.                 'bgcl',
  135.                 __('', 'ayesoft'),
  136.                 __('Arka Plan Rengi ', 'ayesoft'),
  137.                 'Arkaplan Resmi Kullanmak İstemiyorsanız Bu Alanı Doldurunuz. Default Ayarları Kullanmak İçin Boş Bırakınız - Örn : 333333',
  138.                 ''
  139.             ),
  140.             array(
  141.                 'yerli',
  142.                 __('0', 'ayesoft'),
  143.                 __('Yerli Film Kategori ID', 'ayesoft'),
  144.                 '',
  145.                 ''
  146.             ),
  147.             array(
  148.                 'yabanci',
  149.                 __('0', 'ayesoft'),
  150.                 __('Yabancı Film Kategori ID', 'ayesoft'),
  151.                 '',
  152.                 ''
  153.             )
  154.         )
  155.     ),
  156.     array(
  157.         __('Reklam Kutusu', 'ayesoft'),
  158.         array(
  159.             array(
  160.                 'enable_reklamkutusu',
  161.                 'no',
  162.                 __('Film Öncesi Reklam', 'ayesoft'),
  163.                 __('Video Öncesi Reklam Aktif Olsun mu?', 'ayesoft'),
  164.                 'yesno'
  165.             ),
  166.             array(
  167.                 'videooncesi',
  168.                 __('', 'ayesoft'),
  169.                 __('Film Öncesi Reklam Kodlarınız', 'ayesoft'),
  170.                 '',
  171.                 'textarea'
  172.             ),
  173.             array(
  174.                 'videoalti',
  175.                 __('', 'ayesoft'),
  176.                 __('Video Altı Reklam Kodlarınız', 'ayesoft'),
  177.                 '',
  178.                 'textarea'
  179.             ),
  180.             array(
  181.                 'ustbanner',
  182.                 __('', 'ayesoft'),
  183.                 __('Üst Reklam Kodunuz:', 'ayesoft'),
  184.                 __('Banner alanında gösterilecek 468 x 60 reklam kodunuzu ekleyin.', 'ayesoft'),
  185.                 'textarea'
  186.             ),
  187.             array(
  188.                 'reklamsidebar',
  189.                 __('', 'ayesoft'),
  190.                 __('250-250 Sidebar Reklam Kodunuz:', 'ayesoft'),
  191.                 __('Sidebar 250 x 250 reklam kodunuzu buraya ekleyin.', 'ayesoft'),
  192.                 'textarea'
  193.             )
  194.         )
  195.     ),
  196.     array(
  197.         __('Özel Alan Ayarları', 'ayesoft'),
  198.         array(
  199.             array(
  200.                 'resim',
  201.                 __('resim', 'ayesoft'),
  202.                 __('Resim Özel Alanı', 'ayesoft'),
  203.                 '',
  204.                 ''
  205.             ),
  206.             array(
  207.                 'resimdefault',
  208.                 __('http://www.siteadresiniz.com/default.jpg', 'ayesoft'),
  209.                 __('Default Resim', 'ayesoft'),
  210.                 __('Resim Özel Alanını Boş Bıraktığınızda Görünecek Resim URL Adresi.', 'ayesoft'),
  211.                 ''
  212.             ),
  213.             array(
  214.                 'tur',
  215.                 __('tur', 'ayesoft'),
  216.                 __('Dublaj Özel Alanı', 'ayesoft'),
  217.                 '',
  218.                 ''
  219.             ),
  220.             array(
  221.                 'turdefault',
  222.                 __('td', 'ayesoft'),
  223.                 __('Default Dublaj', 'ayesoft'),
  224.                 __('Dublaj Özel Alanını Boş Bıraktığınızda Otomatik Olarak Seçilecek Tür.', 'ayesoft'),
  225.                 ''
  226.             ),
  227.             array(
  228.                 'coz',
  229.                 __('coz', 'ayesoft'),
  230.                 __('Kalite Özel Alanı', 'ayesoft'),
  231.                 '',
  232.                 ''
  233.             ),
  234.             array(
  235.                 'cozdefault',
  236.                 __('360', 'ayesoft'),
  237.                 __('Default Kalite', 'ayesoft'),
  238.                 __('Kalite Özel Alanını Boş Bıraktığınızda Otomatik Olarak Seçilecek Tür..', 'ayesoft'),
  239.                 ''
  240.             ),
  241.             array(
  242.                 'aciklama',
  243.                 __('aciklama', 'ayesoft'),
  244.                 __('Açıklama Özel Alanı', 'ayesoft'),
  245.                 '',
  246.                 ''
  247.             )
  248.         )
  249.     ),
  250.     array(
  251.         __('Sosyal Paylaşım', 'ayesoft'),
  252.         array(
  253.             array(
  254.                 'facebook',
  255.                 __('', 'ayesoft'),
  256.                 __('Facebook Sayfa Adresiniz', 'ayesoft'),
  257.                 '',
  258.                 ''
  259.             ),
  260.             array(
  261.                 'twitter',
  262.                 __('', 'ayesoft'),
  263.                 __('Twitter Sayfa Adresiniz', 'ayesoft'),
  264.                 '',
  265.                 ''
  266.             ),
  267.             array(
  268.                 'google',
  269.                 __('', 'ayesoft'),
  270.                 __('Google Plus Sayfa Adresiniz', 'ayesoft'),
  271.                 '',
  272.                 ''
  273.             )
  274.         )
  275.     ),
  276.     array(
  277.         __('Footer Ayarları', 'ayesoft'),
  278.         array(
  279.             array(
  280.                 'copyright',
  281.                 __('', 'ayesoft'),
  282.                 __('Footer Açıklama:', 'ayesoft'),
  283.                 __('Footer Sol Açıklama Alanı.', 'ayesoft'),
  284.                 'textarea'
  285.             ),
  286.             array(
  287.                 'facesayfa',
  288.                 __('', 'ayesoft'),
  289.                 __('Facebook Sayfa:', 'ayesoft'),
  290.                 __('Facebook Sayfa Adresiniz', 'ayesoft'),
  291.                 ''
  292.             ),
  293.             array(
  294.                 'sayac',
  295.                 __('', 'ayesoft'),
  296.                 __('Sayaç:', 'ayesoft'),
  297.                 __('Footer Sağ Sosyal Buton Altı Alan.', 'ayesoft'),
  298.                 'textarea'
  299.             )
  300.         )
  301.     )
  302. );
  303. foreach ($ayesoft_options as $section) {
  304.     foreach ($section[1] as $option) {
  305.         add_option($option[0], $option[1]);
  306.     }
  307. }
  308.  
  309. add_action('admin_head', 'wp_ayesoft_admin_css');
  310. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement