"remove AMM plugin

asked in topic #p98003"

git-svn-id: http://piwigo.org/svn/branches/2.0@2792 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
grum 2008-10-22 21:35:23 +00:00
parent fbf7b9b6ce
commit de54bb8586
40 changed files with 0 additions and 3166 deletions

View file

@ -1,13 +0,0 @@
<div class="titrePage">
<h2 style="position:absolute;right:0px;top:32px;height:auto;font-size:12px;font-weight:normal;">:: {$plugin.AMM_VERSION} ::</h2>
<h2>{'g002_title_page'|@translate} <span style="font-size:-1;font-weight:normal;">{$TABSHEET_TITLE}</span></h2>
{$tabsheet}
</div>
{if isset($page_nfo)}
<p>{$page_nfo}</p>
{/if}
{$AMM_BODY_PAGE}

View file

@ -1,114 +0,0 @@
{literal}
<script type="text/javascript">
//global var ; need to not have to initialize them every time a value is changed
var objlang;
var objnames = new Array('iamm_links_title');
var objinput = new Array(); //input text from form => objinput[name]
var objhidden = new Array(); //input hidden from form => objhidden[name][lang]
function init()
{
objlang = document.getElementById('islang');
for(i=0;i<objnames.length;i++)
{
objinput[i] = document.getElementById(objnames[i]);
objhidden[i] = new Array();
for(j=0;j<objlang.options.length;j++)
{
objhidden[i][j] = document.getElementById(objnames[i]+'_'+objlang.options[j].value);
}
}
}
function change_lang()
{
for(i=0;i<objnames.length;i++)
{
objinput[i].value = objhidden[i][objlang.options.selectedIndex].value;
}
}
function apply_changes(input_id)
{
var obj=document.getElementById(input_id);
objhidden[objnames.indexOf(input_id)][objlang.options.selectedIndex].value = obj.value;
}
function do_translation()
{
var inputid = document.getElementById('iamm_links_title');
var tolang = objlang.options[objlang.options.selectedIndex].value.substr(0,2);
google_translate(inputid.value, '{/literal}{$datas.fromlang}{literal}', tolang, inputid, 'value', apply_changes, inputid.id);
}
</script>
{/literal}
<h3><span style="font-weight:normal"><a href="{$datas.lnk_list}" title="{'g002_configlinks'|@translate}">{'g002_linkslist'|@translate} </span></a> / {'g002_configlinks'|@translate}
</h3>
<form method="post" action="" class="general">
<fieldset>
<legend>{'g002_setting_block_menu'|@translate}</legend>
{if isset($datas.language_list) and count($datas.language_list)}
{foreach from=$datas.language_list key=name item=language_row}
<input type="hidden" name="famm_links_title_{$language_row.LANG}"
id="iamm_links_title_{$language_row.LANG}" value="{$language_row.MENUBARTIT}">
{/foreach}
{/if}
<table class="formtable">
<tr>
<td>{'g002_setting_block_title'|@translate}</td>
<td>
<input type="text" id="iamm_links_title" value="" maxlength="50" onkeyup="apply_changes('iamm_links_title');" onblur="apply_changes('iamm_links_title');"/>
<select onchange="change_lang();" id="islang">
{html_options values=$datas.language_list_values output=$datas.language_list_labels selected=$datas.lang_selected}
</select><br>
</td>
</tr>
<tr>
<td></td>
<td style="font-size:80%;">
<a style="cursor:pointer;" onclick="do_translation()">{'g002_translate'|@translate}</a>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>{'g002_setting_link_links'|@translate}</legend>
<table class="formtable">
<tr>
<td>{'g002_setting_link_show_icon'|@translate}</td>
<td>
<select name="famm_links_show_icons" id="iamm_links_show_icons">
{html_options values=$datas.yesno_values output=$datas.yesno_labels selected=$datas.show_icons_selected}
</select>
</td>
</tr>
</table>
</fieldset>
<p>
<input type="submit" name="famm_submit_apply" id="iamm_submit_apply" value="{'g002_apply'|@translate}" >
</p>
<input type="hidden" name="famm_modeedit" value="config">
</form>
<script type="text/javascript">
init();
change_lang();
</script>

View file

@ -1,56 +0,0 @@
{literal}
<script type="text/javascript">
function load_list(do_action, item, permut)
{
/*
do_action
'list' : just load list
'permut' : permut items in list
'delete' : delete the item in list
*/
var doc = document.getElementById("iurls");
action_todo='';
if(do_action=='permut')
{
action_todo='links_permut&fItem='+item+'&fPermut='+permut;
}
else if(do_action=='delete')
{
if(confirm('{/literal}{'g002_confirm_delete_link'|@translate}{literal}'))
{
action_todo='links_delete&fItem='+item;
}
}
else
{
action_todo='links_list';
}
if(action_todo!='')
{
http_request=create_httpobject('get', '', '{/literal}{$datas.AMM_AJAX_URL_LIST}{literal}'+action_todo, false);
http_request.send(null);
doc.innerHTML=http_request.responseText;
}
}
</script>
{/literal}
<h3>{'g002_linkslist'|@translate} / <span style="font-weight:normal"><a href="{$datas.lnk_config}" title="{'g002_configlinks'|@translate}">{'g002_configlinks'|@translate}</a></span>
</h3>
[{$datas.nburl}]<br/>
<a href="{$datas.lnk_create}" title="{'g002_addlink'|@translate}">{'g002_addlink'|@translate}</a>
<br/>
<div id="iurls"></div>
<script type="text/javascript">
load_list('list', 0, 0);
</script>

View file

@ -1,28 +0,0 @@
{if isset($datas.urls) and count($datas.urls)}
<table class="table2 littlefont">
<tr class="throw">
<th width='15'>&nbsp;</th>
<th>{'g002_label'|@translate}</th>
<th>{'g002_url'|@translate}</th>
<th>{'g002_mode'|@translate}</th>
<th>{'g002_visible'|@translate}</th>
<th colspan=4>&nbsp;</th>
</tr>
{foreach from=$datas.urls key=name item=url}
<tr>
<td>{if $url.img!=""}<img src='{$url.img}'/>{else}&nbsp;{/if}</td>
<td>{$url.label}</td>
<td>{$url.url}</td>
<td>{$url.mode}</td>
<td style="text-align:center;">{$url.visible}</td>
<td width="15px">{if $url.up}<a style="cursor:pointer;" onclick="load_list('permut', {$url.ID}, {$url.IDPREV})"><img src='{$plugin.PATH}/admin/go-up.png'/></a>{else}&nbsp;{/if}</td>
<td width="15px">{if $url.down}<a style="cursor:pointer;" onclick="load_list('permut', {$url.ID}, {$url.IDNEXT})"><img src='{$plugin.PATH}/admin/go-down.png'/></a>{else}&nbsp;{/if}</td>
<td width="15px"><a href="{$url.edit}"><img src='{$themeconf.icon_dir}/category_edit.png'/></a></td>
<td width="15px"><a style="cursor:pointer;" onclick="load_list('delete', {$url.ID}, 0)"><img src='{$themeconf.icon_dir}/delete.png'/></a></td>
</tr>
{/foreach}
</table>
{/if}

View file

