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
Files:
14 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>
  • extensions/adult_content/charte.php

    r9557 r12621  
    2121$template->assign(
    2222  array(
    23     'PLUGIN_NAME' => $adult_content->plugin_name
     23    'PLUGIN_NAME' => $adult_content->plugin_name,
     24    'AD_C_manage_what' => $conf_ad_c[2],
    2425    ));
    25 
    2626$template->set_filename('controller', $adult_content->plugin_path.'include/charte.tpl');
    2727
  • extensions/adult_content/charte_user.php

    r9565 r12621  
    22define('PHPWG_ROOT_PATH','../../');
    33include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
     4$conf_ad_c = explode("," , $conf['ad_c_plugin']);
    45$adult_content = get_plugin_data('adult_content');
    56if ( is_a_guest() or $user['username'] == '16' or $user['username'] == '18')
     
    7475                }
    7576         
    76      $main = '<p>'.$statut.'</p>'
     77    $main = '<p>'.$statut.'</p>'
    7778                .'<p><a href="javascript:void(0)" OnClick="history.back()" >'.$lang['ac_retour_c'].'</a></p>';
    78        $template->assign(
    79          array(
    80            'EXPLIC' => $lang['ac_def'],
    81            'MAIN'  => $main,
    82             )
    83          );
     79    $template->assign(
     80    array(
     81      'EXPLIC' => $lang['ac_def'],
     82      'MAIN'  => $main,
     83    )
     84    );
    8485   }
     86    $template->assign(
     87    array(
     88      'AD_C_manage_what' => $conf_ad_c[2],
     89    )
     90    );
    8591
    8692   $template->set_filename('charte', $adult_content->plugin_path.'include/charte_user.tpl');
  • extensions/adult_content/include/charte.tpl

    r9626 r12621  
    88
    99
     10{if $AD_C_manage_what=="18" || $AD_C_manage_what=="both"}
    1011<fieldset>
    1112<form method="post" action="{$ROOT_URL}identification.php" >
     
    1718</form>
    1819</fieldset>
     20{/if}
     21{if $AD_C_manage_what=="16" || $AD_C_manage_what=="both"}
    1922<fieldset>
    2023<form method="post" action="{$ROOT_URL}identification.php" id="quickconnect">
     
    2528</form>
    2629</fieldset>
     30{/if}
    2731<fieldset>
    2832        <div align="center">
  • extensions/adult_content/include/charte_user.tpl

    r9626 r12621  
    1010    <p>{$EXPLIC}</p>
    1111    <p>{$MAIN}</p>
     12    {if $AD_C_manage_what=="18" || $AD_C_manage_what=="both"}
    1213    <fieldset>
    1314      <form method="post" action="{$pwg_root}charte_user.php" >
     
    1718      </form>
    1819    </fieldset>
     20    {/if}
     21    {if $AD_C_manage_what=="16" || $AD_C_manage_what=="both"}
    1922    <fieldset>
    2023      <form method="post" action="{$pwg_root}charte_user.php">
     
    2427      </form>
    2528    </fieldset>
     29    {/if}
    2630    <fieldset>
    2731      <form method="post" action="{$pwg_root}charte_user.php">
  • extensions/adult_content/language/cs_CZ/plugin.lang.php

    r9558 r12621  
    4242/*TODO*/$lang['ad_c_block_on_index_error_2'] = 'The minimum PWG_Stuffs version required is 2.1.l';
    4343/*TODO*/$lang['ad_c_block_on_index_error'] = 'Not available for now';
     44/*TODO*/$lang['ad_c_manage_what'] = 'Select the type of content the plugin should manage :';
     45/*TODO*/$lang['ad_c_manage_eroticonly'] = 'erotic content only';
     46/*TODO*/$lang['ad_c_manage_pornonly'] = 'pornographic content only';
     47/*TODO*/$lang['ad_c_manage_both'] = 'erotic and pornographic content';
     48
    4449/*TODO*/$lang['ad_c_send'] = 'Save Changes';
    4550/*TODO*/$lang['ad_c_msg_admin_1'] = 'Plugin configuration updated successfully!';
    46 /*TODO*/$lang['ad_c_howitworks'] = 'Le principe du plugin est d\'aider à la gestion de contenus matures (il peut être adapté pour du contenu violent). Pour se faire, le plugin gère les visiteurs et/ou les utilisateurs (au choix selon votre paramétrage du plugin).<br />
     51/*TODO*/$lang['ad_c_howitworks'] = "The principle of the plugin is to help in the management of mature content (it can also be
     52
     53adapted for violent content). To do this, the plugin manages the visitors and/or the users
     54
     55as you wish according to your definition of parameters of the plugin.<br />
    4756<br />
    48 1 - Que devez-vous faire en tant qu\'admistrateur<br />
     571 - As administrator you must put your adult content in a private gallery or album (the
     58
     59plugin does not manage the rights to the level of images itself, at least not yet). Then
     60
     61assign the gallery or album to the two groups '18' and ' 16-17' (created by the plugin)
     62
     63like this:<br /><br />
     64
     65-allow the group '18' to see the adult content, reserved for users over the of age of 18
     66
     67and normal content (but generally the normal content is often public)
     68<br /><br />
     69-allow the group ' 16-17' to see the adult content reserved for users over the age of 16
     70
     71and normal content (generally the normal content is often public)
     72<br /><br />
     73- the 'nothing' group will see the normal content (but generally the normal content is
     74
     75often public)
    4976<br />
    50 Vous devez juste mettre vos catégories litigieuse en privé (le plugin ne gère pas les droits au niveau des images elle-même, du moins pas encore).<br />
    51 Ensuite attribuer ces galeries privées aux deux groupes "+18" et "16-17" (créés par le plugin) comme ceci :<br />
    52  - autoriser le groupe "+18" à voir le contenu pornographique ou autre, réservé aux plus de 18 ans ET le contenu érotique, réservé aux plus de 16 ans ET le contenu normal (mais normalement le contenu normal est public bien souvent)<br />
    53  - autoriser le groupe "16-17" à voir le contenu érotique, réservé aux plus de 16 ans ET le contenu normal (mais normalement le contenu normal est public bien souvent)<br />
    54  - autoriser le groupe "nothing" à voir le contenu normal (mais normalement le contenu normal est bien souvent public)<br />
     77
    5578<br />
    56 Vous n\'avez rien d\'autre à faire.<br />
     792 - Functioning of the plugin<br />
     802.1 - The management of the users<br />
    5781<br />
    58 2 - Fonctionnement du plugin<br />
    59 2.1 - La gestion des utilisateurs<br />
     82If the user is already recorded in the activation of the plugin, the plugin shows a small
     83block pointing out that he must choose his age. Once he clicks, the page containing the message of 'adult content' will appear and the choice of choosing their age (Charte_user.php).
     84
     85Once a visitor chooses his age, it is re-aimed to the page of choice of age (Charte_user.php), directly after its recording.
     86
     87In practice, the plugin places the user in the 3 groups, ' 18' ' 16-17' and 'nothing',
     88
     89according to his choice of age. A user may at any time change his age via the block menu of
     90
     91adult_content except if it is disabled via the administration of piwigo (attention the
     92
     93direct link to charte_user.php continues to function all the same) : if you wish that a
     94
     95user cannot change his age then this plugin is useless and use directly the management of
     96
     97rights at the level of groups and/or images.<br />
    6098<br />
    61 Si l\'utilisateur est déjà enregistré à l\'actication du plugin, le plugin affiche un bloc menu indiquant qu\'il doit sélectionner son âge. Si il clique dessus, la page contenant le message d\'avertissement et le choix de l\âge (charte_user.php).<br />
    62 Si un visiteur s\'enregistre, il est redirigé vers la page de choix de l\'âge (charte_user.php), directement après son enregistrement.<br />
     992.2 - Visitor management<br />
    63100<br />
    64 En pratique, le plugin place l\'utilisateur dans les des 3 groupes, "+18" "16-17" et "nothing", selon son choix d\'âge. Un utilisateur peut à tout moment changer son âge via le bloc menu d\'adult_content sauf si celui est désactivé via l\'administration de piwigo (attention le lien direct vers charte_user.php continue de fonctionner tout de même) : si vous souhaiter qu\'un utilisateur ne puisse pas changer son âge alors ce plugin ne sert à rien, utiliser directement la gestion des droits au niveau des groupes et/ou des images.<br />
     101If the option 'Allow visitors to non-registered to select their age ?' is enabled, then the
     102
     103plugin will manage the visitors. * It displays a block menu, indicating the gallery is
     104
     105'filtered' and that if he wishes to disable the filter, he must select his age.
     106It is then redirected to the page of choice of the age for visitor (chartre.php).
     107
     108In practice, the visitor is then recorded under one of the 2 users created by the plugin: '
     109
     11018' belonging to the group ' 18 ', and ' 16' from the group ' 16-17 '.  These 2 user
     111
     112accounts may not be modified by users, only by the administrator.
     113You open and choose to change the theme according to the age of the vistor via these 2 user
     114
     115accounts.<br />
    65116<br />
    66 2.2 - La gestion des visiteurs<br />
     1172.3 - Possible adaptations<br />
    67118<br />
    68 Si l\'option "Permettre aux visiteurs non-enregistrés de sélectionner leur âge ?" est activée, alors le plugin gérera les visiteurs.<br />
    69 Il affiche un bloc menu, indiquant la galerie est "filtrée" et que s\'il souhaite désactiver le filtre, il doit sélectionner son âge. Il est alors redirigé vers la page de choix de l\'âge pour visiteur (chartre.php).<br />
    70 <br />
    71 En pratique, le visiteur est alors enregistré sous un des 2 utilisateurs créé par le plugin : "18" appartenant au groupe "+18", et "16" du groupe "16-17". Ces 2 comptes utilisateurs ne peuvent être modifié par eux-mêmes, mais uniquement par l\'administrateur lui-même. Vous ouvez ainsi choisir de changer le thème selon l\'âge du visteur via ces 2 comptes utilisateurs.<br />
    72 <br />
    73 2.3 - Adaptations possibles<br />
    74 <br />
    75 Vous pouvez adapter ce plugin pour du contenu violent, simplement en changeant les fichiers langues du plugin (utilisez le plugin LocalFiles Editor pour plus de facilité).<br />
    76 Les âges limites peuvent aussi être changés de cette façon.<br />
    77 ';
     119You can adapt this plugin for the violent content, simply by changing the files languages
     120
     121of the plugin (use the plugin Local Files Editor for more ease).  The age limits may also
     122
     123be changed in this way.
     124";
    78125?>
  • extensions/adult_content/language/en_UK/plugin.lang.php

    r9681 r12621  
    4242$lang['ad_c_block_on_index_error_2'] = 'The minimum PWG_Stuffs version required is 2.1.l';
    4343$lang['ad_c_block_on_index_error'] = 'Not available for now';
     44$lang['ad_c_manage_what'] = 'Select the type of content the plugin should manage :';
     45$lang['ad_c_manage_eroticonly'] = 'erotic content only';
     46$lang['ad_c_manage_pornonly'] = 'pornographic content only';
     47$lang['ad_c_manage_both'] = 'erotic and pornographic content';
     48
     49
    4450$lang['ad_c_send'] = 'Save Changes';
    4551$lang['ad_c_msg_admin_1'] = 'Plugin configuration updated successfully!';
    46 /*TODO*/$lang['ad_c_howitworks'] = 'Le principe du plugin est d\'aider à la gestion de contenus matures (il peut être adapté pour du contenu violent). Pour se faire, le plugin gère les visiteurs et/ou les utilisateurs (au choix selon votre paramétrage du plugin).<br />
     52$lang['ad_c_howitworks'] = "The principle of the plugin is to help in the management of mature content (it can also be
     53
     54adapted for violent content). To do this, the plugin manages the visitors and/or the users
     55
     56as you wish according to your definition of parameters of the plugin.<br />
    4757<br />
    48 1 - Que devez-vous faire en tant qu\'admistrateur<br />
     581 - As administrator you must put your adult content in a private gallery or album (the
     59
     60plugin does not manage the rights to the level of images itself, at least not yet). Then
     61
     62assign the gallery or album to the two groups '18' and ' 16-17' (created by the plugin)
     63
     64like this:<br /><br />
     65
     66-allow the group '18' to see the adult content, reserved for users over the of age of 18
     67
     68and normal content (but generally the normal content is often public)
     69<br /><br />
     70-allow the group ' 16-17' to see the adult content reserved for users over the age of 16
     71
     72and normal content (generally the normal content is often public)
     73<br /><br />
     74- the 'nothing' group will see the normal content (but generally the normal content is
     75
     76often public)
    4977<br />
    50 Vous devez juste mettre vos catégories litigieuse en privé (le plugin ne gère pas les droits au niveau des images elle-même, du moins pas encore).<br />
    51 Ensuite attribuer ces galeries privées aux deux groupes "+18" et "16-17" (créés par le plugin) comme ceci :<br />
    52  - autoriser le groupe "+18" à voir le contenu pornographique ou autre, réservé aux plus de 18 ans ET le contenu érotique, réservé aux plus de 16 ans ET le contenu normal (mais normalement le contenu normal est public bien souvent)<br />
    53  - autoriser le groupe "16-17" à voir le contenu érotique, réservé aux plus de 16 ans ET le contenu normal (mais normalement le contenu normal est public bien souvent)<br />
    54  - autoriser le groupe "nothing" à voir le contenu normal (mais normalement le contenu normal est bien souvent public)<br />
     78
    5579<br />
    56 Vous n\'avez rien d\'autre à faire.<br />
     802 - Functioning of the plugin<br />
     812.1 - The management of the users<br />
    5782<br />
    58 2 - Fonctionnement du plugin<br />
    59 2.1 - La gestion des utilisateurs<br />
     83If the user is already recorded in the activation of the plugin, the plugin shows a small
     84block pointing out that he must choose his age. Once he clicks, the page containing the message of 'adult content' will appear and the choice of choosing their age (Charte_user.php).
     85
     86Once a visitor chooses his age, it is re-aimed to the page of choice of age (Charte_user.php), directly after its recording.
     87
     88In practice, the plugin places the user in the 3 groups, ' 18' ' 16-17' and 'nothing',
     89
     90according to his choice of age. A user may at any time change his age via the block menu of
     91
     92adult_content except if it is disabled via the administration of piwigo (attention the
     93
     94direct link to charte_user.php continues to function all the same) : if you wish that a
     95
     96user cannot change his age then this plugin is useless and use directly the management of
     97
     98rights at the level of groups and/or images.<br />
    6099<br />
    61 Si l\'utilisateur est déjà enregistré à l\'actication du plugin, le plugin affiche un bloc menu indiquant qu\'il doit sélectionner son âge. Si il clique dessus, la page contenant le message d\'avertissement et le choix de l\âge (charte_user.php).<br />
    62 Si un visiteur s\'enregistre, il est redirigé vers la page de choix de l\'âge (charte_user.php), directement après son enregistrement.<br />
     1002.2 - Visitor management<br />
    63101<br />
    64 En pratique, le plugin place l\'utilisateur dans les des 3 groupes, "+18" "16-17" et "nothing", selon son choix d\'âge. Un utilisateur peut à tout moment changer son âge via le bloc menu d\'adult_content sauf si celui est désactivé via l\'administration de piwigo (attention le lien direct vers charte_user.php continue de fonctionner tout de même) : si vous souhaiter qu\'un utilisateur ne puisse pas changer son âge alors ce plugin ne sert à rien, utiliser directement la gestion des droits au niveau des groupes et/ou des images.<br />
     102If the option 'Allow visitors to non-registered to select their age ?' is enabled, then the
     103
     104plugin will manage the visitors. * It displays a block menu, indicating the gallery is
     105
     106'filtered' and that if he wishes to disable the filter, he must select his age.
     107It is then redirected to the page of choice of the age for visitor (chartre.php).
     108
     109In practice, the visitor is then recorded under one of the 2 users created by the plugin: '
     110
     11118' belonging to the group ' 18 ', and ' 16' from the group ' 16-17 '.  These 2 user
     112
     113accounts may not be modified by users, only by the administrator.
     114You open and choose to change the theme according to the age of the vistor via these 2 user
     115
     116accounts.<br />
    65117<br />
    66 2.2 - La gestion des visiteurs<br />
     1182.3 - Possible adaptations<br />
    67119<br />
    68 Si l\'option "Permettre aux visiteurs non-enregistrés de sélectionner leur âge ?" est activée, alors le plugin gérera les visiteurs.<br />
    69 Il affiche un bloc menu, indiquant la galerie est "filtrée" et que s\'il souhaite désactiver le filtre, il doit sélectionner son âge. Il est alors redirigé vers la page de choix de l\'âge pour visiteur (chartre.php).<br />
    70 <br />
    71 En pratique, le visiteur est alors enregistré sous un des 2 utilisateurs créé par le plugin : "18" appartenant au groupe "+18", et "16" du groupe "16-17". Ces 2 comptes utilisateurs ne peuvent être modifié par eux-mêmes, mais uniquement par l\'administrateur lui-même. Vous ouvez ainsi choisir de changer le thème selon l\'âge du visteur via ces 2 comptes utilisateurs.<br />
    72 <br />
    73 2.3 - Adaptations possibles<br />
    74 <br />
    75 Vous pouvez adapter ce plugin pour du contenu violent, simplement en changeant les fichiers langues du plugin (utilisez le plugin LocalFiles Editor pour plus de facilité).<br />
    76 Les âges limites peuvent aussi être changés de cette façon.<br />
    77 ';
     120You can adapt this plugin for the violent content, simply by changing the files languages
     121
     122of the plugin (use the plugin Local Files Editor for more ease).  The age limits may also
     123
     124be changed in this way.
     125";
    78126?>
  • extensions/adult_content/language/es_ES/plugin.lang.php

    r9558 r12621  
    4242/*TODO*/$lang['ad_c_block_on_index_error_2'] = 'The minimum PWG_Stuffs version required is 2.1.l';
    4343/*TODO*/$lang['ad_c_block_on_index_error'] = 'Not available for now';
     44/*TODO*/$lang['ad_c_manage_what'] = 'Select the type of content the plugin should manage :';
     45/*TODO*/$lang['ad_c_manage_eroticonly'] = 'erotic content only';
     46/*TODO*/$lang['ad_c_manage_pornonly'] = 'pornographic content only';
     47/*TODO*/$lang['ad_c_manage_both'] = 'erotic and pornographic content';
     48
    4449/*TODO*/$lang['ad_c_send'] = 'Save Changes';
    4550/*TODO*/$lang['ad_c_msg_admin_1'] = 'Plugin configuration updated successfully!';
    46 /*TODO*/$lang['ad_c_howitworks'] = 'Le principe du plugin est d\'aider à la gestion de contenus matures (il peut être adapté pour du contenu violent). Pour se faire, le plugin gère les visiteurs et/ou les utilisateurs (au choix selon votre paramétrage du plugin).<br />
     51/*TODO*/$lang['ad_c_howitworks'] = "The principle of the plugin is to help in the management of mature content (it can also be
     52
     53adapted for violent content). To do this, the plugin manages the visitors and/or the users
     54
     55as you wish according to your definition of parameters of the plugin.<br />
    4756<br />
    48 1 - Que devez-vous faire en tant qu\'admistrateur<br />
     571 - As administrator you must put your adult content in a private gallery or album (the
     58
     59plugin does not manage the rights to the level of images itself, at least not yet). Then
     60
     61assign the gallery or album to the two groups '18' and ' 16-17' (created by the plugin)
     62
     63like this:<br /><br />
     64
     65-allow the group '18' to see the adult content, reserved for users over the of age of 18
     66
     67and normal content (but generally the normal content is often public)
     68<br /><br />
     69-allow the group ' 16-17' to see the adult content reserved for users over the age of 16
     70
     71and normal content (generally the normal content is often public)
     72<br /><br />
     73- the 'nothing' group will see the normal content (but generally the normal content is
     74
     75often public)
    4976<br />
    50 Vous devez juste mettre vos catégories litigieuse en privé (le plugin ne gère pas les droits au niveau des images elle-même, du moins pas encore).<br />
    51 Ensuite attribuer ces galeries privées aux deux groupes "+18" et "16-17" (créés par le plugin) comme ceci :<br />
    52  - autoriser le groupe "+18" à voir le contenu pornographique ou autre, réservé aux plus de 18 ans ET le contenu érotique, réservé aux plus de 16 ans ET le contenu normal (mais normalement le contenu normal est public bien souvent)<br />
    53  - autoriser le groupe "16-17" à voir le contenu érotique, réservé aux plus de 16 ans ET le contenu normal (mais normalement le contenu normal est public bien souvent)<br />
    54  - autoriser le groupe "nothing" à voir le contenu normal (mais normalement le contenu normal est bien souvent public)<br />
     77
    5578<br />
    56 Vous n\'avez rien d\'autre à faire.<br />
     792 - Functioning of the plugin<br />
     802.1 - The management of the users<br />
    5781<br />
    58 2 - Fonctionnement du plugin<br />
    59 2.1 - La gestion des utilisateurs<br />
     82If the user is already recorded in the activation of the plugin, the plugin shows a small
     83block pointing out that he must choose his age. Once he clicks, the page containing the message of 'adult content' will appear and the choice of choosing their age (Charte_user.php).
     84
     85Once a visitor chooses his age, it is re-aimed to the page of choice of age (Charte_user.php), directly after its recording.
     86
     87In practice, the plugin places the user in the 3 groups, ' 18' ' 16-17' and 'nothing',
     88
     89according to his choice of age. A user may at any time change his age via the block menu of
     90
     91adult_content except if it is disabled via the administration of piwigo (attention the
     92
     93direct link to charte_user.php continues to function all the same) : if you wish that a
     94
     95user cannot change his age then this plugin is useless and use directly the management of
     96
     97rights at the level of groups and/or images.<br />
    6098<br />
    61 Si l\'utilisateur est déjà enregistré à l\'actication du plugin, le plugin affiche un bloc menu indiquant qu\'il doit sélectionner son âge. Si il clique dessus, la page contenant le message d\'avertissement et le choix de l\âge (charte_user.php).<br />
    62 Si un visiteur s\'enregistre, il est redirigé vers la page de choix de l\'âge (charte_user.php), directement après son enregistrement.<br />
     992.2 - Visitor management<br />
    63100<br />
    64 En pratique, le plugin place l\'utilisateur dans les des 3 groupes, "+18" "16-17" et "nothing", selon son choix d\'âge. Un utilisateur peut à tout moment changer son âge via le bloc menu d\'adult_content sauf si celui est désactivé via l\'administration de piwigo (attention le lien direct vers charte_user.php continue de fonctionner tout de même) : si vous souhaiter qu\'un utilisateur ne puisse pas changer son âge alors ce plugin ne sert à rien, utiliser directement la gestion des droits au niveau des groupes et/ou des images.<br />
     101If the option 'Allow visitors to non-registered to select their age ?' is enabled, then the
     102
     103plugin will manage the visitors. * It displays a block menu, indicating the gallery is
     104
     105'filtered' and that if he wishes to disable the filter, he must select his age.
     106It is then redirected to the page of choice of the age for visitor (chartre.php).
     107
     108In practice, the visitor is then recorded under one of the 2 users created by the plugin: '
     109
     11018' belonging to the group ' 18 ', and ' 16' from the group ' 16-17 '.  These 2 user
     111
     112accounts may not be modified by users, only by the administrator.
     113You open and choose to change the theme according to the age of the vistor via these 2 user
     114
     115accounts.<br />
    65116<br />
    66 2.2 - La gestion des visiteurs<br />
     1172.3 - Possible adaptations<br />
    67118<br />
    68 Si l\'option "Permettre aux visiteurs non-enregistrés de sélectionner leur âge ?" est activée, alors le plugin gérera les visiteurs.<br />
    69 Il affiche un bloc menu, indiquant la galerie est "filtrée" et que s\'il souhaite désactiver le filtre, il doit sélectionner son âge. Il est alors redirigé vers la page de choix de l\'âge pour visiteur (chartre.php).<br />
    70 <br />
    71 En pratique, le visiteur est alors enregistré sous un des 2 utilisateurs créé par le plugin : "18" appartenant au groupe "+18", et "16" du groupe "16-17". Ces 2 comptes utilisateurs ne peuvent être modifié par eux-mêmes, mais uniquement par l\'administrateur lui-même. Vous ouvez ainsi choisir de changer le thème selon l\'âge du visteur via ces 2 comptes utilisateurs.<br />
    72 <br />
    73 2.3 - Adaptations possibles<br />
    74 <br />
    75 Vous pouvez adapter ce plugin pour du contenu violent, simplement en changeant les fichiers langues du plugin (utilisez le plugin LocalFiles Editor pour plus de facilité).<br />
    76 Les âges limites peuvent aussi être changés de cette façon.<br />
    77 ';
     119You can adapt this plugin for the violent content, simply by changing the files languages
    78120
     121of the plugin (use the plugin Local Files Editor for more ease).  The age limits may also
     122
     123be changed in this way.
     124";
    79125?>
  • extensions/adult_content/language/fr_FR/plugin.lang.php

    r10761 r12621  
    4242$lang['ad_c_block_on_index_error_2'] = 'PWG Stuffs dans une version supérieure à 2.1.l est nécessaire';
    4343$lang['ad_c_block_on_index_error'] = 'fonction non disponible pour l\'instant';
     44
     45$lang['ad_c_manage_what'] = 'Le plugin gère le contenu';
     46$lang['ad_c_manage_eroticonly'] = 'érotique seulement';
     47$lang['ad_c_manage_pornonly'] = 'pornographique seulement';
     48$lang['ad_c_manage_both'] = 'erotique et pornographique';
     49
    4450$lang['ad_c_send'] = 'Enregistrer les changements';
    4551$lang['ad_c_msg_admin_1'] = 'Configuration du plugin mise à jour avec succès !';
  • extensions/adult_content/language/hu_HU/plugin.lang.php

    r9558 r12621  
    4242/*TODO*/$lang['ad_c_block_on_index_error_2'] = 'The minimum PWG_Stuffs version required is 2.1.l';
    4343/*TODO*/$lang['ad_c_block_on_index_error'] = 'Not available for now';
     44/*TODO*/$lang['ad_c_manage_what'] = 'Select the type of content the plugin should manage :';
     45/*TODO*/$lang['ad_c_manage_eroticonly'] = 'erotic content only';
     46/*TODO*/$lang['ad_c_manage_pornonly'] = 'pornographic content only';
     47/*TODO*/$lang['ad_c_manage_both'] = 'erotic and pornographic content';
    4448/*TODO*/$lang['ad_c_send'] = 'Save Changes';
    4549/*TODO*/$lang['ad_c_msg_admin_1'] = 'Plugin configuration updated successfully!';
    46 /*TODO*/$lang['ad_c_howitworks'] = 'Le principe du plugin est d\'aider à la gestion de contenus matures (il peut être adapté pour du contenu violent). Pour se faire, le plugin gère les visiteurs et/ou les utilisateurs (au choix selon votre paramétrage du plugin).<br />
     50/*TODO*/$lang['ad_c_howitworks'] = "The principle of the plugin is to help in the management of mature content (it can also be
     51
     52adapted for violent content). To do this, the plugin manages the visitors and/or the users
     53
     54as you wish according to your definition of parameters of the plugin.<br />
    4755<br />
    48 1 - Que devez-vous faire en tant qu\'admistrateur<br />
     561 - As administrator you must put your adult content in a private gallery or album (the
     57
     58plugin does not manage the rights to the level of images itself, at least not yet). Then
     59
     60assign the gallery or album to the two groups '18' and ' 16-17' (created by the plugin)
     61
     62like this:<br /><br />
     63
     64-allow the group '18' to see the adult content, reserved for users over the of age of 18
     65
     66and normal content (but generally the normal content is often public)
     67<br /><br />
     68-allow the group ' 16-17' to see the adult content reserved for users over the age of 16
     69
     70and normal content (generally the normal content is often public)
     71<br /><br />
     72- the 'nothing' group will see the normal content (but generally the normal content is
     73
     74often public)
    4975<br />
    50 Vous devez juste mettre vos catégories litigieuse en privé (le plugin ne gère pas les droits au niveau des images elle-même, du moins pas encore).<br />
    51 Ensuite attribuer ces galeries privées aux deux groupes "+18" et "16-17" (créés par le plugin) comme ceci :<br />
    52  - autoriser le groupe "+18" à voir le contenu pornographique ou autre, réservé aux plus de 18 ans ET le contenu érotique, réservé aux plus de 16 ans ET le contenu normal (mais normalement le contenu normal est public bien souvent)<br />
    53  - autoriser le groupe "16-17" à voir le contenu érotique, réservé aux plus de 16 ans ET le contenu normal (mais normalement le contenu normal est public bien souvent)<br />
    54  - autoriser le groupe "nothing" à voir le contenu normal (mais normalement le contenu normal est bien souvent public)<br />
     76
    5577<br />
    56 Vous n\'avez rien d\'autre à faire.<br />
     782 - Functioning of the plugin<br />
     792.1 - The management of the users<br />
    5780<br />
    58 2 - Fonctionnement du plugin<br />
    59 2.1 - La gestion des utilisateurs<br />
     81If the user is already recorded in the activation of the plugin, the plugin shows a small
     82block pointing out that he must choose his age. Once he clicks, the page containing the message of 'adult content' will appear and the choice of choosing their age (Charte_user.php).
     83
     84Once a visitor chooses his age, it is re-aimed to the page of choice of age (Charte_user.php), directly after its recording.
     85
     86In practice, the plugin places the user in the 3 groups, ' 18' ' 16-17' and 'nothing',
     87
     88according to his choice of age. A user may at any time change his age via the block menu of
     89
     90adult_content except if it is disabled via the administration of piwigo (attention the
     91
     92direct link to charte_user.php continues to function all the same) : if you wish that a
     93
     94user cannot change his age then this plugin is useless and use directly the management of
     95
     96rights at the level of groups and/or images.<br />
    6097<br />
    61 Si l\'utilisateur est déjà enregistré à l\'actication du plugin, le plugin affiche un bloc menu indiquant qu\'il doit sélectionner son âge. Si il clique dessus, la page contenant le message d\'avertissement et le choix de l\âge (charte_user.php).<br />
    62 Si un visiteur s\'enregistre, il est redirigé vers la page de choix de l\'âge (charte_user.php), directement après son enregistrement.<br />
     982.2 - Visitor management<br />
    6399<br />
    64 En pratique, le plugin place l\'utilisateur dans les des 3 groupes, "+18" "16-17" et "nothing", selon son choix d\'âge. Un utilisateur peut à tout moment changer son âge via le bloc menu d\'adult_content sauf si celui est désactivé via l\'administration de piwigo (attention le lien direct vers charte_user.php continue de fonctionner tout de même) : si vous souhaiter qu\'un utilisateur ne puisse pas changer son âge alors ce plugin ne sert à rien, utiliser directement la gestion des droits au niveau des groupes et/ou des images.<br />
     100If the option 'Allow visitors to non-registered to select their age ?' is enabled, then the
     101
     102plugin will manage the visitors. * It displays a block menu, indicating the gallery is
     103
     104'filtered' and that if he wishes to disable the filter, he must select his age.
     105It is then redirected to the page of choice of the age for visitor (chartre.php).
     106
     107In practice, the visitor is then recorded under one of the 2 users created by the plugin: '
     108
     10918' belonging to the group ' 18 ', and ' 16' from the group ' 16-17 '.  These 2 user
     110
     111accounts may not be modified by users, only by the administrator.
     112You open and choose to change the theme according to the age of the vistor via these 2 user
     113
     114accounts.<br />
    65115<br />
    66 2.2 - La gestion des visiteurs<br />
     1162.3 - Possible adaptations<br />
    67117<br />
    68 Si l\'option "Permettre aux visiteurs non-enregistrés de sélectionner leur âge ?" est activée, alors le plugin gérera les visiteurs.<br />
    69 Il affiche un bloc menu, indiquant la galerie est "filtrée" et que s\'il souhaite désactiver le filtre, il doit sélectionner son âge. Il est alors redirigé vers la page de choix de l\'âge pour visiteur (chartre.php).<br />
    70 <br />
    71 En pratique, le visiteur est alors enregistré sous un des 2 utilisateurs créé par le plugin : "18" appartenant au groupe "+18", et "16" du groupe "16-17". Ces 2 comptes utilisateurs ne peuvent être modifié par eux-mêmes, mais uniquement par l\'administrateur lui-même. Vous ouvez ainsi choisir de changer le thème selon l\'âge du visteur via ces 2 comptes utilisateurs.<br />
    72 <br />
    73 2.3 - Adaptations possibles<br />
    74 <br />
    75 Vous pouvez adapter ce plugin pour du contenu violent, simplement en changeant les fichiers langues du plugin (utilisez le plugin LocalFiles Editor pour plus de facilité).<br />
    76 Les âges limites peuvent aussi être changés de cette façon.<br />
    77 ';
     118You can adapt this plugin for the violent content, simply by changing the files languages
     119
     120of the plugin (use the plugin Local Files Editor for more ease).  The age limits may also
     121
     122be changed in this way.
     123";
    78124?>
  • extensions/adult_content/language/it_IT/plugin.lang.php

    r10762 r12621  
    4242$lang['ad_c_block_on_index_error_2'] = 'PWG Stuffs in una versione superiore à 2.1.l è necessario';
    4343$lang['ad_c_block_on_index_error'] = 'funzione non disponibile attualmente';
     44/*TODO*/$lang['ad_c_manage_what'] = 'Select the type of content the plugin should manage :';
     45/*TODO*/$lang['ad_c_manage_eroticonly'] = 'erotic content only';
     46/*TODO*/$lang['ad_c_manage_pornonly'] = 'pornographic content only';
     47/*TODO*/$lang['ad_c_manage_both'] = 'erotic and pornographic content';
    4448$lang['ad_c_send'] = 'Registrare le modifiche';
    4549$lang['ad_c_msg_admin_1'] = 'Configurazione del plugin aggiornata correttamente!';
  • extensions/adult_content/language/lv_LV/plugin.lang.php

    r9558 r12621  
    4343/*TODO*/$lang['ad_c_block_on_index_error_2'] = 'The minimum PWG_Stuffs version required is 2.1.l';
    4444/*TODO*/$lang['ad_c_block_on_index_error'] = 'Not available for now';
     45/*TODO*/$lang['ad_c_manage_what'] = 'Select the type of content the plugin should manage :';
     46/*TODO*/$lang['ad_c_manage_eroticonly'] = 'erotic content only';
     47/*TODO*/$lang['ad_c_manage_pornonly'] = 'pornographic content only';
     48/*TODO*/$lang['ad_c_manage_both'] = 'erotic and pornographic content';
    4549/*TODO*/$lang['ad_c_send'] = 'Save Changes';
    4650/*TODO*/$lang['ad_c_msg_admin_1'] = 'Plugin configuration updated successfully!';
    47 /*TODO*/$lang['ad_c_howitworks'] = 'Le principe du plugin est d\'aider à la gestion de contenus matures (il peut être adapté pour du contenu violent). Pour se faire, le plugin gère les visiteurs et/ou les utilisateurs (au choix selon votre paramétrage du plugin).<br />
     51/*TODO*/$lang['ad_c_howitworks'] = "The principle of the plugin is to help in the management of mature content (it can also be
     52
     53adapted for violent content). To do this, the plugin manages the visitors and/or the users
     54
     55as you wish according to your definition of parameters of the plugin.<br />
    4856<br />
    49 1 - Que devez-vous faire en tant qu\'admistrateur<br />
     571 - As administrator you must put your adult content in a private gallery or album (the
     58
     59plugin does not manage the rights to the level of images itself, at least not yet). Then
     60
     61assign the gallery or album to the two groups '18' and ' 16-17' (created by the plugin)
     62
     63like this:<br /><br />
     64
     65-allow the group '18' to see the adult content, reserved for users over the of age of 18
     66
     67and normal content (but generally the normal content is often public)
     68<br /><br />
     69-allow the group ' 16-17' to see the adult content reserved for users over the age of 16
     70
     71and normal content (generally the normal content is often public)
     72<br /><br />
     73- the 'nothing' group will see the normal content (but generally the normal content is
     74
     75often public)
    5076<br />
    51 Vous devez juste mettre vos catégories litigieuse en privé (le plugin ne gère pas les droits au niveau des images elle-même, du moins pas encore).<br />
    52 Ensuite attribuer ces galeries privées aux deux groupes "+18" et "16-17" (créés par le plugin) comme ceci :<br />
    53  - autoriser le groupe "+18" à voir le contenu pornographique ou autre, réservé aux plus de 18 ans ET le contenu érotique, réservé aux plus de 16 ans ET le contenu normal (mais normalement le contenu normal est public bien souvent)<br />
    54  - autoriser le groupe "16-17" à voir le contenu érotique, réservé aux plus de 16 ans ET le contenu normal (mais normalement le contenu normal est public bien souvent)<br />
    55  - autoriser le groupe "nothing" à voir le contenu normal (mais normalement le contenu normal est bien souvent public)<br />
     77
    5678<br />
    57 Vous n\'avez rien d\'autre à faire.<br />
     792 - Functioning of the plugin<br />
     802.1 - The management of the users<br />
    5881<br />
    59 2 - Fonctionnement du plugin<br />
    60 2.1 - La gestion des utilisateurs<br />
     82If the user is already recorded in the activation of the plugin, the plugin shows a small
     83block pointing out that he must choose his age. Once he clicks, the page containing the message of 'adult content' will appear and the choice of choosing their age (Charte_user.php).
     84
     85Once a visitor chooses his age, it is re-aimed to the page of choice of age (Charte_user.php), directly after its recording.
     86
     87In practice, the plugin places the user in the 3 groups, ' 18' ' 16-17' and 'nothing',
     88
     89according to his choice of age. A user may at any time change his age via the block menu of
     90
     91adult_content except if it is disabled via the administration of piwigo (attention the
     92
     93direct link to charte_user.php continues to function all the same) : if you wish that a
     94
     95user cannot change his age then this plugin is useless and use directly the management of
     96
     97rights at the level of groups and/or images.<br />
    6198<br />
    62 Si l\'utilisateur est déjà enregistré à l\'actication du plugin, le plugin affiche un bloc menu indiquant qu\'il doit sélectionner son âge. Si il clique dessus, la page contenant le message d\'avertissement et le choix de l\âge (charte_user.php).<br />
    63 Si un visiteur s\'enregistre, il est redirigé vers la page de choix de l\'âge (charte_user.php), directement après son enregistrement.<br />
     992.2 - Visitor management<br />
    64100<br />
    65 En pratique, le plugin place l\'utilisateur dans les des 3 groupes, "+18" "16-17" et "nothing", selon son choix d\'âge. Un utilisateur peut à tout moment changer son âge via le bloc menu d\'adult_content sauf si celui est désactivé via l\'administration de piwigo (attention le lien direct vers charte_user.php continue de fonctionner tout de même) : si vous souhaiter qu\'un utilisateur ne puisse pas changer son âge alors ce plugin ne sert à rien, utiliser directement la gestion des droits au niveau des groupes et/ou des images.<br />
     101If the option 'Allow visitors to non-registered to select their age ?' is enabled, then the
     102
     103plugin will manage the visitors. * It displays a block menu, indicating the gallery is
     104
     105'filtered' and that if he wishes to disable the filter, he must select his age.
     106It is then redirected to the page of choice of the age for visitor (chartre.php).
     107
     108In practice, the visitor is then recorded under one of the 2 users created by the plugin: '
     109
     11018' belonging to the group ' 18 ', and ' 16' from the group ' 16-17 '.  These 2 user
     111
     112accounts may not be modified by users, only by the administrator.
     113You open and choose to change the theme according to the age of the vistor via these 2 user
     114
     115accounts.<br />
    66116<br />
    67 2.2 - La gestion des visiteurs<br />
     1172.3 - Possible adaptations<br />
    68118<br />
    69 Si l\'option "Permettre aux visiteurs non-enregistrés de sélectionner leur âge ?" est activée, alors le plugin gérera les visiteurs.<br />
    70 Il affiche un bloc menu, indiquant la galerie est "filtrée" et que s\'il souhaite désactiver le filtre, il doit sélectionner son âge. Il est alors redirigé vers la page de choix de l\'âge pour visiteur (chartre.php).<br />
    71 <br />
    72 En pratique, le visiteur est alors enregistré sous un des 2 utilisateurs créé par le plugin : "18" appartenant au groupe "+18", et "16" du groupe "16-17". Ces 2 comptes utilisateurs ne peuvent être modifié par eux-mêmes, mais uniquement par l\'administrateur lui-même. Vous ouvez ainsi choisir de changer le thème selon l\'âge du visteur via ces 2 comptes utilisateurs.<br />
    73 <br />
    74 2.3 - Adaptations possibles<br />
    75 <br />
    76 Vous pouvez adapter ce plugin pour du contenu violent, simplement en changeant les fichiers langues du plugin (utilisez le plugin LocalFiles Editor pour plus de facilité).<br />
    77 Les âges limites peuvent aussi être changés de cette façon.<br />
    78 ';
     119You can adapt this plugin for the violent content, simply by changing the files languages
     120
     121of the plugin (use the plugin Local Files Editor for more ease).  The age limits may also
     122
     123be changed in this way.
     124";
    79125?>
  • extensions/adult_content/maintain.inc.php

    r9557 r12621  
    4646INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    4747        VALUES
    48         ("ad_c_plugin" , "true,false" , "Plugin adult_content : menublock_for_guest, block_on_index");';
     48        ("ad_c_plugin" , "true,false,both" , "Plugin adult_content : menublock_for_guest, block_on_index, manage_what");';
    4949    pwg_query($q);
    5050
     
    209209        $nbr=count($conf);
    210210       
    211          if ($nbr!=2)
     211         if ($nbr!=3)
    212212         {
    213213                pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param IN (\'ad_c_plugin\')');
    214                 pwg_query($q);
    215214                $q = '
    216215                INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    217216                VALUES
    218                 ("ad_c_plugin" , "true,false" , "Plugin adult_content : menublock_for_guest, block_on_index");';
     217    ("ad_c_plugin" , "true,false,both" , "Plugin adult_content : menublock_for_guest, block_on_index, manage_what");';
    219218                pwg_query($q);
    220219                 }
Note: See TracChangeset for help on using the changeset viewer.