Warning: include(../plugins/glossaire/conf_defaut2.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 29
Warning: include(): Failed opening '../plugins/glossaire/conf_defaut2.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 29
Warning: Undefined variable $res_group in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 33
Warning: Trying to access array offset on value of type null in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 33
Warning: include(../plugins/glossaire/gloss_inc1.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 36
Warning: include(): Failed opening '../plugins/glossaire/gloss_inc1.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 36
Warning: include(../plugins/glossaire/gloss_mob_inc2.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 37
Warning: include(): Failed opening '../plugins/glossaire/gloss_mob_inc2.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 37
Plugins url-rewriting
Address rewriting is taken into account in GuppY 5.0.
It is implemented this way:
In the data/config/rules folder, a file containing the rules is placed in the data/config/rules folder, it will be loaded at the same time as the GuppY rules.
the rules are written like this:
RewriteRule ^plugins/mon_plugin/([a-z]{2})-(mon_sigle-1)$ plugins/mon_plugin/mon_script.php?lng=$1 [L]
For example, if you want to place a button in the menu, in plugins/my_plugin/plugin. inc you declare the address as follows:
$plugin_bar_url = $site['URLR'] == 'on' ? 'plugins/mon_plugin/'.$lng.'-mon_sigle-1' : 'mon_script.php?lng='.$lng;
We add as many rules as necessary following this principle.
Creation date : 02/03/2015 @ 16:39
Last update : 02/03/2015 @ 16:39
Category : Docs and Tutorials
Page read 16847 times
Document generated in 0.02 second