@ -1,97 +0,0 @@
{literal}
<script type="text/javascript">
function change_selected_icon()
{
var doc = document.getElementById("iamm_icon");
var icon_list = Array();
{/literal}
{foreach from=$datas.icons_values key=name item=icon}
icon_list.push('{$icon.img}');
{/foreach}
{literal}
doc.style.backgroundImage='url('+icon_list[doc.options.selectedIndex]+')';
}
</script>
{/literal}
{if isset($datas.modeedit)}
<h3>
{if $datas.modeedit=='create'}
{'g002_createoflink'|@translate}
{else}
{'g002_editoflink'|@translate}
{/if}
/ <span style="font-weight:normal"><a href="{$datas.lnk_list}">{'g002_linkslist'|@translate}</a></span></h3>
</h3>
<form method="post" action="" class="general">
<fieldset>
<table class="formtable">
<tr>
<td>{'g002_label'|@translate}<td>
<td><input type='text' name="famm_label" id='iamm_label' value='{$datas.label}' maxlength=50 size=50></td>
</tr>
<tr>
<td>{'g002_url'|@translate}<td>
<td><input type='text' name="famm_url" id='iamm_url' value='{$datas.url}' maxlength=255 size=50></td>
</tr>
<tr>
<td>{'g002_icon'|@translate}<td>
<td>
<select name="famm_icon" id="iamm_icon" onchange="change_selected_icon();" style="background-image:url('{$datas.icons_img}');background-position:2px 1px;background-repeat:no-repeat;padding-left:18px;">
{foreach from=$datas.icons_values key=name item=icon}
<option value="{$icon.value}" style="background: transparent url('{$icon.img}') no-repeat scroll 0px 0px;padding-left:20px;" {if $icon.value==$datas.icons_selected}selected{/if}>{$icon.label}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td>{'g002_mode'|@translate}<td>
<td>
<select name="famm_mode" id="iamm_mode">
{html_options values=$datas.mode_values output=$datas.mode_labels selected=$datas.mode_selected}
</select>
</td>
</tr>
<tr>
<td>{'g002_visible'|@translate}<td>
<td>
<select name="famm_visible" id="iamm_visible">
{html_options values=$datas.visible_values output=$datas.visible_labels selected=$datas.visible_selected}
</select>
</td>
</tr>
</table>
</fieldset>
{if $datas.modeedit=='create'}
<p>
<input type="submit" name="famm_submit_create" id="iamm_submit_create" value="{'g002_createthelink'|@translate}" >
</p>
{/if}
{if $datas.modeedit=='modify'}
<p>
<input type="submit" name="famm_submit_modify" id="iamm_submit_modify" value="{'g002_editthelink'|@translate}" >
</p>
{/if}
<input type="hidden" name="famm_modeedit" value="{$datas.modeedit}">
<input type="hidden" name="famm_id" value="{$datas.id}">
</form>
{/if}

View file

@ -1,50 +0,0 @@
{literal}
<script type="text/javascript">
function load_list(do_action, item)
{
/*
do_action
'list' : just load list
'delete' : delete the item in list
*/
var doc = document.getElementById("isections");
action_todo='';
if(do_action=='delete')
{
if(confirm('{/literal}{'g002_confirm_delete_link'|@translate}{literal}'))
{
action_todo='personalised_delete&fItem='+item;
}
}
else
{
action_todo='personalised_list';
}
if(action_todo!='')
{
http_request=create_httpobject('get', '', '{/literal}{$datas.AMM_AJAX_URL_LIST}{literal}'+action_todo, false);
http_request.send(null);
doc.innerHTML=http_request.responseText;
}
}
</script>
{/literal}
<h3>{'g002_personalisedlist'|@translate}</h3>
[{$datas.nbsections}]<br/>
<a href="{$datas.lnk_create}" title="{'g002_addsection'|@translate}">{'g002_addsection'|@translate}</a>
<br/>
<div id="isections"></div>
<script type="text/javascript">
load_list('list', 0);
</script>

View file

@ -1,22 +0,0 @@
{if isset($datas.sections) and count($datas.sections)}
<table class="table2 littlefont">
<tr class="throw">
<th>{'g002_setting_personalised_nfo'|@translate}</th>
<th>{'g002_title'|@translate}</th>
<th>{'g002_visible'|@translate}</th>
<th colspan=2>&nbsp;</th>
</tr>
{foreach from=$datas.sections key=name item=section}
<tr>
<td>{$section.nfo}</td>
<td>{$section.title}</td>
<td style="text-align:center;">{$section.visible}</td>
<td width="15px"><a href="{$section.edit}"><img src='{$themeconf.icon_dir}/category_edit.png'/></a></td>
<td width="15px"><a style="cursor:pointer;" onclick="load_list('delete', {$section.ID})"><img src='{$themeconf.icon_dir}/delete.png'/></a></td>
</tr>
{/foreach}
</table>
{/if}

View file

@ -1,159 +0,0 @@
{* $Id $ *}
{include file='include/autosize.inc.tpl'}
{literal}
<script type="text/javascript">
//global var ; need to not have to initialize them every time a value is changed
var objlang;
var objnames = new Array('iamm_personalised_title', 'iamm_personalised_content');
var objinput = new Array(); //input text from form => objinput[name]
var objhidden = new Array(); //input hidden from form => objhidden[name][lang]
function init()
{
objlang = document.getElementById('islang');
for(i=0;i<objnames.length;i++)
{
objinput[i] = document.getElementById(objnames[i]);
objhidden[i] = new Array();
for(j=0;j<objlang.options.length;j++)
{
objhidden[i][j] = document.getElementById(objnames[i]+'_'+objlang.options[j].value);
}
}
}
function change_lang()
{
for(i=0;i<objnames.length;i++)
{
objinput[i].value = objhidden[i][objlang.options.selectedIndex].value;
}
}
function apply_changes(input_id)
{
var obj=document.getElementById(input_id);
objhidden[objnames.indexOf(input_id)][objlang.options.selectedIndex].value = obj.value;
}
function do_translation()
{
var inputid = document.getElementById('iamm_personalised_title');
var tolang = objlang.options[objlang.options.selectedIndex].value.substr(0,2);
google_translate(inputid.value, '{/literal}{$datas.fromlang}{literal}', tolang, inputid, 'value', apply_changes, inputid.id);
}
</script>
{/literal}
{if isset($datas.modeedit)}
<h3>
{if $datas.modeedit=='create'}
{'g002_createofpersonalised'|@translate}
{else}
{'g002_editofpersonalised'|@translate}
{/if}
/ <span style="font-weight:normal"><a href="{$datas.personalised_list}">{'g002_personalisedlist'|@translate}</a></span></h3>
</h3>
<form method="post" action="" class="general">
<fieldset>
<legend>{'g002_setting_personalised_properties'|@translate}</legend>
<table class="formtable">
<tr>
<td>{'g002_setting_block_active'|@translate}</td>
<td>
<select name="famm_personalised_visible" id="iamm_personalised_visible">
{html_options values=$datas.yesno_values output=$datas.yesno_labels selected=$datas.visible_selected}
</select>
</td>
</tr>
<tr>
<td>{'g002_setting_personalised_nfo'|@translate}</td>
<td>
<input type="text" name="famm_personalised_nfo" id="iamm_personalised_nfo" value="{$datas.nfo}" maxlength="25"/>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>{'g002_setting_block_menu'|@translate}</legend>
{if isset($datas.language_list) and count($datas.language_list)}
{foreach from=$datas.language_list key=name item=language_row}
<input type="hidden" name="famm_personalised_title_{$language_row.LANG}"
id="iamm_personalised_title_{$language_row.LANG}" value="{$language_row.MENUBARTIT}">
<input type="hidden" name="famm_personalised_content_{$language_row.LANG}"
id="iamm_personalised_content_{$language_row.LANG}" value="{$language_row.MENUBARCONTENT}">
{/foreach}
{/if}
<table class="formtable">
<tr>
<td>{'g002_setting_block_langchoice'|@translate}</td>
<td>
<select onchange="change_lang();" id="islang">
{html_options values=$datas.language_list_values output=$datas.language_list_labels selected=$datas.lang_selected}
</select><br>
</td>
</tr>
<tr>
<td colspan=2><hr/></td>
</tr>
<tr>
<td>{'g002_setting_block_title'|@translate}</td>
<td>
<input type="text" id="iamm_personalised_title" value="" maxlength="50" onkeyup="apply_changes('iamm_personalised_title');" onblur="apply_changes('iamm_personalised_title');"/>
</td>
</tr>
<tr>
<td></td>
<td style="font-size:80%;">
<a style="cursor:pointer;" onclick="do_translation()">{'g002_translate'|@translate}</a>
</td>
</tr>
<tr>
<td>{'g002_setting_personalised_content'|@translate}</td>
<td>
<textarea id="iamm_personalised_content" cols=80 rows=25 onkeyup="apply_changes('iamm_personalised_content');" /></textarea>
</td>
</tr>
</table>
</fieldset>
<p>
<input type="submit" name="famm_submit_apply" id="iamm_submit_apply" value="{'g002_apply'|@translate}" >
</p>
<input type="hidden" name="famm_modeedit" value="{$datas.modeedit}">
<input type="hidden" name="famm_id" value="{$datas.id}">
</form>
<script type="text/javascript">
init();
change_lang();
</script>
{/if}

