Ignore:
Timestamp:
Nov 14, 2011, 6:59:29 PM (12 years ago)
Author:
flop25
Message:

new option : choice of manage 16 and/or 18+
language files updated : new keys to translate and English key instead of French

Location:
extensions/adult_content/admin
Files:
2 edited

Legend:

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

    r9542 r12621  
    1616        $newconf_plugin = (isset($_POST['menublock_for_guest'])) ? 'true' : 'false';
    1717        $newconf_plugin .= (isset($_POST['block_on_index'])) ? ',true' : ',false';
     18        $newconf_plugin .= (isset($_POST['manage_what'])) ? ','.$_POST['manage_what'] : ',both';
    1819        //$newconf_plugin = implode ("," , $newconf_plugin);
    1920        $query = '
     
    3637        $template->assign(
    3738                array(
     39                  'AD_C_manage_what' => $conf_ad_c[2],
    3840                  'AD_C_menublock_for_guest' => $menublock,
    3941                  'AD_C_block_on_index' => $index,
  • extensions/adult_content/admin/admin.tpl

    r9558 r12621  
    1515    {'ad_c_block_on_index_error'|@translate} <br />
    1616    <br />
     17    <span class="property">{'ad_c_manage_what'|@translate}</span>&nbsp;
     18    <select name="manage_what" style="min-width:150px;">
     19      <option value="16" {if ($AD_C_manage_what=="16")}selected{/if}>{'ad_c_manage_eroticonly'|@translate}</option>
     20      <option value="18" {if ($AD_C_manage_what=="18")}selected{/if}>{'ad_c_manage_pornonly'|@translate}</option>
     21      <option value="both" {if ($AD_C_manage_what=="both")}selected{/if}>{'ad_c_manage_both'|@translate}</option>
     22    </select>
     23    <br />
    1724    <input type="submit" name="option_ad_c" id="button" value="{'ad_c_send'|@translate}" />
    1825  </form>
Note: See TracChangeset for help on using the changeset viewer.