Changeset 6806


Ignore:
Timestamp:
Aug 26, 2010, 7:57:55 PM (10 years ago)
Author:
nikrou
Message:

Add permissions on add tags widget
Use default theme jquery library
Add help

Location:
extensions/user_tags
Files:
6 added
1 deleted
13 edited
2 copied

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/CHANGELOG

    r6798 r6806  
     1User Tags 0.2.0 - 2010-08-26
     2================================
     3* add permissions on add tags widget
     4* use default theme jquery library
     5* add help
     6
    17User Tags 0.1.0 - 2010-08-24
    28================================
  • extensions/user_tags/MANIFEST

    r6798 r6806  
    44user_tags/maintain.inc.php
    55user_tags/template/add_tags.tpl
    6 user_tags/js/jquery-1.4.2.js
     6user_tags/template/admin.tpl
    77user_tags/js/jquery.addtags.js
    88user_tags/js/jquery.fcbkcomplete.js
    99user_tags/main.inc.php
     10user_tags/language/fr_FR/help/readme.html
     11user_tags/language/fr_FR/help/index.php
    1012user_tags/language/fr_FR/index.php
    1113user_tags/language/fr_FR/description.txt
     
    1315user_tags/language/templates/index.php
    1416user_tags/language/templates/plugin.lang.php
     17user_tags/language/en_UK/help/readme.html
     18user_tags/language/en_UK/help/index.php
    1519user_tags/language/en_UK/index.php
    1620user_tags/language/en_UK/description.txt
    1721user_tags/language/en_UK/plugin.lang.php
     22user_tags/language/es_ES/index.php
     23user_tags/language/es_ES/description.txt
     24user_tags/language/es_ES/plugin.lang.php
     25user_tags/language/hu_HU/index.php
     26user_tags/language/hu_HU/description.txt
     27user_tags/language/hu_HU/plugin.lang.php
    1828user_tags/CHANGELOG
    1929user_tags/include/constants.inc.php
     
    2434user_tags/COPYING
    2535user_tags/css/style.css
     36user_tags/css/admin.css
    2637user_tags/css/imgs/close.png
    2738user_tags/init.php
  • extensions/user_tags/admin.php

    r6798 r6806  
    2424}
    2525
     26load_language('plugin.lang', T4U_PLUGIN_LANG);
     27
     28$me = get_plugin_data($plugin_id);
     29$save_config = false;
     30
     31$status_options[null] = '----------';
     32foreach (get_enums(USER_INFOS_TABLE, 'status') as $status) {
     33  $status_options[$status] = l10n('user_status_'.$status);
     34}
     35
     36if (!empty($_POST['submit'])) {
     37  if (isset($_POST['permission_add']) && isset($status_options[$_POST['permission_add']])
     38      && $_POST['permission_add']!=$me->getPermission('add')) {
     39    $me->setPermission('add', $_POST['permission_add']);
     40    array_push($GLOBALS['page']['infos'], l10n('Add permission updated'));
     41    $save_config = true;
     42  }
     43  if (isset($_POST['permission_delete']) && isset($status_options[$_POST['permission_delete']])
     44      && $_POST['permission_delete']!=$me->getPermission('delete')) {
     45    $me->setPermission('delete', $_POST['permission_delete']);
     46    array_push($GLOBALS['page']['infos'], l10n('Delete permission updated'));
     47    $save_config = true;
     48  }
     49
     50  if ($save_config) {
     51    $me->save_config();
     52  }
     53}
     54
     55$GLOBALS['template']->set_filenames(array('plugin_admin_content' => T4U_TEMPLATE . '/admin.tpl'));
     56$GLOBALS['template']->assign('T4U_CSS', T4U_CSS);
     57
     58$GLOBALS['template']->assign('T4U_PERMISSION_ADD', $me->getPermission('add'));
     59$GLOBALS['template']->assign('T4U_PERMISSION_DELETE', $me->getPermission('delete'));
     60$GLOBALS['template']->assign('STATUS_OPTIONS', $status_options);
     61$GLOBALS['template']->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
     62
     63$GLOBALS['template']->assign('U_HELP', get_root_url().'admin/popuphelp.php?page=readme');
    2664?>
  • extensions/user_tags/include/default_values.inc.php

    r6798 r6806  
    2121
    2222$default_values = array();
     23$default_values['t4u_permission_add'] = null;
     24$default_values['t4u_permission_delete'] = null;
    2325?>
  • extensions/user_tags/include/t4u_config.class.php

    r6798 r6806  
    6868  }
    6969
     70  public function setPermission($permission, $value) {
     71    $this->config['permissions'][$permission] = $value;
     72  }
     73
     74  public function getPermission($permission) {
     75    return isset($this->config['permissions'][$permission])?$this->config['permissions'][$permission]:null;
     76  }
     77
    7078  public function plugin_admin_menu($menu) {
    7179    array_push($menu,
     
    7583               );
    7684    return $menu;
     85  }
     86
     87  public function get_admin_help($help_content, $page) {
     88    return load_language('help/'.$page.'.html', $this->plugin_dir .'/', array('return'=>true) );
    7789  }
    7890
  • extensions/user_tags/include/t4u_content.class.php

    r6798 r6806  
    2525    $this->plugin_config = $config;
    2626
    27     if (preg_match('!/t4u_addtags.*!', $_SERVER['QUERY_STRING']) && !empty($_POST['tags'])) {
     27    if (preg_match('!/t4u_addtags.*!', $_SERVER['QUERY_STRING'])
     28        && !empty($_POST['tags'])
     29        && hasPermission('add')) {
    2830      include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    2931
    30       /* TODO: add permissions */
    3132      $tag_ids = get_fckb_tag_ids($_POST['tags']);
    3233      set_tags($tag_ids, $_POST['image_id']);
     
    3435    }
    3536
    36     if (preg_match('!/t4u_gettags.*!', $_SERVER['QUERY_STRING'])) {
     37    if (preg_match('!/t4u_gettags.*!', $_SERVER['QUERY_STRING'])
     38        && hasPermission('add')) {
    3739      include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    3840
    39       /* TODO: add permissions */
    4041      $query = '
    4142SELECT
     
    5253    global $template;
    5354
    54     /* TODO: add permissions */
    55     if (!is_autorize_status(ACCESS_CLASSIC)) { return;}
     55    if (!$this->hasPermission('add')) {
     56      return false;
     57    }
    5658
    5759    $template->func_known_script(array('id' => 'jquery',
    58                                        'src' => get_root_url().T4U_JS. '/jquery-1.4.2.js'
     60                                       'src' => get_root_url().'themes/default/js/jquery.packed.js'
    5961                                       ),
    6062                                 $template->smarty
     
    6870    $template->assign('T4U_IMAGE_ID', $picture['id']);
    6971    $template->assign('T4U_REFERER', htmlentities($picture['url']));
     72    $template->assign('T4U_PERMISSION_DELETE', $this->hasPermission('delete'));
     73
    7074    $related_tags = array();
    7175    if (!empty($template->smarty->_tpl_vars['related_tags'])) {
     
    103107    return $url;
    104108  }
     109
     110  private function hasPermission($permission='add') {
     111    return
     112      (($this->plugin_config->getPermission($permission)!='')
     113       and is_autorize_status(get_access_type_status($this->plugin_config->getPermission($permission))));
     114  }
    105115}
    106116?>
  • extensions/user_tags/init.php

    r6798 r6806  
    3535
    3636if (defined('IN_ADMIN')) {
    37   include_once T4U_PLUGIN_ROOT . '/admin.php';
     37  add_event_handler('get_admin_plugin_menu_links', array($plugin_config, 'plugin_admin_menu'));
     38  add_event_handler('get_popup_help_content',
     39                    array($plugin_config, 'get_admin_help'),
     40                    EVENT_HANDLER_PRIORITY_NEUTRAL,
     41                    2
     42                    );
    3843} else {
    3944  include_once T4U_PLUGIN_ROOT . '/public.php';
  • extensions/user_tags/js/jquery.addtags.js

    r6798 r6806  
    1 eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('d h(y){$(\'#2-k\').A(\'2-3\').s(\'3\');B}$(d(){f 1=\'<c J="\'+4[\'K\']+\'" C="E" 7="2-G-c">\';1+=\'<r 7="a" 9="a">\';1+=z;1+=\'</r>\';1+=\'<e b="q" 9="w" 5="\'+4[\'H\']+\'">\';1+=\'<e b="q" 9="L" 5="\'+4[\'D\']+\'">\';1+=\'<e b="I" 7="2-k" 3="3" t="2-3" 5="\'+8[\'u\']+\'">\';1+=\'</c>\';v($(\'#m\').x>0){$(\'#m j.F\').1b(\'<16 7="2-15" 14="\'+4[\'12\']+\'" 13="\'+8[\'l\']+\'">\').17(\'M\',8[\'l\']).18(\'2-1e\').o(d(){$(i).1d(\'o\');f g=$(i).1c().19(\'j.5\');f 1a=g.p();g.p(1);$(\'#a\').11({10:4[\'R\'],S:8[\'Q\'],P:n,N:n,O:6,T:6,U:6,Z:h,Y:h,X:V,W:6})})}});',62,77,'|newRow|t4u|disabled|path|value|true|id|vocab|name|tags|type|form|function|input|var|tags_value|t4u_onchange|this|td|update|click_to_add_tags|Tags|false|click|html|hidden|select|removeAttr|class|update_tags|if|image_id|length|item|related_tags|removeClass|return|method|t4u_referer|post|label|addtags|t4u_image_id|submit|action|t4u_add_script|referer|title|filter_case|filter_hide|cache|start_to_type|t4u_get_script|complete_text|firstselected|filter_selected|100|newel|maxitems|onselect|onremove|json_url|fcbkcomplete|t4u_edit_icon|alt|src|edit|img|attr|addClass|find|old_tags_value|append|parent|unbind|clickable'.split('|'),0,{}))
     1eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1G(1g(p,a,c,k,e,d){e=1g(c){1f(c<a?\'\':e(1F(c/a)))+((c=c%a)>1E?1i.1I(c+29):c.1J(1M))};1h(!\'\'.1k(/^/,1i)){1j(c--){d[e(c)]=k[c]||e(c)}k=[1g(e){1f d[e]}];e=1g(){1f\'\\\\w+\'};c=1};1j(c--){1h(k[c]){p=p.1k(1L 1K(\'\\\\b\'+e(c)+\'\\\\b\',\'g\'),k[c])}}1f p}(\'d h(y){$(\\\'#2-k\\\').A(\\\'2-3\\\').s(\\\'3\\\');B}$(d(){f 1=\\\'<c J="\\\'+4[\\\'K\\\']+\\\'" C="E" 7="2-G-c">\\\';1+=\\\'<r 7="a" 9="a">\\\';1+=z;1+=\\\'</r>\\\';1+=\\\'<e b="q" 9="w" 5="\\\'+4[\\\'H\\\']+\\\'">\\\';1+=\\\'<e b="q" 9="L" 5="\\\'+4[\\\'D\\\']+\\\'">\\\';1+=\\\'<e b="I" 7="2-k" 3="3" t="2-3" 5="\\\'+8[\\\'u\\\']+\\\'">\\\';1+=\\\'</c>\\\';v($(\\\'#m\\\').x>0){$(\\\'#m j.F\\\').1b(\\\'<16 7="2-15" 14="\\\'+4[\\\'12\\\']+\\\'" 13="\\\'+8[\\\'l\\\']+\\\'">\\\').17(\\\'M\\\',8[\\\'l\\\']).18(\\\'2-1e\\\').o(d(){$(i).1d(\\\'o\\\');f g=$(i).1c().19(\\\'j.5\\\');f 1a=g.p();g.p(1);$(\\\'#a\\\').11({10:4[\\\'R\\\'],S:8[\\\'Q\\\'],P:n,N:n,O:6,T:6,U:6,Z:h,Y:h,X:V,W:6})})}});\',1H,1N,\'|1O|1U|1V|1W|1T|1S|1P|1Q|1D|1X|1B|1r|1g|1p|1s|1n|1Y|1l|1o|1m|1q|1C|1z|1A|1t|1y|1x|1u|1v|1w|1h|1R|2j|2t|2u|2v|1f|2w|2y|2r|2n|2o|2p|2q|2x|2C|2F|2H|2G|2D|2z|2E|2A|2B|2s|2l|25|26|27|28|24|2m|23|1Z|20|21|22|2a|2b|2i|2k|2h|2g|2c|2d|2e\'.2f(\'|\'),0,{}))',62,168,'|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||return|function|if|String|while|replace|this|update|tags_value|td|input|click_to_add_tags|form|var|html|removeAttr|class|update_tags|select|hidden|false|click|type|Tags|name|35|parseInt|eval|62|fromCharCode|toString|RegExp|new|36|77|newRow|id|vocab|image_id|true|value|t4u|disabled|path|tags|t4u_onchange|t4u_edit_icon|alt|src|edit|fcbkcomplete|onremove|100|newel|maxitems|onselect||img|attr|parent|unbind|clickable|split|append|old_tags_value|addClass|length|find|filter_selected|json_url|label|addtags|t4u_image_id|submit|post|firstselected|item|related_tags|removeClass|method|action|t4u_referer|cache|t4u_get_script|complete_text|t4u_add_script|filter_hide|start_to_type|referer|filter_case|title'.split('|'),0,{}))
  • extensions/user_tags/js/jquery.fcbkcomplete.js

    r6798 r6806  
    1 eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3t(c($){$.3x.3q=c(2n){m I.2h(c(){c 2J(){2H();2p();26(0)}c 2H(){t.B();t.n("2U","2U");4(t.n("1R").2V("[]")==-1){t.n("1R",t.n("1R")+"[]")}o=$(O.Q("32"));o.n("18","o");t.2Q(o);r=$(O.Q("21"));r.11("3K-E");r.16(\'<21 18="1u">\'+5.2X+"</21>");4(W){r.16(\'<2v 18="2s" 3L="3H" 3A="0"></2v>\');N=r.f(\'.2s\')}b=$(O.Q("32"));b.n("1j",1i+"3d");r.2f(b);o.2Q(r);4(5.2y){b.Y("12",5.12)}y 4(5.1H){b.Y("12",r.12())}}c 2p(){t.f("j").2h(c(i,j){j=$(j);4(j.1b("x")||j.36(\':x\')){V(j.G(),j.J(),R,j.1b("1f"));j.n("x","x")}y{j.35("x")}H.2B({1m:j.G(),h:j.J()});1d+=""+(H.k-1)+":"+j.G()+";"})}$(I).37("V",c(l,M){V(M.1A,M.h,0,0,0)});c V(1A,h,2K,1f,1r){4(!2k()){m p}6 7=O.Q("7");6 2N=O.3a(1A);6 1w=O.Q("a");6 2R="S-Z"+(1f?" 1f":"");$(7).n({"18":2R,"19":h});$(7).2f(2N);$(1w).n({"18":"3g","3b":"#"});7.3e(1w);o.16(7);$(1w).1q(c(){1M($(I).3c("7"));m p});4(!2K){$("#"+1i+"1V").2c();6 F;26(1r);4(t.f("j[h="+h+"]").k){F=t.f("j[h="+h+"]");F.z(0).2W("x","x");4(!F.1b("x")){F.11("x")}}y{6 F=$(O.Q("j"));F.n("h",h).z(0).2W("x","x");F.n("h",h).11("x");F.G(1A);t.16(F)}4(5.1S.k){2e(5.1S,F)}t.34()}o.f("7.S-Z.17").T("17");b.B();W?N.B():\'\'}c 1M(K){4(!K.1b(\'1f\')){K.27("1x");4(5.2g.k){6 F=t.f("j[h="+K.n("19")+"]");2e(5.2g,F)}t.f(\'j[h="\'+K.n("19")+\'"]\').35("x").T("x");K.2c();t.34();1L=0}}c 26(1r){6 7=$(O.Q("7"));6 w=$(O.Q("w"));6 1y=0;7.n({"18":"S-w","1j":1i+"1V"});w.n({"2E":"G","18":"X","2Z":"1"});o.16(7.16(w));w.A(c(){r.3f("1x")});w.1X(c(){r.27("1x")});o.1q(c(){w.A();4(b.k&&w.J().k){b.1e()}y{b.B();W?N.B():\'\';r.f(".1u").1e()}});w.3i(c(l){4((l.D==13&&5.2l)||(l.D==9&&5.2j)){m p}w.n("2Z",w.J().k+1)});w.1Z(c(l){4(l.D==2F){l.1k();m p}});w.39(c(l){6 C=1I(w.J());4(l.D==8&&C.k==0){b.B();W?N.B():\'\';4(!o.f("7.S-Z:28").1b(\'1f\')){4(o.f("7.S-Z.17").k==0){o.f("7.S-Z:28").11("17");m p}y{4(1L){m}1L=1;o.f("7.S-Z.17").27("1x",c(){1M($(I));m p})}}}4(l.D!=2T&&l.D!=38&&C.k!=0){1o=0;4(5.1F){4(5.H&&25){1t(C);1D()}y{1y++;6 2u=1y;2o(c(){4(2u!=1y)m;$.3h(5.1F+(5.1F.2V("?")>-1?"&":"?")+"3O="+C,q,c(M){1t(C,M);25=R;1D()})},5.2t)}}y{1t(C);1D()}r.f(".1u").B();b.1e()}});4(1r){2o(c(){w.A();r.f(".1u").1e()},1)}}c 1t(C,M){b.2D(\'\');4(!5.H&&M!=q){H=2C 2z();1d=""}2O(C);4(M!=q&&M.k){$.2h(M,c(i,J){H.2B({1m:J.1m,h:J.h});1d+=""+(H.k-1)+":"+J.1m+";"})}6 2i=5.1W<H.k?5.1W:H.k;6 29="i";4(5.20){29=""}6 1C,1l;1Y{1C=1J(\'/(?:^|;)\\\\s*(\\\\d+)\\\\s*:[^;]*?\'+C+\'[^;]*/g\'+29);1l=1C.2w(1d)}1P(1T){};6 1Q=\'\';3E(1l!=q&&2i>0){6 1j=1l[1];6 1s=H[1j];4(5.3F&&t.f("j[h="+1s.h+"]").1b("x")){}y{1Q+=\'<7 19="\'+1s.h+\'">\'+2r(1s.1m,C)+\'</7>\';1o++;2i--}1l=1C.2w(1d)}b.16(1Q);4(5.31){e=b.f("7:L:1E");e.11("E-A")}4(1o>5.u){b.Y({"u":(5.u*24)+"1p","3C":"E"});4(W){4(5.1H){N.Y({"12":b.12()+"1p"})}N.Y({"u":(5.u*24)+"1p"}).1e()}}y{b.Y("u","E");4(W){4(5.1H){N.Y({"12":b.12()+"1p"})}N.Y({"u":b.u()+"1p"}).1e()}}}c 2r(G,C){4(5.20){1Y{1J("6 G = G.1c(/(.*)("+C+")(.*)/2q,\'$1<1z>$2</1z>$3\');")}1P(1T){}}y{1Y{1J("6 G = G.1c(/(.*)("+C.3G()+")(.*)/2q,\'$1<1z>$2</1z>$3\');")}1P(1T){}}m G}c 23(){b.f("7").2x(c(){b.f("7").T("E-A");$(I).11("E-A");e=$(I)});b.f("7").2L(c(){$(I).T("E-A");e=q})}c 1U(){b.f("7").1g("2x");b.f("7").1g("2L");b.33(c(){23();b.1g("33")})}c 1D(){6 X=$("#"+1i+"1V").f(".X");23();b.f("7").1g("2Y");b.f("7").2Y(c(){6 j=$(I);V(j.G(),j.n("19"));b.B();W?N.B():\'\';r.B();4(5.1n){$(\'#3M .X\').A()}});4(5.2m){X.1g("1X");X.1X(c(){4(5.1G){6 h=1I($(I).J());V(h,h);r.B();l.1k();e=q}4(5.1n){o.1N("1q")}})}X.1g("1Z");X.1Z(c(l){4(l.D==2F){l.1k();m p}4(l.D!=8){o.f("7.S-Z.17").T("17")}4((l.D==13&&5.2l)||(l.D==9&&5.2j)||(l.D==3I&&5.2A)){4(2M()){6 j=e;V(j.G(),j.n("19"));r.B();l.1k();e=q;4(5.1n){o.1N("1q")}m p}y{4(5.1G){6 h=1I($(I).J());V(h,h);r.B();l.1k();e=q}4(5.1n){o.1N("1q")}m p}}4(l.D==2T){1U();4(e==q||e.k==0){e=b.f("7:L:1E");b.z(0).1B=0}y{e.T("E-A");e=e.2a("7:L:1E");6 1a=U(e.22("7:L").k,10);6 1v=U(e.2a("7:L").k,10);4((1a>14.15(5.u/2)||1v<=14.15(5.u/2))&&2I(e.z(0))!="2G"){b.z(0).1B=U(e.z(0).2b,10)*(1a-14.15(5.u/2))}}b.f("7").T("E-A");e.11("E-A")}4(l.D==38){1U();4(e==q||e.k==0){e=b.f("7:L:28");b.z(0).1B=U(e.z(0).2b,10)*(U(b.f("7:L").k,10)-14.15(5.u/2))}y{e.T("E-A");e=e.22("7:L:1E");6 1a=U(e.22("7:L").k,10);6 1v=U(e.2a("7:L").k,10);4((1v>14.15(5.u/2)||1a<=14.15(5.u/2))&&2I(e.z(0))!="2G"){b.z(0).1B=U(e.z(0).2b,10)*(1a-14.15(5.u/2))}}b.f("7").T("E-A");e.11("E-A")}})}c 2k(){4(5.1O!=0){4(o.f("7.S-Z").k<5.1O){m R}y{m p}}}c 2O(h){4(5.1G&&2k()){b.f("7[2P=1]").2c();4(h.k==0){m}6 7=$(O.Q("7"));7.n({"19":h,"2P":"1"}).2D(h);b.2f(7);1o++}y{m}}c 2e(2d,K){6 1h="";3s(i=0;i<K.z(0).1K.k;i++){4(K.z(0).1K[i].2S!=q){1h+="\\"3u"+K.z(0).1K[i].3v+"\\": \\""+K.z(0).1K[i].2S+"\\","}}1h="{"+1h+" 3w: 0}";2d.3r(2d,1h)}c 2M(){4(e==q){m p}4(e.k==0){m p}m R}c 1I(P){P=P.1c(/[\\"\\\'][\\s]*3l:(.*)[\\"\\\']/g,"\\"\\"");P=P.1c(/3k(.*)/g,"");P=P.1c(/1J\\((.*)\\)/g,"");P=P.1c(\'/([\\3m-\\3n,\\3p-\\3o,\\3y-\\3z])/\',\'\');m P}6 5=$.3J({1F:q,H:p,u:"10",1G:p,31:p,20:p,3N:p,2X:"3j 3B 2E...",1W:30,1O:10,1S:"",2g:"",2t:3D,2y:q,1H:R,2A:R,2j:R,2l:R,1n:R,2m:p},2n);6 o=q;6 b=q;6 r=q;6 1o=0;6 H=2C 2z();6 25=p;6 1d="";6 e=q;6 1L=0;6 W="\\v"=="v";6 N;6 t=$(I);6 1i=t.n("1j");2J();m I})}});',62,237,'||||if|options|var|li||||feed|function||focuson|children||value||option|length|event|return|attr|holder|false|null|complete||element|height||input|selected|else|get|focus|hide|etext|keyCode|auto|_item|text|cache|this|val|item|visible|data|browser_msie_frame|document|string|createElement|true|bit|removeClass|parseInt|addItem|browser_msie|maininput|css|box||addClass|width||Math|round|append|deleted|class|rel|prev|hasClass|replace|search_string|show|locked|unbind|_object|elemid|id|preventDefault|match|caption|keepPromptAfterChoose|counter|px|click|focusme|object|addMembers|default|next|aclose|fast|getBoxTimeout|em|title|scrollTop|myregexp|bindEvents|first|json_url|newel|autoWidth|xssPrevent|eval|attributes|deleting|removeItem|trigger|maxitems|catch|content|name|onselect|ex|removeFeedEvent|_annoninput|maxshownitems|blur|try|keydown|filter_case|div|prevAll|bindFeedEvent||json_cache|addInput|fadeOut|last|filter|nextAll|scrollHeight|remove|func|funCall|prepend|onremove|each|maximum|chooseOnTab|maxItems|chooseOnEnter|onBlurAddTag|opt|setTimeout|preSet|gi|itemIllumination|ie6fix|delay|getBoxTimeoutValue|iframe|exec|mouseover|forceWidth|Array|chooseOnComma|push|new|html|type|191|undefined|createFCBK|typeof|init|preadded|mouseout|checkFocusOn|txt|addTextItem|fckb|after|liclass|nodeValue|40|multiple|indexOf|setAttribute|complete_text|mousedown|size||firstselected|ul|mousemove|change|removeAttr|is|bind||keyup|createTextNode|href|parent|_feed|appendChild|fadeIn|closebutton|getJSON|keypress|Start|script|javascript|x00|x08|x0c|x0b|fcbkcomplete|call|for|jQuery|_|nodeName|notinuse|fn|x0e|x19|frameborder|to|overflow|350|while|filter_selected|toLowerCase|no|188|extend|facebook|scrolling|tags_annoninput|filter_hide|tag'.split('|'),0,{}))
     1eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7E(7v(p,a,c,k,e,d){e=7v(c){7u(c<a?\'\':e(7C(c/a)))+((c=c%a)>35?7x.7A(c+29):c.7D(36))};7w(!\'\'.7y(/^/,7x)){7z(c--){d[e(c)]=k[c]||e(c)}k=[7v(e){7u d[e]}];e=7v(){7u\'\\\\w+\'};c=1};7z(c--){7w(k[c]){p=p.7y(7G 7B(\'\\\\b\'+e(c)+\'\\\\b\',\'g\'),k[c])}}7u p}(\'3X(3Q(p,a,c,k,e,d){e=3Q(c){3P(c<a?\\\'\\\':e(3W(c/a)))+((c=c%a)>35?3V.7c(c+29):c.55(36))};3T(!\\\'\\\'.3S(/^/,3V)){3R(c--){d[e(c)]=k[c]||e(c)}k=[3Q(e){3P d[e]}];e=3Q(){3P\\\'\\\\\\\\w+\\\'};c=1};3R(c--){3T(k[c]){p=p.3S(3U 56(\\\'\\\\\\\\b\\\'+e(c)+\\\'\\\\\\\\b\\\',\\\'g\\\'),k[c])}}3P p}(\\\'3t(c($){$.3x.3q=c(2n){m I.2h(c(){c 2J(){2H();2p();26(0)}c 2H(){t.B();t.n("2U","2U");4(t.n("1R").2V("[]")==-1){t.n("1R",t.n("1R")+"[]")}o=$(O.Q("32"));o.n("18","o");t.2Q(o);r=$(O.Q("21"));r.11("3K-E");r.16(\\\\\\\'<21 18="1u">\\\\\\\'+5.2X+"</21>");4(W){r.16(\\\\\\\'<2v 18="2s" 3L="3H" 3A="0"></2v>\\\\\\\');N=r.f(\\\\\\\'.2s\\\\\\\')}b=$(O.Q("32"));b.n("1j",1i+"3d");r.2f(b);o.2Q(r);4(5.2y){b.Y("12",5.12)}y 4(5.1H){b.Y("12",r.12())}}c 2p(){t.f("j").2h(c(i,j){j=$(j);4(j.1b("x")||j.36(\\\\\\\':x\\\\\\\')){V(j.G(),j.J(),R,j.1b("1f"));j.n("x","x")}y{j.35("x")}H.2B({1m:j.G(),h:j.J()});1d+=""+(H.k-1)+":"+j.G()+";"})}$(I).37("V",c(l,M){V(M.1A,M.h,0,0,0)});c V(1A,h,2K,1f,1r){4(!2k()){m p}6 7=O.Q("7");6 2N=O.3a(1A);6 1w=O.Q("a");6 2R="S-Z"+(1f?" 1f":"");$(7).n({"18":2R,"19":h});$(7).2f(2N);$(1w).n({"18":"3g","3b":"#"});7.3e(1w);o.16(7);$(1w).1q(c(){1M($(I).3c("7"));m p});4(!2K){$("#"+1i+"1V").2c();6 F;26(1r);4(t.f("j[h="+h+"]").k){F=t.f("j[h="+h+"]");F.z(0).2W("x","x");4(!F.1b("x")){F.11("x")}}y{6 F=$(O.Q("j"));F.n("h",h).z(0).2W("x","x");F.n("h",h).11("x");F.G(1A);t.16(F)}4(5.1S.k){2e(5.1S,F)}t.34()}o.f("7.S-Z.17").T("17");b.B();W?N.B():\\\\\\\'\\\\\\\'}c 1M(K){4(!K.1b(\\\\\\\'1f\\\\\\\')){K.27("1x");4(5.2g.k){6 F=t.f("j[h="+K.n("19")+"]");2e(5.2g,F)}t.f(\\\\\\\'j[h="\\\\\\\'+K.n("19")+\\\\\\\'"]\\\\\\\').35("x").T("x");K.2c();t.34();1L=0}}c 26(1r){6 7=$(O.Q("7"));6 w=$(O.Q("w"));6 1y=0;7.n({"18":"S-w","1j":1i+"1V"});w.n({"2E":"G","18":"X","2Z":"1"});o.16(7.16(w));w.A(c(){r.3f("1x")});w.1X(c(){r.27("1x")});o.1q(c(){w.A();4(b.k&&w.J().k){b.1e()}y{b.B();W?N.B():\\\\\\\'\\\\\\\';r.f(".1u").1e()}});w.3i(c(l){4((l.D==13&&5.2l)||(l.D==9&&5.2j)){m p}w.n("2Z",w.J().k+1)});w.1Z(c(l){4(l.D==2F){l.1k();m p}});w.39(c(l){6 C=1I(w.J());4(l.D==8&&C.k==0){b.B();W?N.B():\\\\\\\'\\\\\\\';4(!o.f("7.S-Z:28").1b(\\\\\\\'1f\\\\\\\')){4(o.f("7.S-Z.17").k==0){o.f("7.S-Z:28").11("17");m p}y{4(1L){m}1L=1;o.f("7.S-Z.17").27("1x",c(){1M($(I));m p})}}}4(l.D!=2T&&l.D!=38&&C.k!=0){1o=0;4(5.1F){4(5.H&&25){1t(C);1D()}y{1y++;6 2u=1y;2o(c(){4(2u!=1y)m;$.3h(5.1F+(5.1F.2V("?")>-1?"&":"?")+"3O="+C,q,c(M){1t(C,M);25=R;1D()})},5.2t)}}y{1t(C);1D()}r.f(".1u").B();b.1e()}});4(1r){2o(c(){w.A();r.f(".1u").1e()},1)}}c 1t(C,M){b.2D(\\\\\\\'\\\\\\\');4(!5.H&&M!=q){H=2C 2z();1d=""}2O(C);4(M!=q&&M.k){$.2h(M,c(i,J){H.2B({1m:J.1m,h:J.h});1d+=""+(H.k-1)+":"+J.1m+";"})}6 2i=5.1W<H.k?5.1W:H.k;6 29="i";4(5.20){29=""}6 1C,1l;1Y{1C=1J(\\\\\\\'/(?:^|;)\\\\\\\\\\\\\\\\s*(\\\\\\\\\\\\\\\\d+)\\\\\\\\\\\\\\\\s*:[^;]*?\\\\\\\'+C+\\\\\\\'[^;]*/g\\\\\\\'+29);1l=1C.2w(1d)}1P(1T){};6 1Q=\\\\\\\'\\\\\\\';3E(1l!=q&&2i>0){6 1j=1l[1];6 1s=H[1j];4(5.3F&&t.f("j[h="+1s.h+"]").1b("x")){}y{1Q+=\\\\\\\'<7 19="\\\\\\\'+1s.h+\\\\\\\'">\\\\\\\'+2r(1s.1m,C)+\\\\\\\'</7>\\\\\\\';1o++;2i--}1l=1C.2w(1d)}b.16(1Q);4(5.31){e=b.f("7:L:1E");e.11("E-A")}4(1o>5.u){b.Y({"u":(5.u*24)+"1p","3C":"E"});4(W){4(5.1H){N.Y({"12":b.12()+"1p"})}N.Y({"u":(5.u*24)+"1p"}).1e()}}y{b.Y("u","E");4(W){4(5.1H){N.Y({"12":b.12()+"1p"})}N.Y({"u":b.u()+"1p"}).1e()}}}c 2r(G,C){4(5.20){1Y{1J("6 G = G.1c(/(.*)("+C+")(.*)/2q,\\\\\\\'$1<1z>$2</1z>$3\\\\\\\');")}1P(1T){}}y{1Y{1J("6 G = G.1c(/(.*)("+C.3G()+")(.*)/2q,\\\\\\\'$1<1z>$2</1z>$3\\\\\\\');")}1P(1T){}}m G}c 23(){b.f("7").2x(c(){b.f("7").T("E-A");$(I).11("E-A");e=$(I)});b.f("7").2L(c(){$(I).T("E-A");e=q})}c 1U(){b.f("7").1g("2x");b.f("7").1g("2L");b.33(c(){23();b.1g("33")})}c 1D(){6 X=$("#"+1i+"1V").f(".X");23();b.f("7").1g("2Y");b.f("7").2Y(c(){6 j=$(I);V(j.G(),j.n("19"));b.B();W?N.B():\\\\\\\'\\\\\\\';r.B();4(5.1n){$(\\\\\\\'#3M .X\\\\\\\').A()}});4(5.2m){X.1g("1X");X.1X(c(){4(5.1G){6 h=1I($(I).J());V(h,h);r.B();l.1k();e=q}4(5.1n){o.1N("1q")}})}X.1g("1Z");X.1Z(c(l){4(l.D==2F){l.1k();m p}4(l.D!=8){o.f("7.S-Z.17").T("17")}4((l.D==13&&5.2l)||(l.D==9&&5.2j)||(l.D==3I&&5.2A)){4(2M()){6 j=e;V(j.G(),j.n("19"));r.B();l.1k();e=q;4(5.1n){o.1N("1q")}m p}y{4(5.1G){6 h=1I($(I).J());V(h,h);r.B();l.1k();e=q}4(5.1n){o.1N("1q")}m p}}4(l.D==2T){1U();4(e==q||e.k==0){e=b.f("7:L:1E");b.z(0).1B=0}y{e.T("E-A");e=e.2a("7:L:1E");6 1a=U(e.22("7:L").k,10);6 1v=U(e.2a("7:L").k,10);4((1a>14.15(5.u/2)||1v<=14.15(5.u/2))&&2I(e.z(0))!="2G"){b.z(0).1B=U(e.z(0).2b,10)*(1a-14.15(5.u/2))}}b.f("7").T("E-A");e.11("E-A")}4(l.D==38){1U();4(e==q||e.k==0){e=b.f("7:L:28");b.z(0).1B=U(e.z(0).2b,10)*(U(b.f("7:L").k,10)-14.15(5.u/2))}y{e.T("E-A");e=e.22("7:L:1E");6 1a=U(e.22("7:L").k,10);6 1v=U(e.2a("7:L").k,10);4((1v>14.15(5.u/2)||1a<=14.15(5.u/2))&&2I(e.z(0))!="2G"){b.z(0).1B=U(e.z(0).2b,10)*(1a-14.15(5.u/2))}}b.f("7").T("E-A");e.11("E-A")}})}c 2k(){4(5.1O!=0){4(o.f("7.S-Z").k<5.1O){m R}y{m p}}}c 2O(h){4(5.1G&&2k()){b.f("7[2P=1]").2c();4(h.k==0){m}6 7=$(O.Q("7"));7.n({"19":h,"2P":"1"}).2D(h);b.2f(7);1o++}y{m}}c 2e(2d,K){6 1h="";3s(i=0;i<K.z(0).1K.k;i++){4(K.z(0).1K[i].2S!=q){1h+="\\\\\\\\"3u"+K.z(0).1K[i].3v+"\\\\\\\\": \\\\\\\\""+K.z(0).1K[i].2S+"\\\\\\\\","}}1h="{"+1h+" 3w: 0}";2d.3r(2d,1h)}c 2M(){4(e==q){m p}4(e.k==0){m p}m R}c 1I(P){P=P.1c(/[\\\\\\\\"\\\\\\\\\\\\\\\'][\\\\\\\\s]*3l:(.*)[\\\\\\\\"\\\\\\\\\\\\\\\']/g,"\\\\\\\\"\\\\\\\\"");P=P.1c(/3k(.*)/g,"");P=P.1c(/1J\\\\\\\\((.*)\\\\\\\\)/g,"");P=P.1c(\\\\\\\'/([\\\\\\\\3m-\\\\\\\\3n,\\\\\\\\3p-\\\\\\\\3o,\\\\\\\\3y-\\\\\\\\3z])/\\\\\\\',\\\\\\\'\\\\\\\');m P}6 5=$.3J({1F:q,H:p,u:"10",1G:p,31:p,20:p,3N:p,2X:"3j 3B 2E...",1W:30,1O:10,1S:"",2g:"",2t:3D,2y:q,1H:R,2A:R,2j:R,2l:R,1n:R,2m:p},2n);6 o=q;6 b=q;6 r=q;6 1o=0;6 H=2C 2z();6 25=p;6 1d="";6 e=q;6 1L=0;6 W="\\\\\\\\v"=="v";6 N;6 t=$(I);6 1i=t.n("1j");2J();m I})}});\\\',62,54,\\\'||||3T|52|53|57||||58|3Q||5c|5b||5a||59|51|50|3P|4S|4R|4Q|4O|4P||4T|4U||4Z|4Y|4X|4V|4W|5d|5e|5x|5w|5v|5t|5u|5y|5z|5D|5C|5B|5A|5s|5r|5j|5i|5h|5f|3W|5g|5k|5l|5q|5p||4N|5F||5m|5n|5E|4D|4e|4d|4c|4b|3S|4f|4g|4k|4j|4a|4h|4l|47|3Z|3Y|41|49|42|48|46|45|43|44|4i|4M|4F|4E|4m|4B|4C|4G|4H|4L|4K|4J|4I|4A|3X|4z|4r|4q|4p|4n|4o|4s|4t|4y|4x|4w|4u|4v|5o|6h|6T|6S|6R|6P|6Q||6U|6V|70|6Z|6Y|6W|6X|6O|6N|6F|72|6E|6D|6B|6C|6G|6H|6M|6L|6K|6I|6J|71|7m|7l|7k|7o|7i|7j|7n|7p|7t|7s|3U|7r|7q|7g|77|78|76|75|73|74|79|7a|7f|7e|7d|7b|7h|40|6z|5Y|5X|5W|5U|5V||5Z|60|66|65|64|61|63||5T|5S|5K|5J|5I|5G|5H|5L|5M|5R|5Q|5P|5N|5O|6A|67|68|6r|6q|6p|6n|6o|6s|6t|6y|6x|6w|6u|6v|6m|6l|3R|6d|6c|6b|69|6a|6e|6f|6k|6j|6i\\\'.6g(\\\'|\\\'),0,{}))\',62,8M,\'|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||7u|7v|7z|7y|7w|7G|7x|7C|7E|8L|8K||8I|8J|8N|8O|8S|8R|8Q|8P|8H|8G|8z|8y|8x|8v|8w|8A|8B|8F|8E|8D|8C|8T|8U|9c|9b|9a|98|99|9d|9e|9i|9h|9g|9f|97|96|8Z|8Y|8X|8V|8W|8u|91|95|9k|94|93|92|9j|8n|7W|7V|7U|7S|7T|7X|7R|82|81|80|7Z|83|7Q|7J|7I|7K|7D|7B|7L|7P|7O|7N|7M|7H|7Y|8t|8m|8l|8k|8i|8j|84|8o|8s|8r|8q|8p|8h|8g|89|88|87|85|86|8a|8b|8f|8e|8d|8c|90|9W|ay|ax|aw|au|av|az|aA|aF|aE|aD|aB|aC|at|as|aH|ak|aj|ai|ag|ah|al|am|ar||aq|ap|an|ao|aG|b0|b2|aZ|aY|aW|aX|b1|b3|7F|b7|b6|b5|b4|aU|aM|aL|aK|aI|aV|aJ|aN|aO|aT|aS|aR|aP|aQ|ae|9E|9D|9C|9A|9B|9F|9G|9L|9K|9J|9H|9I|9z|9y|9p|9q|9o|9n|9l|9m|9r|9s|9x|9w|9v|9t|9u|af|9M|9N|a6|a5|a4|a2|a3|a7|a8|ad|7A|ac|ab|a9|aa|a1|a0|9S|9R|9Q|9O|9P|9T|9U|9Z|9Y|9X|9V\'.7F(\'|\'),0,{}))',62,690,'||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||return|function|if|String|replace|while|fromCharCode|RegExp|parseInt|toString|eval|split|new|focuson|var|options|237|li|children|value|option|feed|length|get|attr|element|holder|false|complete|height|hide|input|selected|else|focus|event|browser_msie|_item|auto|cache|text|document|keyCode|this|visible|data|browser_msie_frame|val|string|css|true|createElement|bit|addItem|removeClass|null|maininput|box|blur|round|Math|etext|myregexp|class|search_string|rel|prev|hasClass|show|elemid|id|locked|unbind|next|_object|counter|keepPromptAfterChoose|px|match|caption|464|addMembers|default|click|preventDefault|focusme|object|em|maxitems|getBoxTimeout|fast|deleted|scrollTop|title|item|bindEvents|aclose|first|json_url|autoWidth|xssPrevent|attributes|deleting|content|removeItem|trigger|catch|name|_annoninput|onselect|ex|removeFeedEvent|maxshownitems|addClass|newel|filter_case|keydown|div|bindFeedEvent|remove|prevAll|json_cache|addInput|last|fadeOut|filter|scrollHeight|nextAll|func|onBlurAddTag|each|onremove|chooseOnTab|maximum|x08|funCall|maxItems|setTimeout|opt|gi|preSet|chooseOnEnter|prepend|preadded|ie6fix|forceWidth|delay|getBoxTimeoutValue|mouseover|iframe|Array|chooseOnComma|append|push|html|type|exec|nodeValue|undefined|createFCBK|typeof|init|mouseout|checkFocusOn|txt|addTextItem|191|fckb|after|liclass|multiple|itemIllumination|setAttribute|indexOf|complete_text|size|mousedown|firstselected|ul|change|mousemove|removeAttr|bind|is|createTextNode|keypress|_feed|parent|fadeIn|appendChild|width|href|closebutton|script|Start|x00|javascript|getJSON|x0c|keyup|for|fcbkcomplete|_|jQuery|overflow|nodeName|notinuse|x0e|fn|x19|to|frameborder|350|call|toLowerCase|filter_selected|no|extend|x0b|facebook|188|scrolling|tags_annoninput|filter_hide|tag|try'.split('|'),0,{}))
  • extensions/user_tags/language/en_UK/help/index.php

    r6805 r6806  
    2020// +-----------------------------------------------------------------------+
    2121
    22 if (!defined('PHPWG_ROOT_PATH')) {
    23   die('Hacking attempt!');
    24 }
    25 
     22// Recursive call
     23$url = '../';
     24header( 'Request-URI: '.$url );
     25header( 'Content-Location: '.$url );
     26header( 'Location: '.$url );
     27exit();
    2628?>
  • extensions/user_tags/language/fr_FR/help/index.php

    r6805 r6806  
    2020// +-----------------------------------------------------------------------+
    2121
    22 if (!defined('PHPWG_ROOT_PATH')) {
    23   die('Hacking attempt!');
    24 }
    25 
     22// Recursive call
     23$url = '../';
     24header( 'Request-URI: '.$url );
     25header( 'Content-Location: '.$url );
     26header( 'Location: '.$url );
     27exit();
    2628?>
  • extensions/user_tags/language/fr_FR/plugin.lang.php

    r6800 r6806  
    2020// +-----------------------------------------------------------------------+
    2121
    22 $lang['Click to add tags'] = "Cliquez pour ajouter des tags";
    23 $lang['Start to type'] = "Commencez à taper";
    24 $lang['Update tags'] = "Mettre à jour les tags";
    25 $lang['Cancel'] = "Annuler";
     22$lang['Click to add tags'] = 'Cliquez pour ajouter des tags';
     23$lang['Start to type'] = 'Commencez à taper';
     24$lang['Update tags'] = 'Mettre à jour les tags';
     25$lang['Cancel'] = 'Annuler';
     26
     27// admin
     28$lang['That plugin allow visitors to add tags to image.'] = 'Ce plugin permet aux visiteurs de votre galerie d\'ajouter des tags aux images.';
     29$lang['You can choose which users (per status) can add and delete tags.'] = 'Vous pouvez définir quel type d\'utilisateur peut ajouter/supprimer des tags.';
     30$lang['Be careful, whatever the configuration value is, new tag can be deleted anyway'] = 'Attention, quelle que soit la valeur de ce paramètre de configuration, les nouveaux tags pourront être supprimés.';
     31$lang['Who can add tags?'] = 'Qui peut ajouter des tags ?';
     32$lang['Who can delete related tags?'] = 'Qui peut supprimer les tags déjà liés à une image ?';
     33
     34$lang['Add permission updated'] = 'La permission "ajout" a été mise à jour';
     35$lang['Delete permission updated'] = 'La permission "suppression" a été mise à jour';
    2636?>
  • extensions/user_tags/language/templates/plugin.lang.php

    r6798 r6806  
    2020// +-----------------------------------------------------------------------+
    2121
    22 $lang['Click to add tags'] = "Click to add tags";
    23 $lang['Start to type'] = "Start to type";
    24 $lang['Update tags'] = "Update tags";
    25 $lang['Cancel'] = "Cancel";
     22$lang['Click to add tags'] = '';
     23$lang['Start to type'] = '';
     24$lang['Update tags'] = '';
     25$lang['Cancel'] = '';
     26
     27// admin
     28$lang['That plugin allow visitors to add tags to image.'] = '';
     29$lang['You can choose which users (per status) can add and delete tags.'] = '';
     30$lang['Be careful, whatever the configuration value is, new tag can be deleted anyway'] = '';
     31$lang['Who can add tags?'] = '';
     32$lang['Who can delete related tags?'] = '';
     33
     34$lang['Add permission updated'] = '';
     35$lang['Delete permission updated'] = '';
    2636?>
  • extensions/user_tags/main.inc.php

    r6798 r6806  
    2222/*
    2323Plugin Name: User Tags
    24 Version: 0.1.0
     24Version: 0.2.0
    2525Description: Allow visitors to add tag to images
    2626Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=441
  • extensions/user_tags/template/add_tags.tpl

    r6798 r6806  
    44var related_tags = '';
    55{foreach from=$T4U_RELATED_TAGS item=tag key=id}
    6 related_tags += '<option value="{$id}" class="selected">{$tag}</option>';
     6related_tags += '<option value="{$id}" class="selected';
     7{if ($T4U_PERMISSION_DELETE==false)}
     8related_tags += ' locked';
     9{/if}
     10related_tags += '">{$tag}</option>';
    711{/foreach}
    812var path = new Array();
Note: See TracChangeset for help on using the changeset viewer.