View file

@ -1,123 +0,0 @@
{literal}
<script type="text/javascript">
//global var ; need to not have to initialize them every time a value is changed
var objlang;
var objnames = new Array('iamm_randompicture_title');
var objinput = new Array(); //input text from form => objinput[name]
var objhidden = new Array(); //input hidden from form => objhidden[name][lang]
function init()
{
objlang = document.getElementById('islang');
for(i=0;i<objnames.length;i++)
{
objinput[i] = document.getElementById(objnames[i]);
objhidden[i] = new Array();
for(j=0;j<objlang.options.length;j++)
{
objhidden[i][j] = document.getElementById(objnames[i]+'_'+objlang.options[j].value);
}
}
}
function change_lang()
{
for(i=0;i<objnames.length;i++)
{
objinput[i].value = objhidden[i][objlang.options.selectedIndex].value;
}
}
function apply_changes(input_id)
{
var obj=document.getElementById(input_id);
objhidden[objnames.indexOf(input_id)][objlang.options.selectedIndex].value = obj.value;
}
function do_translation()
{
var inputid = document.getElementById('iamm_randompicture_title');
var tolang = objlang.options[objlang.options.selectedIndex].value.substr(0,2);
google_translate(inputid.value, '{/literal}{$datas.fromlang}{literal}', tolang, inputid, 'value', apply_changes, inputid.id);
}
</script>
{/literal}
<h3>{'g002_configrandompic'|@translate}</h3>
<form method="post" action="" class="general">
<fieldset>
<legend>{'g002_setting_block_menu'|@translate}</legend>
{if isset($datas.language_list) and count($datas.language_list)}
{foreach from=$datas.language_list key=name item=language_row}
<input type="hidden" name="famm_randompicture_title_{$language_row.LANG}"
id="iamm_randompicture_title_{$language_row.LANG}" value="{$language_row.MENUBARTIT}">
{/foreach}
{/if}
<table class="formtable">
<tr>
<td>{'g002_setting_block_title'|@translate}</td>
<td>
<input type="text" id="iamm_randompicture_title" value="" maxlength="50" onkeyup="apply_changes('iamm_randompicture_title');" onblur="apply_changes('iamm_randompicture_title');"/>
<select onchange="change_lang();" id="islang">
{html_options values=$datas.language_list_values output=$datas.language_list_labels selected=$datas.lang_selected}
</select><br>
</td>
</tr>
<tr>
<td></td>
<td style="font-size:80%;">
<a style="cursor:pointer;" onclick="do_translation()">{'g002_translate'|@translate}</a>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>{'g002_setting_randompic_aboutpicture'|@translate}</legend>
<table class="formclass">
<tr>
<td>{'g002_setting_randompic_showname'|@translate}</td>
<td>
<select name="famm_randompicture_showname" id="iamm_randompicture_showname">
{html_options values=$datas.show_values output=$datas.show_labels selected=$datas.showname_selected}
</select>
</td>
</tr>
<tr>
<td>{'g002_setting_randompic_showcomment'|@translate}</td>
<td>
<select name="famm_randompicture_showcomment" id="iamm_randompicture_showcomment">
{html_options values=$datas.show_values output=$datas.show_labels selected=$datas.showcomment_selected}
</select>
</td>
</tr>
</table>
</fieldset>
<p>
<input type="submit" name="famm_submit_apply" id="iamm_submit_apply" value="{'g002_apply'|@translate}" >
</p>
<input type="hidden" name="famm_modeedit" value="config">
</form>
<script type="text/javascript">
init();
change_lang();
</script>

View file

@ -1,58 +0,0 @@
{literal}
<script type="text/javascript">
function load_list(do_action, item, position)
{
/*
do_action
'list' : just load list
'permut' : permut items in list
'delete' : delete the item in list
*/
var doc = document.getElementById("isections");
action_todo='';
if(do_action=='position')
{
action_todo='sections_position&fItem='+item+'&fPosition='+position;
}
else if(do_action=='showhide')
{
action_todo='sections_showhide&fItem='+item;
}
else
{
action_todo='sections_list';
}
if(action_todo!='')
{
http_request=create_httpobject('get', '', '{/literal}{$datas.AMM_AJAX_URL_LIST}{literal}'+action_todo, false);
http_request.send(null);
doc.innerHTML=http_request.responseText;
}
}
</script>
{/literal}
<h3>
{foreach from=$datas.LIST item=data}
{$data.separator}
{if $data.link!=''}
<span style="font-weight:normal"><a href="{$data.link}" title="{$data.label|@translate}">
{/if}
{$data.label|@translate}
{if $data.link!=''}
</a></span>
{/if}
{/foreach}
</h3>
<div id="isections"></div>
<script type="text/javascript">
load_list('list', 0, 0);
</script>

View file

@ -1,47 +0,0 @@
{literal}
<script type="text/javascript">
function load_list(do_action, item, position)
{
/*
do_action
'list' : just load list
'permut' : permut items in list
'delete' : delete the item in list
*/
var doc = document.getElementById("isections");
action_todo='';
if(do_action=='position')
{
action_todo='sections_position&fItem='+item+'&fPosition='+position;
}
else if(do_action=='showhide')
{
action_todo='sections_showhide&fItem='+item;
}
else
{
action_todo='sections_list';
}
if(action_todo!='')
{
http_request=create_httpobject('get', '', '{/literal}{$datas.AMM_AJAX_URL_LIST}{literal}'+action_todo, false);
http_request.send(null);
doc.innerHTML=http_request.responseText;
}
}
</script>
{/literal}
<h3>{'g002_sectionslist'|@translate}</h3>
<div id="isections"></div>
<script type="text/javascript">
load_list('list', 0, 0);
</script>

View file

@ -1,24 +0,0 @@
{if isset($datas.sections) and count($datas.sections)}
<table class="table2 littlefont">
<tr class="throw">
<th>{'g002_owner'|@translate}</th>
<th>{'g002_sectionid'|@translate}</th>
<th>{'g002_name'|@translate}</th>
<th>{'g002_visible'|@translate}</th>
<th colspan=2>&nbsp;</th>
</tr>
{foreach from=$datas.sections key=name item=section}
<tr>
<td>{$section.OWNER}</td>
<td>{$section.ID}</td>
<td>{$section.NAME}</td>
<td style="text-align:center;"><a style="cursor:pointer;" onclick="load_list('showhide', '{$section.ID}', '')">{$section.VISIBLE}</a></td>
<td width="15px">{if $section.up}<a style="cursor:pointer;" onclick="load_list('position', '{$section.ID}', '{$section.PREVPOS}')"><img src='{$plugin.PATH}/admin/go-up.png'/></a>{else}&nbsp;{/if}</td>
<td width="15px">{if $section.down}<a style="cursor:pointer;" onclick="load_list('position', '{$section.ID}', '{$section.NEXTPOS}')"><img src='{$plugin.PATH}/admin/go-down.png'/></a>{else}&nbsp;{/if}</td>
</tr>
{/foreach}
</table>
{/if}

