Ignore:
Timestamp:
Feb 27, 2013, 8:37:57 PM (11 years ago)
Author:
flop25
Message:

removed the option for PWG stuffs
added an explicative texte
added new lang key for the PWG Stuff module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/adult_content/admin/admin.php

    r21047 r21057  
    1616  $newconf_plugin=array();
    1717        $newconf_plugin['menublock_for_guest'] = (isset($_POST['menublock_for_guest'])) ? true : false;
    18         $newconf_plugin['block_on_index'] = (isset($_POST['block_on_index'])) ? true : false;
    1918        $newconf_plugin['manage_what'] = (isset($_POST['manage_what'])) ? $_POST['manage_what'] : 'both';
    2019        $query = '
     
    3332$check='checked="checked"';
    3433if ($conf_ad_c['menublock_for_guest']=='true') { $menublock=$check; } else { $menublock=NULL; }
    35 if ($conf_ad_c['block_on_index']=='true') { $index=$check; } else { $index=NULL; }
    36 $disabled='disabled="disabled"';
    37         $template->assign(
    38                 array(
    39                   'AD_C_manage_what' => $conf_ad_c['manage_what'],
    40                   'AD_C_menublock_for_guest' => $menublock,
    41                   'AD_C_block_on_index' => $index,
    42                   'AD_C_block_on_index_disabled' => $disabled,
    43                   'AD_C_LANG' => $user['language'],
    44                 )
    45           );
     34$template->assign(
     35  array(
     36    'AD_C_manage_what' => $conf_ad_c['manage_what'],
     37    'AD_C_menublock_for_guest' => $menublock,
     38    'AD_C_LANG' => $user['language'],
     39  )
     40  );
     41
     42
    4643$template->set_filename('plugin_admin_content', $ad_c->plugin_path.'admin/admin.tpl');
    4744$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
Note: See TracChangeset for help on using the changeset viewer.