+++ /dev/null
-#! /usr/bin/perl -w
-#***************************************************************************
-#* Copyright (C) 2003-2004 Polytechnique.org *
-#* http://opensource.polytechnique.org/ *
-#* *
-#* 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; either version 2 of the License, or *
-#* (at your option) any later version. *
-#* *
-#* 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 *
-#***************************************************************************
-# $Id: foobar.pl,v 1.1 2004/08/31 11:38:21 x2000habouzit Exp $
-#***************************************************************************
-
-use strict;
-
-exit 0;
+++ /dev/null
-{***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
- * http://opensource.polytechnique.org/ *
- * *
- * 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; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * 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 *
- ***************************************************************************
- $Id: foobar.tpl,v 1.1 2004/08/31 11:38:21 x2000habouzit Exp $
- ***************************************************************************}
-
-
-{* vim:set et sw=2 sts=2 sws=2: *}
chdir ${1:-.}
-dirs=(configs htdocs hooks include plugins scripts templates)
-opts=(-type f -not -path '*CVS*' -not -name '.cvsignore')
+dirs=(bin configs htdocs hooks include plugins templates)
+opts=(-type f -not -path '*CVS*' -not -name '.cvsignore' -not -path '*.arch*')
diff -u <(cat install.d/**/files|sort) <(find $dirs $opts|sort) \
| grep '^[-+][a-z]' | sed -e 's,^+,Orphaned: ,;s,^-,Missing : ,'
u.prenom,
u.promo,
a.alias AS forlife,
- '.$globals->search_result_fields.'
+ '.$globals->search->result_fields.'
c.uid AS contact,
w.ni_id AS contact
FROM auth_user_md5 AS u'
.' LEFT JOIN aliases AS a ON (u.user_id = a.id AND a.type="a_vie")
LEFT JOIN contacts AS c ON (c.uid='.((array_key_exists('uid',$_SESSION))?$_SESSION['uid']:0).' AND c.contact=u.user_id)
LEFT JOIN watch_nonins AS w ON (w.ni_id=u.user_id AND w.uid='.((array_key_exists('uid',$_SESSION))?$_SESSION['uid']:0).')
- '.$globals->search_result_where_statement.'
+ '.$globals->search->result_where_statement.'
'.(($where!='')?('WHERE '.$where):'').'
ORDER BY '.(logged() && !empty($_REQUEST['mod_date_sort']) ? 'date DESC,' :'')
.implode(',',array_filter(array($fields->get_order_statement(),'promo DESC,NomSortKey,prenom'))).'
- LIMIT '.$offset->value.','.$globals->search_results_per_page;
+ LIMIT '.$offset->value.','.$globals->search->per_page;
$page->mysql_assign($sql, 'resultats', 'nb_resultats','nb_resultats_total');
- $nbpages = ($page->get_template_vars('nb_resultats_total')-1)/$globals->search_results_per_page;
+ $nbpages = ($page->get_template_vars('nb_resultats_total')-1)/$globals->search->per_page;
$page->assign('offsets',range(0,$nbpages));
$page->assign('offset',$offset->value);
$page->assign('url_args',$fields->get_url());
$page->assign('with_soundex',$with_soundex);
$page->assign('mod_date_sort',!empty($_REQUEST['mod_date_sort']));
- $page->assign('perpage',$globals->search_results_per_page);
+ $page->assign('perpage',$globals->search->per_page);
$page->assign('is_admin',has_perms());
if(!$page->get_template_vars('nb_resultats_total')) {
--- /dev/null
+<?php
+/***************************************************************************
+ * Copyright (C) 2003-2004 Polytechnique.org *
+ * http://opensource.polytechnique.org/ *
+ * *
+ * 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; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * 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 *
+ ***************************************************************************
+ $Id: carva_redirect.php,v 1.8 2004/11/24 16:29:43 x2000habouzit Exp $
+ ***************************************************************************/
+
+require_once("xorg.inc.php");
+new_skinned_page('carva_redirect.tpl', AUTH_MDP);
+
+if (isset($_REQUEST['submit']) and ($_REQUEST['submit'] == "Valider" or $_REQUEST['submit'] == "Modifier") and isset($_REQUEST['url'])) {
+ // on change la redirection (attention à http://)
+ $globals->db->query("update auth_user_md5 set redirecturl = '{$_REQUEST['url']}'"
+ ." where user_id = '{$_SESSION['uid']}'");
+ if (mysql_errno($conn) == 0) {
+ $_SESSION['log']->log("carva_add","http://".$_REQUEST['url']);
+ $page->assign('message',"<p class='normal'>Redirection activée vers <a href='http://"
+ .$_REQUEST['url']."'>{$_REQUEST['url']}</a></p>\n");
+ } else {
+ $page->assign('message',"<p class='erreur'>Erreur de mise à jour</p>\n");
+ }
+} elseif (isset($_REQUEST['submit']) and $_REQUEST['submit'] == "Supprimer") {
+ // on supprime la redirection
+ $globals->db->query("update auth_user_md5 set redirecturl = '' where user_id = {$_SESSION['uid']}");
+ if (mysql_errno($conn) == 0) {
+ $_SESSION['log']->log("carva_del",$_REQUEST['url']);
+ $_POST['url'] = '';
+ $page->assign('message',"<p class='normal'>Redirection supprimée</p>");
+ } else {
+ $page->assign('message',"<p class='erreur'>Erreur de suppression</p>\n");
+ }
+}
+
+
+$result = $globals->db->query("select redirecturl from auth_user_md5 where user_id={$_SESSION['uid']}");
+list($carva) = mysql_fetch_row($result);
+mysql_free_result($result);
+$page->assign('carva', $carva);
+
+$page->run();
+?>
IF(u.prenom!="",u.prenom,u.prenom_ini) AS prenom,
u.promo AS promo,
a.alias AS forlife,
- '.$globals->search_result_fields.'
+ '.$globals->search->result_fields.'
c.uid AS contact,
w.ni_id AS watch
FROM auth_user_md5 AS r
LEFT JOIN aliases AS a ON (u.user_id = a.id AND a.type="a_vie")
LEFT JOIN contacts AS c ON (c.uid='.((array_key_exists('uid',$_SESSION))?$_SESSION['uid']:0).' AND c.contact=u.user_id)
LEFT JOIN watch_nonins AS w ON (w.ni_id=u.user_id AND w.uid='.((array_key_exists('uid',$_SESSION))?$_SESSION['uid']:0).')
- '.$globals->search_result_where_statement.'
+ '.$globals->search->result_where_statement.'
WHERE '.$fields->get_where_statement().'
HAVING mark>0
ORDER BY '.(logged() && !empty($_REQUEST['mod_date_sort']) ? 'date DESC,' :'')
.implode(',',array_filter(array($fields->get_order_statement(),'u.promo DESC,NomSortKey,prenom'))).'
- LIMIT '.$offset->value.','.$globals->search_results_per_page;
+ LIMIT '.$offset->value.','.$globals->search->per_page;
$page->mysql_assign($sql, 'resultats', 'nb_resultats','nb_resultats_total');
echo mysql_error();
- $nbpages = ($page->get_template_vars('nb_resultats_total')-1)/$globals->search_results_per_page;
+ $nbpages = ($page->get_template_vars('nb_resultats_total')-1)/$globals->search->per_page;
$page->assign('offsets',range(0,$nbpages));
$page->assign('url_args',$fields->get_url());
$page->assign('mod_date_sort',!empty($_REQUEST['mod_date_sort']));
$page->assign('offset',$offset->value);
- $page->assign('perpage',$globals->search_results_per_page);
+ $page->assign('perpage',$globals->search->per_page);
$page->assign('is_admin',has_perms());
if (!logged() &&
- $page->get_template_vars('nb_resultats_total')>$globals->public_max_search_results)
+ $page->get_template_vars('nb_resultats_total')>$globals->search->public_max)
{
new ThrowError('Votre recherche a généré trop de résultats pour un affichage public.');
}
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: foobar.php,v 1.4 2004/11/22 11:16:34 x2000habouzit Exp $
+ $Id: banana.globals.inc.php,v 1.2 2004/12/01 14:25:44 x2000habouzit Exp $
***************************************************************************/
-require('xorg.inc.php');
+// {{{ class SearchConfig
+
+class SearchConfig
+{
+ var $public_max = 25;
+ var $per_page = 20;
+}
+
+// }}}
+
+$this->search = new SearchConfig;
-
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
?>
/*
* Variables globales pour l'affichage des résultats de la recherche
*/
-$globals->search_result_fields = '
+$globals->search->result_fields = '
if(u.epouse=\'\', u.nom, u.epouse) AS NomSortKey,
u.epouse,u.date,u.web,u.mobile,
u.deces!=0 AS dcd,u.deces,
e.entreprise, es.label AS secteur, ef.fonction_fr AS fonction,
IF(n.nat=\'\',n.pays,n.nat) AS nat, n.a2 AS iso3166,
adr.ville, gp.pays, gr.name AS region,';
-$globals->search_result_where_statement = '
+$globals->search->result_where_statement = '
LEFT JOIN applis_ins AS ai0 ON (u.user_id = ai0.uid AND ai0.ordre = 0)
LEFT JOIN applis_def AS ad0 ON (ad0.id = ai0.aid)
LEFT JOIN applis_ins AS ai1 ON (u.user_id = ai1.uid AND ai1.ordre = 1)
htdocs/banana/index.php
htdocs/banana/install.sh
htdocs/banana/post.php
-htdocs/banana/bin/spoolgen.php
+htdocs/banana/scripts/spoolgen.php
htdocs/banana/subscribe.php
htdocs/banana/thread.php
htdocs/banana/xface.php
include/validations/listes.inc.php
bin/mailman/foreach_template.py
bin/mailman/mailman-rpc.py
-bin/mailman/mails/adminsubscribeack.txt
-bin/mailman/mails/approve.txt
-bin/mailman/mails/checkdbs.txt
-bin/mailman/mails/masthead.txt
-bin/mailman/mails/newlist.txt
-bin/mailman/mails/postauth.txt
-bin/mailman/mails/postheld.txt
-bin/mailman/mails/refuse.txt
-bin/mailman/mails/subauth.txt
-bin/mailman/mails/subscribeack.txt
templates/admin/lists.tpl
templates/include/form.valid.listes.tpl
templates/include/form.valid.ml.tpl
include/conf.d/README
-bin/devel/foobar.php
-bin/devel/foobar.pl
-bin/devel/foobar.tpl
bin/devel/modules_status
bin/devel/tplgettext.php
function mailman_templates() {
echo -n "copies new mails templates"
- cp -f ../../scripts/mailman/mails/*.txt /etc/mailman/fr/
+ cp -f ../install.d/lists/mail_templates/*.txt /etc/mailman/fr/
echo .
}