View file

@ -1,17 +0,0 @@
{if isset($datas.LIST) and count($datas.LIST)}
<table class="table2 littlefont">
<tr class="throw">
<th>{'g002_labelmenu'|@translate}</th>
<th>{'g002_visible'|@translate}</th>
</tr>
{foreach from=$datas.LIST key=name item=data}
<tr>
<td>{$data.LABEL|@translate}</td>
<td style="text-align:center;"><a style="cursor:pointer;" onclick="load_list('showhide', '{$data.ID}', '')">{$data.VISIBLE|@translate}</a></td>
</tr>
{/foreach}
</table>
{/if}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 630 B

View file

@ -1,33 +0,0 @@
<?php
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
// | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
// | last modifier : $Author: rub $
// | revision : $Revision: 1912 $
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View file

@ -1,28 +0,0 @@
<?php
/* -----------------------------------------------------------------------------
Plugin : Advanced Menu Manager
Author : Grum
email : grum@grum.dnsalias.com
website : http://photos.grum.dnsalias.com
PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
<< May the Little SpaceFrog be with you ! >>
------------------------------------------------------------------------------
See main.inc.php for release information
--------------------------------------------------------------------------- */
if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
include(AMM_PATH."amm_aip.class.inc.php");
global $prefixeTable;
load_language('plugin.lang', AMM_PATH);
$main_plugin_object = get_plugin_data($plugin_id);
$plugin_ai = new AMM_AIP($prefixeTable, $main_plugin_object->get_filelocation());
$plugin_ai->manage();
?>

View file

@ -1,4 +0,0 @@
.littlefont { font-size:90%; }
table.littlefont th { text-align:center; padding:3px;padding-left:9px;padding-right:9px; }
table.littlefont td { text-align:left; padding:0px;padding-left:3px;padding-right:3px; }

View file

@ -1,40 +0,0 @@
<?php
/* -----------------------------------------------------------------------------
Plugin : Advanced Menu Manager
Author : Grum
email : grum@grum.dnsalias.com
website : http://photos.grum.dnsalias.com
PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
<< May the Little SpaceFrog be with you ! >>
------------------------------------------------------------------------------
See main.inc.php for release information
AMM_AIM : classe to manage plugin integration into plugin menu
--------------------------------------------------------------------------- */
if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
include_once('amm_root.class.inc.php');
class AMM_AIM extends AMM_root
{
function AMM_AIM($prefixeTable, $filelocation)
{
parent::__construct($prefixeTable, $filelocation);
}
/*
initialize events call for the plugin
*/
function init_events()
{
parent::init_events();
add_event_handler('get_admin_plugin_menu_links', array(&$this, 'plugin_admin_menu') );
}
} // amm_aim class
?>

File diff suppressed because it is too large Load diff

View file

@ -1,94 +0,0 @@
<?php
/* -----------------------------------------------------------------------------
Plugin : Advanced Menu Manager
Author : Grum
email : grum@grum.dnsalias.com
website : http://photos.grum.dnsalias.com
PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
<< May the Little SpaceFrog be with you ! >>
------------------------------------------------------------------------------
See main.inc.php for release information
MyPolls_Install : classe to manage plugin install
--------------------------------------------------------------------------- */
@include_once('amm_root.class.inc.php');
include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/tables.class.inc.php');
class AMM_install extends AMM_root
{
private $tablef;
private $exportfile;
public function AMM_install($prefixeTable, $filelocation)
{
parent::__construct($prefixeTable, $filelocation);
$this->tablef= new manage_tables($this->tables);
$this->exportfile=dirname($this->filelocation).'/'.$this->plugin_name_files.'.sql';
}
/*
function for installation process
return true if install process is ok, otherwise false
*/
public function install()
{
$tables_def=array(
"CREATE TABLE `".$this->tables['urls']."` (
`id` int(11) NOT NULL auto_increment,
`label` varchar(50) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`mode` int(11) NOT NULL default '0',
`icon` varchar(50) NOT NULL default '',
`position` int(11) NOT NULL default '0',
`visible` char(1) NOT NULL default 'y',
PRIMARY KEY (`id`),
KEY `order_key` (`position`)
)",
"CREATE TABLE `".$this->tables['personalised']."` (
`id` int(11) NOT NULL default '0',
`lang` varchar(5) NOT NULL default '',
`title` varchar(50) NOT NULL default '',
`content` text NOT NULL,
`visible` char(1) NOT NULL default 'y',
`nfo` varchar(25) NOT NULL default '',
PRIMARY KEY (`id`,`lang`)
)"
);
//$table_def array
$tables_def = create_table_add_character_set($tables_def);
$result=$this->tablef->create_tables($tables_def);
return($result);
}
/*
function for uninstall process
*/
public function uninstall()
{
$this->tablef->export($this->exportfile);
$this->delete_config();
$this->tablef->drop_tables();
}
public function activate()
{
global $template;
$this->init_config();
$this->load_config();
$this->save_config();
}
public function deactivate()
{
}
} //class
?>

View file

@ -1,156 +0,0 @@
<?php
/* -----------------------------------------------------------------------------
Plugin : Advanced Menu Manager
Author : Grum
email : grum@grum.dnsalias.com
website : http://photos.grum.dnsalias.com
PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
<< May the Little SpaceFrog be with you ! >>
------------------------------------------------------------------------------
See main.inc.php for release information
PIP classe => manage integration in public interface
--------------------------------------------------------------------------- */
if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
include_once(PHPWG_PLUGINS_PATH.'AMenuManager/amm_root.class.inc.php');
class AMM_PIP extends AMM_root
{
function AMM_PIP($prefixeTable, $filelocation)
{
parent::__construct($prefixeTable, $filelocation);
$this->load_config();
$this->init_events();
}
/* ---------------------------------------------------------------------------
Public classe functions
--------------------------------------------------------------------------- */
/*
initialize events call for the plugin
*/
public function init_events()
{
//TODELETE: add_event_handler('loc_begin_menubar', array(&$this, 'modify_menu') );
parent::init_events();
add_event_handler('blockmanager_apply', array(&$this, 'blockmanager_apply') );
}
public function blockmanager_apply( $menu_ref_arr )
{
$menu = & $menu_ref_arr[0];
/*
Add a new random picture section
*/
if ( ($block = $menu->get_block( 'mbAMM_randompict' ) ) != null )
{
$sql="SELECT i.id as image_id, i.file as image_file, i.comment, i.path, i.tn_ext, c.id as catid, c.name, c.permalink, RAND() as rndvalue, i.name as imgname
FROM ".CATEGORIES_TABLE." c, ".IMAGES_TABLE." i, ".IMAGE_CATEGORY_TABLE." ic
WHERE c.status='public'
AND c.id = ic.category_id
AND ic.image_id = i.id
ORDER BY rndvalue
LIMIT 0,1
";
$result = pwg_query($sql);
if($result and $nfo = mysql_fetch_array($result))
{
$nfo['section']='category';
$nfo['category']=array(
'id' => $nfo['catid'],
'name' => $nfo['name'],
'permalink' => $nfo['permalink']
);
global $user;
$block->set_title( base64_decode($this->my_config['amm_randompicture_title'][$user['language']]) );
$block->template = dirname(__FILE__).'/menu_templates/menubar_randompic.tpl';
$block->data = array(
'LINK' => make_picture_url($nfo),
'IMG' => get_thumbnail_url($nfo),
'IMGNAME' => $nfo['imgname'],
'IMGCOMMENT' => $nfo['comment'],
'SHOWNAME' => $this->my_config['amm_randompicture_showname'],
'SHOWCOMMENT' => $this->my_config['amm_randompicture_showcomment']
);
}
}
/*
Add a new section (links)
*/
if ( ($block = $menu->get_block( 'mbAMM_links' ) ) != null )
{
$urls=$this->get_urls(true);
if ( count($urls)>0 )
{
if($this->my_config['amm_links_show_icons']=='y')
{
for($i=0;$i<count($urls);$i++)
{
$urls[$i]['icon']=get_root_url().'plugins/'.AMM_DIR."/links_pictures/".$urls[$i]['icon'];
}
}
$block->set_title( base64_decode($this->my_config['amm_links_title'][$user['language']]) );
$block->template = dirname(__FILE__).'/menu_templates/menubar_links.tpl';
$block->data = array(
'LINKS' => $urls,
'icons' => $this->my_config['amm_links_show_icons']
);
}
}
/*
Add personnal blocks random picture section
*/
$sections=$this->get_sections(true);
if(count($sections))
{
$id_done=array();
foreach($sections as $key => $val)
{
if(!isset($id_done[$val['id']]))
{
if ( ($block = $menu->get_block( 'mbAMM_personalised'.$val['id'] ) ) != null )
{
$block->set_title( $val['title'] );
$block->template = dirname(__FILE__).'/menu_templates/menubar_personalised.tpl';
$block->data = stripslashes($val['content']);
}
$id_done[$val['id']]="";
}
}
}
/*
hide items from special & menu sections
*/
foreach(array('mbMenu' => 'amm_sections_modmenu', 'mbSpecials' =>'amm_sections_modspecials') as $key0 => $val0)
{
if ( ($block = $menu->get_block( $key0 ) ) != null )
{
foreach($this->my_config[$val0] as $key => $val)
{
if($val=='n')
{
unset( $block->data[$key] );
}
}
}
}
}
} // AMM_PIP class
?>

View file

@ -1,193 +0,0 @@
<?php
/* -----------------------------------------------------------------------------
Plugin : Advanced Menu Manager
Author : Grum
email : grum@grum.dnsalias.com
website : http://photos.grum.dnsalias.com
PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
<< May the Little SpaceFrog be with you ! >>
------------------------------------------------------------------------------
See main.inc.php for release information
AMM_root : root classe for plugin
--------------------------------------------------------------------------- */
if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/common_plugin.class.inc.php');
class AMM_root extends common_plugin
{
function AMM_root($prefixeTable, $filelocation)
{
$this->plugin_name="Advanced Menu Manager";
$this->plugin_name_files="amm";
parent::__construct($prefixeTable, $filelocation);
$list=array('urls', 'personalised');
$this->set_tables_list($list);
}
/* ---------------------------------------------------------------------------
common AIP & PIP functions
--------------------------------------------------------------------------- */
/* this function initialize var $my_config with default values */
public function init_config()
{
$this->my_config=array(
'amm_links_show_icons' => 'y',
'amm_links_title' => array(),
'amm_randompicture_showname' => 'n', //n:no, o:over, u:under
'amm_randompicture_showcomment' => 'n', //n:no, o:over, u:under
'amm_randompicture_title' => array(),
'amm_sections_modspecials' => array(
'favorites' => 'y',
'most_visited' => 'y',
'best_rated' => 'y',
'random' => 'y',
'recent_pics' => 'y',
'recent_cats' => 'y',
'calendar' => 'y'
),
'amm_sections_modmenu' => array(
'qsearch' => 'y',
'tags' => 'y',
'search' => 'y',
'comments' => 'y',
'about' => 'y',
'notification' => 'y'
)
);
$languages=get_languages();
foreach($languages as $key => $val)
{
if($key=='fr_FR')
{
$this->my_config['amm_links_title'][$key]=base64_encode('Liens');
$this->my_config['amm_randompicture_title'][$key]=base64_encode('Une image au hasard');
}
else
{
$this->my_config['amm_links_title'][$key]=base64_encode('Links');
$this->my_config['amm_randompicture_title'][$key]=base64_encode('A random picture');
}
}
}
public function load_config()
{
parent::load_config();
}
public function init_events()
{
add_event_handler('blockmanager_register_blocks', array(&$this, 'register_blocks') );
}
public function register_blocks( $menu_ref_arr )
{
$menu = & $menu_ref_arr[0];
if ($menu->get_id() != 'menubar')
return;
$menu->register_block( new RegisteredBlock( 'mbAMM_randompict', 'Random pictures', 'AMM'));
$menu->register_block( new RegisteredBlock( 'mbAMM_links', 'Links', 'AMM'));
$sections=$this->get_sections(true);
if(count($sections))
{
$id_done=array();
foreach($sections as $key => $val)
{
if(!isset($id_done[$val['id']]))
{
$menu->register_block( new RegisteredBlock( 'mbAMM_personalised'.$val['id'], $val['title'], 'AMM'));
$id_done[$val['id']]="";
}
}
}
}
// return an array of urls (each url is an array)
protected function get_urls($only_visible=false)
{
$returned=array();
$sql="SELECT * FROM ".$this->tables['urls'];
if($only_visible)
{
$sql.=" WHERE visible = 'y' ";
}
$sql.=" ORDER BY position";
$result=pwg_query($sql);
if($result)
{
while($row=mysql_fetch_array($result))
{
$row['label']=stripslashes($row['label']);
$returned[]=$row;
}
}
return($returned);
}
//return number of url
protected function get_count_url($only_visible=false)
{
$returned=0;
$sql="SELECT count(id) FROM ".$this->tables['urls'];
if($only_visible)
{
$sql.=" WHERE visible = 'y' ";
}
$result=pwg_query($sql);
if($result)
{
$tmp=mysql_fetch_row($result);
$returned=$tmp[0];
}
return($returned);
}
// return an array of sections (each section is an array)
protected function get_sections($only_visible=false, $lang="", $only_with_content=true)
{
global $user;
if($lang=="")
{
$lang=$user['language'];
}
$returned=array();
$sql="SELECT * FROM ".$this->tables['personalised']."
WHERE (lang = '*' OR lang = '".$lang."') ";
if($only_visible)
{
$sql.=" AND visible = 'y' ";
}
if($only_with_content)
{
$sql.=" AND content != '' ";
}
$sql.=" ORDER BY id, lang DESC ";
$result=pwg_query($sql);
if($result)
{
while($row=mysql_fetch_array($result))
{
$returned[]=$row;
}
}
return($returned);
}
} // amm_root class
?>

View file

@ -1,33 +0,0 @@
<?php
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
// | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
// | last modifier : $Author: rub $
// | revision : $Revision: 1912 $
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View file

@ -1,33 +0,0 @@
<?php
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
// | revision : $Revision$
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View file

@ -1,89 +0,0 @@
<?php
$lang['Grum Plugin Classes is not installed'] = 'Das Plugin <b>Grum Plugin Klassen</b> ist nicht installiert';
$lang['g002_title_page'] = 'Advanced Menu Management';
$lang['g002_version'] = 'r';
$lang['g002_error_invalid_ajax_call'] = "Ungültige Funktion Anruf!";
$lang['g002_setmenu'] = 'Menü-Management';
$lang['g002_addlinks'] = 'Links';
$lang['g002_randompict'] = 'Zufallsbild';
$lang['g002_personnalblock'] = 'Personalisierte Menü';
$lang['g002_setmenu_nfo'] = 'Management der angezeigten Menü Blöcke';
$lang['g002_addlinks_nfo'] = 'Abschnitt für die Anzeige in dem Menü eine Liste mit Links zu anderen Websites';
$lang['g002_randompict_nfo'] = 'Abschnitt für die Anzeige in dem Menü einer Aufnahme zufällig in der Galerie';
$lang['g002_personnalblock_nfo'] = 'Anzeige Personalisierte in Blöcke Menü';
$lang['g002_mode_new_window'] = 'Neues Fenster';
$lang['g002_mode_current_window'] = 'Aktuelle Fenster';
$lang['g002_addlink'] = 'Link hinzufügen';
$lang['g002_label'] = 'Wortlaut';
$lang['g002_url'] = 'URL';
$lang['g002_mode'] = 'Mode';
$lang['g002_icon'] = 'Repräsentatives Bild';
$lang['g002_visible'] = 'Sichtbare';
$lang['g002_linkslist'] = "Links Liste";
$lang['g002_confirm_delete_link'] = "Link Löschen?";
$lang['g002_nolinks'] = 'Keine Links';
$lang['g002_link'] = 'Link';
$lang['g002_links'] = 'Links';
$lang['g002_createoflink'] = 'Link hinzufügen';
$lang['g002_editoflink'] = 'Link Bearbeiten';
$lang['g002_createthelink'] = 'Link hinzufügen';
$lang['g002_editthelink'] = 'Link Bearbeiten';
$lang['g002_configlinks'] = 'Links Einstellungen';
$lang['g002_setting_link_links']='Links';
$lang['g002_setting_link_show_icon'] = 'Anzeige Links repräsentatives Bild';
$lang['g002_setting_block_menu'] = 'Menü Integration';
$lang['g002_setting_block_active'] = 'Anzeigen der Abschnitt in dem Menü';
$lang['g002_setting_block_title'] = 'Titel des Abschnitts in dem Menü';
$lang['g002_apply'] = 'Anwenden';
$lang['g002_sectionslist'] = 'Menü-Abschnitte';
$lang['g002_yesno_y'] = 'Ja';
$lang['g002_yesno_n'] = 'Nein';
$lang['g002_owner'] = 'Eigentümer';
$lang['g002_sectionid'] = 'Benutzername';
$lang['g002_name'] = 'Wortlaut';
$lang['g002_translate'] = 'Übersetzen mit Google Translate';
$lang['g002_configrandompic'] = 'Konfiguration des Zufallsbild';
$lang['g002_setting_randompic_aboutpicture'] = 'Angezeigt Daten';
$lang['g002_setting_randompic_showname'] = 'Anzuzeigen des Bildes Namen';
$lang['g002_setting_randompic_showcomment'] = 'Bild Kommentar ansehen';
$lang['g002_show_n'] = 'Nein';
$lang['g002_show_o'] = 'Anzeige über das Bild';
$lang['g002_show_u'] = 'Anzeige unter das Bild';
$lang['g002_personalisedlist'] = "Liste der personalisierten Abschnitte";
$lang['g002_notitle'] = '[Ohne Titel]';
$lang['g002_title'] = 'Titel';
$lang['g002_sections'] = 'Abschnitte';
$lang['g002_section'] = 'Abschnitt';
$lang['g002_nosections'] = 'Kein Abschnitte';
$lang['g002_addsection'] = 'Hinzufügen neue Abschnitt';
$lang['g002_createofpersonalised'] = 'Erstellen eine neue personalisierte Abschnitt';
$lang['g002_editofpersonalised'] = 'Ändern eine personalisierte Abschnitt';
$lang['g002_setting_block_langchoice'] = 'Sprachwahl';
$lang['g002_setting_personalised_content'] = 'Inhalt des Abschnitts';
$lang['g002_setting_personalised_properties'] = 'Eigenschaften';
$lang['g002_setting_personalised_nfo'] = 'Beschreibung';
$lang['g002_all_languages'] = "Alle Sprachen";
$lang['g002_modmenu'] = '\'Menü\' Abschnitt';
$lang['g002_modspecial'] = '\'speciale\' Abschnitt';
$lang['g002_labelmenu'] = 'Menü Wortlaut';
?>

View file

@ -1,33 +0,0 @@
<?php
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
// | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
// | last modifier : $Author: rub $
// | revision : $Revision: 1912 $
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View file

@ -1,89 +0,0 @@
<?php
$lang['Grum Plugin Classes is not installed'] = 'Plugin <b>Grum Plugin Classes</b> in not installed';
$lang['g002_title_page'] = 'Advanced Menu Management';
$lang['g002_version'] = 'r';
$lang['g002_error_invalid_ajax_call'] = "Invalid function call !";
$lang['g002_setmenu'] = 'Menu management';
$lang['g002_addlinks'] = 'Links';
$lang['g002_randompict'] = 'Random picture';
$lang['g002_personnalblock'] = 'Personalised menu';
$lang['g002_setmenu_nfo'] = 'Management of displayed menu\'s blocks';
$lang['g002_addlinks_nfo'] = 'Menu\'s block allowing to display a list of hyperlink';
$lang['g002_randompict_nfo'] = 'Menu\'s block allowing to display a random picture from the gallery';
$lang['g002_personnalblock_nfo'] = 'Display personalised blocks into menu';
$lang['g002_mode_new_window'] = 'New window';
$lang['g002_mode_current_window'] = 'Current window';
$lang['g002_addlink'] = 'Add a link';
$lang['g002_label'] = 'Label';
$lang['g002_url'] = 'URL';
$lang['g002_mode'] = 'Mode';
$lang['g002_icon'] = 'Representative picture';
$lang['g002_visible'] = 'Visible';
$lang['g002_linkslist'] = "Links list";
$lang['g002_confirm_delete_link'] = "Delete link ?";
$lang['g002_nolinks'] = 'No links';
$lang['g002_link'] = 'link';
$lang['g002_links'] = 'links';
$lang['g002_createoflink'] = 'Add link';
$lang['g002_editoflink'] = 'Edit link';
$lang['g002_createthelink'] = 'Add link';
$lang['g002_editthelink'] = 'Edit link';
$lang['g002_configlinks'] = 'Links settings';
$lang['g002_setting_link_links']='Links';
$lang['g002_setting_link_show_icon'] = 'Display links representative picture';
$lang['g002_setting_block_menu'] = 'Menu integration';
$lang['g002_setting_block_active'] = 'Display block in menu';
$lang['g002_setting_block_title'] = 'Block title';
$lang['g002_apply'] = 'Apply';
$lang['g002_sectionslist'] = 'Menu\'s blocks';
$lang['g002_yesno_y'] = 'Yes';
$lang['g002_yesno_n'] = 'No';
$lang['g002_owner'] = 'Owner';
$lang['g002_sectionid'] = 'Identifier';
$lang['g002_name'] = 'Label';
$lang['g002_translate'] = 'Translate with Google Translate';
$lang['g002_configrandompic'] = 'Random picture settings';
$lang['g002_setting_randompic_aboutpicture'] = 'Displayed datas';
$lang['g002_setting_randompic_showname'] = 'Show picture\'s name';
$lang['g002_setting_randompic_showcomment'] = 'Show picure\'s comment';
$lang['g002_show_n'] = 'No';
$lang['g002_show_o'] = 'Display over the picture';
$lang['g002_show_u'] = 'Display under thpicture';
$lang['g002_personalisedlist'] = "Liste of personalised blocks";
$lang['g002_notitle'] = '[No title]';
$lang['g002_title'] = 'Title';
$lang['g002_sections'] = 'blocks';
$lang['g002_section'] = 'block';
$lang['g002_nosections'] = 'No blocks';
$lang['g002_addsection'] = 'Add a new block';
$lang['g002_createofpersonalised'] = 'Create a new personalized block';
$lang['g002_editofpersonalised'] = 'Modify a personalized block';
$lang['g002_setting_block_langchoice'] = 'Lang choice';
$lang['g002_setting_personalised_content'] = 'Block\'s content';
$lang['g002_setting_personalised_properties'] = 'Properties';
$lang['g002_setting_personalised_nfo'] = 'Description';
$lang['g002_all_languages'] = "All languages";
$lang['g002_modmenu'] = '\'menu\' block';
$lang['g002_modspecial'] = '\'special\' block';
$lang['g002_labelmenu'] = 'Menu\'s label';
?>

View file

@ -1,33 +0,0 @@
<?php
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
// | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
// | last modifier : $Author: rub $
// | revision : $Revision: 1912 $
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View file

@ -1,88 +0,0 @@
<?php
$lang['Grum Plugin Classes is not installed'] = 'Le plugin <b>Grum Plugin Classes</b> n\'est pas installé';
$lang['g002_title_page'] = 'Gestion avancée du menu';
$lang['g002_version'] = 'v';
$lang['g002_error_invalid_ajax_call'] = "Appel de fonction invalide !";
$lang['g002_setmenu'] = 'Gestion du menu';
$lang['g002_addlinks'] = 'Liens';
$lang['g002_randompict'] = 'Image aléatoire';
$lang['g002_personnalblock'] = 'Menu personnalisé';
$lang['g002_setmenu_nfo'] = 'Gestion de l\'affichage des sections affichées dans le menu';
$lang['g002_addlinks_nfo'] = 'Section permettant d\'afficher dans le menu une liste d\'hyperliens vers d\'autres sites internet';
$lang['g002_randompict_nfo'] = 'Section permettant d\'afficher dans le menu une image prise au hasard dans la gallerie';
$lang['g002_personnalblock_nfo'] = 'Afficher dans le menu des sections au contenu personnalisé';
$lang['g002_mode_new_window'] = 'Nouvelle fenêtre';
$lang['g002_mode_current_window'] = 'Fenêtre courante';
$lang['g002_addlink'] = 'Ajouter un lien';
$lang['g002_label'] = 'Libellé';
$lang['g002_url'] = 'URL';
$lang['g002_mode'] = 'Mode';
$lang['g002_icon'] = 'Image';
$lang['g002_visible'] = 'Visible';
$lang['g002_linkslist'] = "Liste des liens";
$lang['g002_confirm_delete_link'] = "Supprimer le lien ?";
$lang['g002_nolinks'] = 'Pas de liens';
$lang['g002_link'] = 'lien';
$lang['g002_links'] = 'liens';
$lang['g002_createoflink'] = 'Ajout d\'un lien';
$lang['g002_editoflink'] = 'Modification d\'un lien';
$lang['g002_createthelink'] = 'Ajouter le lien';
$lang['g002_editthelink'] = 'Modifier le lien';
$lang['g002_configlinks'] = 'Configuration des liens';
$lang['g002_setting_link_links']='Liens';
$lang['g002_setting_link_show_icon'] = 'Afficher les icônes de liens';
$lang['g002_setting_block_menu'] = 'Intégration dans le menu';
$lang['g002_setting_block_active'] = 'Afficher la section dans le menu';
$lang['g002_setting_block_title'] = 'Titre de la section dans le menu';
$lang['g002_apply'] = 'Appliquer';
$lang['g002_sectionslist'] = 'Sections du menu';
$lang['g002_yesno_y'] = 'Oui';
$lang['g002_yesno_n'] = 'Non';
$lang['g002_owner'] = 'Propriétaire';
$lang['g002_sectionid'] = 'Identifiant';
$lang['g002_name'] = 'Libellé';
$lang['g002_translate'] = 'Traduire avec Google Translate';
$lang['g002_configrandompic'] = 'Configuration de l\'image aléatoire';
$lang['g002_setting_randompic_aboutpicture'] = 'Données affichées';
$lang['g002_setting_randompic_showname'] = 'Afficher le nom de la photo';
$lang['g002_setting_randompic_showcomment'] = 'Afficher le commentaire de la photo';
$lang['g002_show_n'] = 'Non';
$lang['g002_show_o'] = 'Afficher au-dessus de la photo';
$lang['g002_show_u'] = 'Afficher en-dessous de la photo';
$lang['g002_personalisedlist'] = "Liste des sections personnalisées";
$lang['g002_notitle'] = '[Pas de titre]';
$lang['g002_title'] = 'Titre';
$lang['g002_sections'] = 'sections';
$lang['g002_section'] = 'section';
$lang['g002_nosections'] = 'Pas de sections';
$lang['g002_addsection'] = 'Ajouter une section';
$lang['g002_createofpersonalised'] = 'Ajout d\'une section personnalisée';
$lang['g002_editofpersonalised'] = 'Modification d\'une section personnalisée';
$lang['g002_setting_block_langchoice'] = 'Choix de la langue';
$lang['g002_setting_personalised_content'] = 'Contenu de la section';
$lang['g002_setting_personalised_properties'] = 'Propriétés';
$lang['g002_setting_personalised_nfo'] = 'Description';
$lang['g002_all_languages'] = "Toutes langues";
$lang['g002_modspecial'] = 'Section \'speciale\'';
$lang['g002_modmenu'] = 'Section \'menu\'';
$lang['g002_labelmenu'] = 'Libellé du menu';
?>

View file

@ -1,33 +0,0 @@
<?php
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
// | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
// | last modifier : $Author: rub $
// | revision : $Revision: 1912 $
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View file

@ -1,33 +0,0 @@
<?php
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
// | revision : $Revision$
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View file

@ -1,88 +0,0 @@
<?php
$lang['Grum Plugin Classes is not installed'] = 'Il plugin <b>Grum Plugin Classes</b> non è installato';
$lang['g002_title_page'] = 'Gestion avanzata dei menu';
$lang['g002_version'] = 'v';
$lang['g002_error_invalid_ajax_call'] = "Chiamata alla funzione invalida !";
$lang['g002_setmenu'] = 'Gestione del menu';
$lang['g002_addlinks'] = 'Links';
$lang['g002_randompict'] = 'Immagini a caso';
$lang['g002_personnalblock'] = 'Menu personalizzato';
$lang['g002_setmenu_nfo'] = 'Gestione della visualizzazione delle sezioni visualizzate nel menu';
$lang['g002_addlinks_nfo'] = 'Sezione che permette la visualizzazione nel menu di una lista d\'hyperlinks verso altri siti internet';
$lang['g002_randompict_nfo'] = 'Sezione che permette la visualizzazione nel menu d\'un immagine presa a caso nella galleria';
$lang['g002_personnalblock_nfo'] = 'Visualizzare nel menu delle sezioni con un contenuto personalizzato';
$lang['g002_mode_new_window'] = 'Nuova finestra';
$lang['g002_mode_current_window'] = 'Finestra attuale';
$lang['g002_addlink'] = 'Aggiungere un link';
$lang['g002_label'] = 'Etichetta';
$lang['g002_url'] = 'URL';
$lang['g002_mode'] = 'Modo';
$lang['g002_icon'] = 'Immagine';
$lang['g002_visible'] = 'Visibile';
$lang['g002_linkslist'] = 'Lista dei links';
$lang['g002_confirm_delete_link'] = 'Cancellare il link ?';
$lang['g002_nolinks'] = 'Nessun\' link';
$lang['g002_link'] = 'link';
$lang['g002_links'] = 'links';
$lang['g002_createoflink'] = 'Aggiungere un link';
$lang['g002_editoflink'] = 'Modifica di un link';
$lang['g002_createthelink'] = 'Aggiungere un link';
$lang['g002_editthelink'] = 'Modifica di un link';
$lang['g002_configlinks'] = 'Configurazione dei links';
$lang['g002_setting_link_links']='Links';
$lang['g002_setting_link_show_icon'] = 'Visualizzare le icône dei links';
$lang['g002_setting_block_menu'] = 'Integrazione nel menu';
$lang['g002_setting_block_active'] = 'Visualizzare la sezione nel menu';
$lang['g002_setting_block_title'] = 'Titolo della sezione nel menu';
$lang['g002_apply'] = 'Applicare';
$lang['g002_sectionslist'] = 'Sezioni del menu';
$lang['g002_yesno_y'] = 'Si';
$lang['g002_yesno_n'] = 'No';
$lang['g002_owner'] = 'Proprietario';
$lang['g002_sectionid'] = 'Id';
$lang['g002_name'] = 'Etichetta';
$lang['g002_translate'] = 'Tradurre con Google Translate';
$lang['g002_configrandompic'] = 'Configurazione del\'immagine aleatoria';
$lang['g002_setting_randompic_aboutpicture'] = 'Dati visualizzati';
$lang['g002_setting_randompic_showname'] = 'Visualizzare il nome della foto';
$lang['g002_setting_randompic_showcomment'] = 'Visualizzare i commenti della foto';
$lang['g002_show_n'] = 'No';
$lang['g002_show_o'] = 'Mostra sopra la foto';
$lang['g002_show_u'] = 'Mostra sotto la foto';
$lang['g002_personalisedlist'] = 'Lista delle selezioni personalizzate';
$lang['g002_notitle'] = '[Nessun\' titolo]';
$lang['g002_title'] = 'Titolo';
$lang['g002_sections'] = 'sezzioni';
$lang['g002_section'] = 'sezzione';
$lang['g002_nosections'] = 'Nessuna sezzione';
$lang['g002_addsection'] = 'Aggiungere una sezzione';
$lang['g002_createofpersonalised'] = 'Aggiunta d\'una sezzione personalizzata';
$lang['g002_editofpersonalised'] = 'Modifica d\'una sezzione personalizzata';
$lang['g002_setting_block_langchoice'] = 'Scelta della lingua';
$lang['g002_setting_personalised_content'] = 'Contenuto della sezzione';
$lang['g002_setting_personalised_properties'] = 'Proprietà';
$lang['g002_setting_personalised_nfo'] = 'Description';
$lang['g002_all_languages'] = 'Tutte le lingue';
$lang['g002_modspecial'] = 'Sezzione \'speciale\'';
$lang['g002_modmenu'] = 'Sezzione \'menu\'';
$lang['g002_labelmenu'] = 'Titolo del menu';
?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 828 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 844 B

View file

@ -1,68 +0,0 @@
<?php
/*
Plugin Name: Advanced Menu Manager
Version: 2.0
Description: Gestion avancée du menu / Advanced management of menu
Plugin URI: http://piwigo.org
Author: Piwigo team
Author URI: http://piwigo.org
*/
/*
--------------------------------------------------------------------------------
Author : Grum
email : grum@grum.dnsalias.com
website : http://photos.grum.dnsalias.com
PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
<< May the Little SpaceFrog be with you ! >>
--------------------------------------------------------------------------------
:: HISTORY
1.0.0 - 27/07/08 -
:: TO DO
--------------------------------------------------------------------------------
:: NFO
AMM_AIM : classe to manage plugin integration into plugin menu
AMM_AIP : classe to manage plugin admin pages
AMM_PIP : classe to manage plugin public integration
--------------------------------------------------------------------------------
*/
// pour faciliter le debug :o)
ini_set('error_reporting', E_ALL);
ini_set('display_errors', true);
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
define('AMM_DIR' , basename(dirname(__FILE__)));
define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/');
define('AMM_VERSION' , '1.0.0'); // => ne pas oublier la version dans l'entête !!
global $prefixeTable;
if(defined('IN_ADMIN'))
{
//AMM admin part loaded and active only if in admin page
include_once("amm_aim.class.inc.php");
$obj = new AMM_AIM($prefixeTable, __FILE__);
$obj->init_events();
set_plugin_data($plugin['id'], $obj);
}
else
{
//AMM public part loaded and active only if in admin page
include_once("amm_pip.class.inc.php");
$obj = new AMM_PIP($prefixeTable, __FILE__);
set_plugin_data($plugin['id'], $obj);
}
?>

View file

@ -1,57 +0,0 @@
<?php
if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
ini_set('error_reporting', E_ALL);
ini_set('display_errors', true);
defined('AMM_DIR') || define('AMM_DIR' , basename(dirname(__FILE__)));
defined('AMM_PATH') || define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/');
@include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/tables.class.inc.php');
global $gpc_installed, $lang; //needed for plugin manager compatibility
$gpc_installed=false;
if(file_exists(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/common_plugin.class.inc.php'))
{
@include_once("amm_install.class.inc.php");
$gpc_installed=true;
}
load_language('plugin.lang', AMM_PATH);
function plugin_install($plugin_id, $plugin_version, &$errors)
{
global $prefixeTable, $gpc_installed;
if($gpc_installed)
{
//$menu->register('mbAMM_links', 'Links', 0, 'AMM');
//$menu->register('mbAMM_randompict', 'Random pictures', 0, 'AMM');
$amm=new AMM_install($prefixeTable, __FILE__);
$result=$amm->install();
}
else
{
array_push($errors, l10n('Grum Plugin Classes is not installed'));
}
}
function plugin_activate($plugin_id, $plugin_version, &$errors)
{
}
function plugin_deactivate($plugin_id)
{
}
function plugin_uninstall($plugin_id)
{
global $prefixeTable;
$amm=new AMM_install($prefixeTable, __FILE__);
$result=$amm->uninstall();
}
?>

View file

@ -1,16 +0,0 @@
<!-- links menu bar -->
{if $block->get_title() !="" }
<dt>{$block->get_title()}</dt>
{/if}
<dd>
<ul {if $block->data.icons=='y'}style="padding-left:4px;list-style:none;"{/if}>
{foreach from=$block->data.LINKS item=link}
<li>
{if $block->data.icons=='y'}<img src='{$link.icon}' style="position:relative;top:3px;"/>{/if}
<a href="{$link.url}"
{if $link.mode == 0} target = '_blank' {/if}>{$link.label}</a>
</li>
{/foreach}
</ul>
</dd>

View file

@ -1,8 +0,0 @@
<!-- personalised menu bar -->
{if $block->get_title() !="" }
<dt>{$block->get_title()}</dt>
{/if}
<dd>
{$block->data}
</dd>

View file

@ -1,15 +0,0 @@
<!-- random picture menu bar -->
<dt>{$block->get_title()}</dt>
<dd>
<div class="illustration" style="text-align:center;padding:5px;font-size:85%;">
{if $block->data.IMGNAME!="" and $block->data.SHOWNAME=="o"}{$block->data.IMGNAME}<br/>{/if}
{* No strip_tags because comment could have those for good reasons *}
{* Over comment is limited to 127 characters for look only *}
{if $block->data.IMGCOMMENT!="" and $block->data.SHOWCOMMENT=="o" and strlen($block->data.IMGCOMMENT) < 128}{$block->data.IMGCOMMENT}<br/>{/if}
<a href="{$block->data.LINK}"><img src="{$block->data.IMG}"/></a>
{if $block->data.IMGNAME!="" and $block->data.SHOWNAME=="u"}<br/>{$block->data.IMGNAME}{/if}
{* Under comment is limited to 255 characters *}
{if $block->data.IMGCOMMENT!="" and $block->data.SHOWCOMMENT=="u" and strlen($block->data.IMGCOMMENT) < 256}<br/>{$block->data.IMGCOMMENT}{/if}
</div>
</dd>