Changeset 10

Show
Ignore:
Timestamp:
08/09/05 01:23:02 (7 years ago)
Author:
alexx
Message:

* remove last "domain dependency" (hard coded domain)
* replace hard coded IP or login (for debug/administration purpose) by configuration array $configadmin_login? and $configadmin_ip?
* replace hard coded email by $configemail?
* manage smarty var by $_SMARTY (that will be assigned on time at the end of script), dotnode-*.php from the root has been modified
* fixe gettext file to reflect change into terms that contain an hard coded email
* some minor change

Location:
trunk
Files:
36 modified

Legend:

Unmodified
Added
Removed
  • trunk/actions/admin/delete_image.action.php

    r1 r10  
    2323 ******************** http://opensource.ikse.net/projects/dotnode ***/ 
    2424 
    25 if($_SESSION['my_login'] == 'alexx' || $_SESSION['my_login'] == 'mathieu') 
     25if($_SESSION['my_login'] == $config['admin_login']) 
    2626{ 
    2727        list($id_image, $ext) = split("\.", basename($_POST['image_path'])); 
  • trunk/dntp/action.php

    r1 r10  
    5454                header("HTTP/1.1 403 Forbidden"); 
    5555                print $_SERVER["PHP_SELF"].": Action forbidden<br />\n"; 
    56                 if($_SERVER['REMOTE_ADDR'] == "82.226.113.191") 
     56                if($_SERVER['REMOTE_ADDR'] == $config['admin_ip']) 
    5757                        print ACTIONSPATH.'/'.$action; 
    5858        } 
  • trunk/dotnode-action.php

    r1 r10  
    6262                header("HTTP/1.1 403 Forbidden"); 
    6363                print $_SERVER["PHP_SELF"].": Action forbidden<br />\n"; 
    64                 if($_SERVER['REMOTE_ADDR'] == MY_IP) 
     64                if($_SERVER['REMOTE_ADDR'] == $config['admin_ip']) 
    6565                        print ACTIONSPATH.'/'.$action;  
    6666        } 
  • trunk/dotnode-dotpage.php

    r1 r10  
    121121                $tpl='default.tpl'; 
    122122 
    123         $smarty->assign('tpl', $tpl); 
    124         $smarty->assign('token', $token); 
     123        $_SMARTY['tpl'] = $tpl; 
     124        $_SMARTY['token'] = $token; 
    125125 
    126  
    127         $smarty->assign('profile', $user); 
    128         $smarty->assign('dotpage_css', $dotpage_css); 
     126        $_SMARTY['profile'] = $user; 
     127        $_SMARTY['dotpage_css'] = $dotpage_css; 
    129128} 
    130129 
     
    140139} 
    141140 
    142 $smarty->assign('css', $css); 
    143 $smarty->assign('lang', $lang); 
     141$_SMARTY['css'] = $css; 
     142$_SMARTY['lang'] = $lang; 
     143 
     144$smarty->assign($_SMARTY); 
    144145 
    145146header('Content-type: text/html; charset=UTF-8'); 
  • trunk/dotnode-error.php

    r1 r10  
    138138 
    139139if($_SESSION['my_id']) 
    140         $smarty->assign('menu', $menu['main']); 
     140        $_SMARTY['menu'] = $menu['main']; 
    141141else 
    142         $smarty->assign('menu', $menu['pub']); 
     142        $_SMARTY['menu'] = $menu['pub']; 
    143143 
    144 $smarty->assign('token', $token); 
     144$_SMARTY['token'] = $token; 
     145$_SMARTY['Title'] = $title; 
     146$_SMARTY['errorMsg'] = $error_msg; 
     147$_SMARTY['tpl'] = 'error.tpl'; 
    145148 
    146 $smarty->assign('Title',$title); 
    147 $smarty->assign('errorMsg',$error_msg); 
    148  
    149 $smarty->assign('tpl','error.tpl'); 
    150  
    151 if($_SERVER['REMOTE_ADDR'] == "82.225.136.176") 
     149if($_SERVER['REMOTE_ADDR'] == $config['admin_ip']) 
    152150{ 
    153151        $debug['session'] = $_SESSION; 
    154         $smarty->assign('debug', $debug); 
    155         $smarty->assign('lang',$lang); 
    156         $smarty->assign('php_mem',memory_get_usage()/1024); 
    157         $smarty->assign('inc',$inc); 
     152        $_SMARTY['debug'] = $debug; 
     153        $_SMARTY['lang'] = $lang; 
     154        $_SMARTY['php_mem'] = memory_get_usage()/1024; 
     155        $_SMARTY['inc'] = $inc; 
    158156} 
     157 
     158$smarty->assign($_SMARTY); 
    159159 
    160160header('Content-type: text/html; charset=UTF-8'); 
  • trunk/dotnode-id.php

    r1 r10  
    4141$smarty->compile_id = 'www'; 
    4242 
    43 if($_SESSION['my_login'] = 'alexx') 
    44         $smarty->debugging_ctrl = true; 
    45  
    4643$smarty->register_block('t', 'smarty_translate'); 
    4744$smarty->register_modifier('wikise', 'Wikise'); 
     
    7269session_start(); 
    7370 
     71if($_SESSION['my_login'] == $config['admin_login']) 
     72        $smarty->debugging_ctrl = true; 
     73else 
     74        $smarty->debugging_ctrl = false; 
     75         
    7476if(strlen($token[1]) == 32) 
    7577        list($url_id) = array_splice($token, 1,1); 
     
    112114        unset($help_tpl); 
    113115else 
    114         $smarty->assign('help_tpl', $help_tpl); 
     116        $_SMARTY['help_tpl'] = $help_tpl; 
    115117 
    116118for($idx=(count($token)-1); $idx>=0; $idx--) 
     
    182184 
    183185// Exportation des donnees pour Smarty 
    184 $smarty->assign('token',$token); 
    185 $smarty->assign('full_smenu',$smenu); 
    186 $smarty->assign('full_ssmenu',$ssmenu); 
    187  
    188 $smarty->assign('menu',$menu['main']); 
    189 $smarty->assign('smenu',$smenu[$token[0]]); 
    190 $smarty->assign('ssmenu',$ssmenu[$token[0]][$token[1]]); 
    191  
    192 $smarty->assign('tpl',$tpl); 
    193  
    194 $smarty->assign('url_id', $url_id); 
    195 $smarty->assign('nyrk',$nyrk); 
    196 $smarty->assign('labels', $labels); 
    197 $smarty->assign('access_fields', $access_fields); 
    198  
    199 if($_SESSION['my_login'] == 'alexx') 
     186$_SMARTY['token'] = $token; 
     187$_SMARTY['full_smenu'] = $smenu; 
     188$_SMARTY['full_ssmenu'] = $ssmenu; 
     189$_SMARTY['menu'] = $menu['main']; 
     190$_SMARTY['smenu'] = $smenu[$token[0]]; 
     191$_SMARTY['ssmenu'] = $ssmenu[$token[0]][$token[1]]; 
     192$_SMARTY['tpl'] = $tpl; 
     193 
     194$_SMARTY['url_id'] = $url_id; 
     195$_SMARTY['nyrk']   = $nyrk; 
     196$_SMARTY['labels'] = $labels; 
     197$_SMARTY['access_fields'] = $access_fields; 
     198 
     199if($_SESSION['my_login'] == $config['admin_login']) 
    200200{ 
    201201        $debug['session'] = $_SESSION; 
    202         $smarty->assign('debug', $debug); 
    203         $smarty->assign('lang',$lang); 
    204         $smarty->assign('php_mem',memory_get_usage()/1024); 
    205         $smarty->assign('inc',$inc); 
    206 } 
     202        $_SMARTY['debug'] = $debug; 
     203        $_SMARTY['lang']  = $lang; 
     204        $_SMARTY['php_mem']= memory_get_usage()/1024; 
     205        $_SMARTY['inc']   = $inc; 
     206} 
     207 
     208// Assignation of smarty var 
     209$smarty->assign($_SMARTY); 
    207210 
    208211// Affiche du template 
  • trunk/dotnode-new.php

    r1 r10  
    3636$smarty->compile_id = 'new'; 
    3737 
    38 $smarty->debugging_ctrl = true; 
     38$smarty->debugging_ctrl = false; 
    3939 
    4040$smarty->register_block('t', 'smarty_translate'); 
     
    7575        unset($help_tpl); 
    7676else 
    77         $smarty->assign('help_tpl', $help_tpl); 
     77        $_SMARTY['help_tpl'] = $help_tpl; 
    7878 
    7979 
     
    124124// Exportation des donnees pour Smarty 
    125125 
    126 $smarty->assign('token',$token); 
    127 $smarty->assign('menu',$menu['main']); 
    128 $smarty->assign('smenu',$smenu[$token[0]]); 
    129 $smarty->assign('ssmenu',$ssmenu[$token[0]][$token[1]]); 
     126$_SMARTY['token'] = $token; 
     127$_SMARTY['menu'] = $menu['main']; 
     128$_SMARTY['smenu'] = $smenu[$token[0]]; 
     129$_SMARTY['ssmenu'] = $ssmenu[$token[0]][$token[1]]; 
    130130 
    131 $smarty->assign('tpl',$tpl); 
     131$_SMARTY['tpl'] = $tpl; 
    132132 
    133 $smarty->assign('url_id', $url_id); 
    134 $smarty->assign('nyrk',$nyrk); 
    135 $smarty->assign('labels', $labels); 
    136 $smarty->assign('access_fields', $access_fields); 
    137 $smarty->assign('lang',$lang); 
     133$_SMARTY['url_id'] = $url_id; 
     134$_SMARTY['nyrk'] = $nyrk; 
     135$_SMARTY['labels'] = $labels; 
     136$_SMARTY['access_fields'] = $access_fields; 
     137$_SMARTY['lang'] = $lang; 
    138138 
    139 if($_SERVER['REMOTE_ADDR'] == "82.226.113.191" || $_SERVER['REMOTE_ADDR'] == "81.56.215.231") 
     139if($_SERVER['REMOTE_ADDR'] == $config['admin_ip']) 
    140140{ 
    141141        $debug['session'] = $_SESSION; 
    142         $smarty->assign('debug', $debug); 
    143         $smarty->assign('php_mem',memory_get_usage()/1024); 
    144         $smarty->assign('inc',$inc); 
     142        $_SMARTY['debug'] = $debug; 
     143        $_SMARTY['php_mem'] = memory_get_usage()/1024; 
     144        $_SMARTY['inc'] = $inc; 
    145145} 
     146 
     147$smarty->assign($_SMARTY); 
    146148 
    147149// Affiche du template 
  • trunk/dotnode-pub.php

    r1 r10  
    7777// Exportation des donnees pour Smarty 
    7878 
    79 $smarty->assign('token',$token); 
    80 $smarty->assign('menu',$menu['pub']); 
    81 $smarty->assign('smenu',$smenu['pub']); 
     79$_SMARTY['token'] = $token; 
     80$_SMARTY['menu'] = $menu['pub']; 
     81$_SMARTY['smenu'] = $smenu['pub']; 
    8282 
    83 $smarty->assign('tpl',$tpl); 
    84 $smarty->assign('lang',$lang); 
     83$_SMARTY['tpl'] = $tpl; 
     84$_SMARTY['lang'] = $lang; 
    8585// Affiche du template 
    8686 
    87 if($_SERVER['REMOTE_ADDR'] == '82.225.136.176') 
     87if($_SERVER['REMOTE_ADDR'] == $config['admin_ip']) 
    8888{ 
    8989        $debug['session'] = $_SESSION; 
    90         $smarty->assign('debug', $debug); 
    91         $smarty->assign('php_mem',memory_get_usage()/1024); 
    92         $smarty->assign('inc',$inc); 
     90        $_SMARTY['debug'] = $debug; 
     91        $_SMARTY['php_mem'] = memory_get_usage()/1024; 
     92        $_SMARTY['inc'] = $inc; 
    9393} 
     94 
     95$smarty->assign($_SMARTY); 
     96 
    9497header('Content-type: text/html; charset=UTF-8'); 
    9598// ob_start('ob_gzhandler'); 
  • trunk/dotnode-response.php

    r1 r10  
    5858                header("HTTP/1.1 403 Forbidden"); 
    5959                print $_SERVER["PHP_SELF"].": Response forbidden<br />\n"; 
    60                 if($_SERVER['REMOTE_ADDR'] == "82.226.113.191") 
     60                if($_SERVER['REMOTE_ADDR'] == $config['admin_ip']) 
    6161                        print RESPONSESPATH.'/'.$response;  
    6262        } 
  • trunk/dotnode-xml.php

    r1 r10  
    3737$smarty->config_dir = SMARTYPATH.'/configs/'; 
    3838$smarty->cache_dir = SMARTYPATH.'/cache/'; 
    39 $smarty->debugging_ctrl = true; 
     39$smarty->debugging_ctrl = false; 
    4040$smarty->register_modifier('wikise', 'Wikise'); 
    4141$smarty->compile_id = 'xml'; 
     
    110110                $tpl='default.tpl'; 
    111111 
     112        $_SMARTY['tpl'] = $tpl; 
     113        $_SMARTY['token'] = $token; 
     114        $_SMARTY['url_id'] = $url_id; 
     115        $_SMARTY['profile'] = $user; 
    112116        $smarty->assign($_SMARTY); 
    113         $smarty->assign('tpl', $tpl); 
    114         $smarty->assign('token', $token); 
    115         $smarty->assign('url_id', $url_id); 
    116         $smarty->assign('profile', $user); 
    117117} 
    118118 
  • trunk/includes/EDIT_config_server.inc.php

    r1 r10  
    2525 
    2626$config['domain'] = 'xxx.dotnode.net'; 
     27$config['email'] = 'email_of_a_resp'; 
     28$config['admin_login'] = 'admin_login'; 
     29$config['admin_ip'] = 'admin_ip'; 
    2730 
    2831$dsn = array( 
  • trunk/includes/config.inc.php

    r1 r10  
    2222 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    2323 ******************** http://opensource.ikse.net/projects/dotnode ***/ 
    24  
    25 require "config_server.inc.php"; 
    2624 
    2725if(array_key_exists('DOCUMENT_ROOT', $_SERVER) && strlen($_SERVER['DOCUMENT_ROOT']) > 0) 
     
    5048define('ALBUM_IMAGE_H', 708); 
    5149 
     50if(file_exists(INCLUDESPATH.'/config_server.inc.php')) 
     51        require 'config_server.inc.php'; 
     52else 
     53        die('Edit includes/EDIT_config_server.inc.php and rename it in config_server.inc.php'); 
     54 
     55$_SMARTY['config'] = $config; 
     56 
    5257ini_set('register_globals', 'off'); 
    5358ini_set('error_log', BASEPATH.'/../log/php.log'); 
  • trunk/smarty/templates/ReportBogus.tpl

    r1 r10  
    11<h2>{t}You have found a problem ?{/t}</h2> 
    2 {t escape=no 1=$smarty.get.url}If you have found a problem (bad translation, bug, illegal thing, explicit content, ...) on page "<a href='%1'>http://dotnode.com%1</a>", report it here. Describe the problem and send the message.{/t} 
     2{t escape=no 1=$smarty.get.url 2=$config.domain}If you have found a problem (bad translation, bug, illegal thing, explicit content, ...) on page "<a href='%1'>http://%2%1</a>", report it here. Describe the problem and send the message.{/t} 
    33<br /> 
    44<form action='/action/ReportBogus/send' method='post'> 
  • trunk/smarty/templates/album/view.tpl

    r1 r10  
    1111<div style="clear:both"></div> 
    1212 
    13 {if $smarty.session.my_login=='alexx' || $smarty.session.my_login=='mathieu'} 
     13{if $smarty.session.my_login==$config.admin_login} 
    1414<form action='/action/{$url_id}/admin/delete_image' method='post'> 
    1515Indiquer les raisons de la suppression de l'image:<br /> 
  • trunk/smarty/templates/communities/create.tpl

    r1 r10  
    3131<tr class='{cycle name='parity' values='odd,even'}'> 
    3232<td colspan='2' align='center'><span class='label'>{t}Type the code displayed inside this image{/t} :</span> 
    33 <input type='text' name='code' maxlength='4' size='4' /><br /><img style='border: 2px silver solid; padding: 2px;width:237px; height: 48px;' src='/pix/{$smarty.now}.png' alt='{t}If you have trouble, send an email on: pixcode-pb@dotnode.net{/t}'/></td> 
     33<input type='text' name='code' maxlength='4' size='4' /><br /><img style='border: 2px silver solid; padding: 2px;width:237px; height: 48px;' src='/pix/{$smarty.now}.png' alt='{t 1=$config.email}If you have trouble, send an email on: %1{/t}'/></td> 
    3434</tr> 
    3535 
  • trunk/smarty/templates/communities/edit.tpl

    r1 r10  
    6060</form> 
    6161 
    62 {if $smarty.session.my_login == 'alexx'} 
     62{if $smarty.session.my_login == $config.admin_login} 
    6363<br /> 
    6464{if $community.info.status=='ok'} 
     
    7070<label for='reason'>{t}Explain why they should unjoin your community{/t}.<br > 
    7171{t}It can be{/t}:<br /> 
    72 <i>"{t}because it's redondant with the community{/t} http://dotnode.com/communities/view/XXXX"</i></label><br /> 
     72<i>"{t}because it's redondant with the community{/t} http://{$config.domain}/communities/view/XXXX"</i></label><br /> 
    7373<textarea id='reason' name='reason' cols='60' rows='5'></textarea><br /> 
    7474{else} 
  • trunk/smarty/templates/communities/last.tpl

    r1 r10  
    33<p>{t}Follow the creation of the communities with RSS:{/t}</p> 
    44<ul> 
    5 <li><a href='http://alexx.ikse.org/addpanel.php?rss=http://dotnode.com/xml/rss/communities/last'>{t}SideBar builder for Mozilla Firefox{/t}</a></li> 
    6 <li><a href='http://dotnode.com/xml/rss/communities/last'>{t}Directly the RSS{/t}</a></li> 
     5<li><a href='http://alexx.ikse.org/addpanel.php?rss=http://{$config.domain}/xml/rss/communities/last'>{t}SideBar builder for Mozilla Firefox{/t}</a></li> 
     6<li><a href='http://{$config.domain}/xml/rss/communities/last'>{t}Directly the RSS{/t}</a></li> 
    77</ul> 
    88 
  • trunk/smarty/templates/communities/mine.tpl

    r1 r10  
    55<p>{t}Follow your communities activities with RSS:{/t}</p> 
    66<ul> 
    7 <li><a href='http://alexx.ikse.org/addpanel.php?rss=http://dotnode.com/xml/{$url_id}/rss/communities'>{t}SideBar builder for Mozilla Firefox{/t}</a></li> 
    8 <li><a href='http://dotnode.com/xml/{$url_id}/rss/communities'>{t}Directly the RSS{/t}</a></li> 
     7<li><a href='http://alexx.ikse.org/addpanel.php?rss=http://{$config.domain}/xml/{$url_id}/rss/communities'>{t}SideBar builder for Mozilla Firefox{/t}</a></li> 
     8<li><a href='http://{$config.domain}/xml/{$url_id}/rss/communities'>{t}Directly the RSS{/t}</a></li> 
    99</ul> 
    1010 
  • trunk/smarty/templates/help/about/promote.tpl

    r1 r10  
    22<h3>{t}Insert a logo on your site{/t}</h3> 
    33<p> 
    4 <img src='http://dotnode.com/img/dotnode-member8015.png' alt='See my .page' style='width:80px; height: 15px; border:none;' /><br /> 
     4<img src='http://{$config.domain}/img/dotnode-member8015.png' alt='See my .page' style='width:80px; height: 15px; border:none;' /><br /> 
    55{t}In order to display this logo, simply copy the HTML code and insert it into your page{/t} : 
    66<pre style='border: 1px gray solid; padding: 5px'> 
    7 &lt;a href='http://{$smarty.session.my_login}.dotnode.com' title='See my .page'&gt; 
    8 &lt;img src='http://{$smarty.session.my_login}.dotnode.com/img/dotnode-member8015.png' alt='See my .page' style='width:80px; height: 15px; border:none;'  /&gt; 
     7&lt;a href='http://{$smarty.session.my_login}.{$config.domain}' title='See my .page'&gt; 
     8&lt;img src='http://{$smarty.session.my_login}.{$config.domain}/img/dotnode-member8015.png' alt='See my .page' style='width:80px; height: 15px; border:none;'  /&gt; 
    99&lt;/a&gt; 
    1010</pre> 
  • trunk/smarty/templates/index.tpl

    r8 r10  
    141141{t}Display problem with this site ?{/t} <a href='/help/about#standard'>{t}See this page about Web standard{/t}</a></p> 
    142142{/if} 
    143  <form style="display: inline;" method='post' id='cnil' action='http://www.cnil.fr/index.php?id=29'><p>{t}CNIL registration number{/t}: <input type='hidden' name='txtCritere' value='1011429' /><a href='http://www.cnil.fr/index.php?id=29' onClick="document.forms['cnil'].submit(); return false;">1011429</a> - {t}To contact me{/t} : {mailto address="nyrk&#64;dotnode.com" encode="javascript"}</p></form> 
     143 <form style="display: inline;" method='post' id='cnil' action='http://www.cnil.fr/index.php?id=29'><p>{t}CNIL registration number{/t}: <input type='hidden' name='txtCritere' value='1011429' /><a href='http://www.cnil.fr/index.php?id=29' onClick="document.forms['cnil'].submit(); return false;">1011429</a> - {t}To contact me{/t} : {mailto address=$config.email encode="javascript"}</p></form> 
    144144<p> 
    145145<a href="http://www.ikse.net" ><img style="width:88px;height:31px" src="http://ikse.net/images/ikse.net-88x31.png" alt="Hosted by Ikse.net" /></a> 
    146146{if $token[0] == 'pub'} 
    147147<a href="http://validator.w3.org/check/referer"><img style="width:88px;height:31px" src="/img/xhtml-1.png" alt="Valid XHTML 1.0!" height="31" width="88" /></a> 
    148 <a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fdotnode.com%2Fdefault.css&amp;warning=2&amp;profile=css2&amp;usermedium=all"><img style="width:88px;height:31px" src="/img/css.png" alt="Valid CSS!" /></a> 
     148<a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2F{$config.domain}%2Fdefault.css&amp;warning=2&amp;profile=css2&amp;usermedium=all"><img style="width:88px;height:31px" src="/img/css.png" alt="Valid CSS!" /></a> 
    149149{/if} 
    150150</p> 
    151 {if $smarty.server.REMOTE_ADDR eq "82.226.113.191"} 
     151{if $smarty.server.REMOTE_ADDR eq $config.admin_ip} 
    152152Template utilisé : {$tpl}<br /> 
    153153Help template utilisé : {$help_tpl}<br /> 
  • trunk/smarty/templates/index_foot.tpl

    r1 r10  
    99{t}Display problem with this site ?{/t} <a href='/help/about#standard'>{t}See this page about Web standard{/t}</a></p> 
    1010{/if} 
    11  <form style="display: inline;" method='post' id='cnil' action='http://www.cnil.fr/index.php?id=29'><p>{t}CNIL registration number{/t}: <input type='hidden' name='txtCritere' value='1011429' /><a href='http://www.cnil.fr/index.php?id=29' onClick="document.forms['cnil'].submit(); return false;">1011429</a> - {t}To contact me{/t} : {mailto address="nyrk&#64;dotnode.com" encode="javascript"}</p></form> 
     11 <form style="display: inline;" method='post' id='cnil' action='http://www.cnil.fr/index.php?id=29'><p>{t}CNIL registration number{/t}: <input type='hidden' name='txtCritere' value='1011429' /><a href='http://www.cnil.fr/index.php?id=29' onClick="document.forms['cnil'].submit(); return false;">1011429</a> - {t}To contact me{/t} : {mailto address=$config.email encode="javascript"}</p></form> 
    1212<p> 
    1313<a href="http://www.spreadfirefox.com/?q=affiliates&amp;id=49635&amp;t=70"><img border="0" alt="Get Firefox!" title="Get Firefox!" src="http://sfx-images.mozilla.org/affiliates/Buttons/88x31/get.gif"/></a> 
     
    1515</p> 
    1616 
    17 {if $smarty.session.my_login eq 'alexx'} 
     17{if $smarty.session.my_login eq $config.admin_login} 
    1818:: {$smarty.env.LANG} :: 
    1919Template utilisé : {$tpl}<br /> 
  • trunk/smarty/templates/irc.tpl

    r1 r10  
    1919<param name="command2" value="/join #dotnode-en"> 
    2020{/if} 
    21 <param name="quitmessage" value=".node forever! See my .page : http://{$smarty.session.my_login}.dotnode.com"> 
     21<param name="quitmessage" value=".node forever! See my .page : http://{$smarty.session.my_login}.{$config.domain}"> 
    2222<param name="asl" value="true"> 
    2323 
  • trunk/smarty/templates/my.tpl

    r1 r10  
    111111{/if} 
    112112 
    113 <p><img class='icon' src='/img/help.png' alt='help' align='left' />&nbsp;{t}Tell people your dotpage address:{/t} <a href='http://{$my.info.login}.dotnode.com'>{$my.info.login}.dotnode.com</a> 
     113<p><img class='icon' src='/img/help.png' alt='help' align='left' />&nbsp;{t}Tell people your dotpage address:{/t} <a href='http://{$my.info.login}.{$config.domain}'>{$my.info.login}.{$config.domain}</a> 
    114114</p> 
    115115 
  • trunk/smarty/templates/my/settings.tpl

    r1 r10  
    4545*} 
    4646<tr class='{cycle values='odd,even'}'> 
    47 <td align='right' class='label'>{t escape='no' 1=$smarty.session.my_login}<b>Publish my .page</b><br />(<a href='http://%1.dotnode.com'>%1.dotnode.com</a>: blog, album, ...){/t} : </td> 
     47<td align='right' class='label'>{t escape='no' 1=$smarty.session.my_login 2=domain}<b>Publish my .page</b><br />(<a href='http://%1.%2'>%1.%2</a>: blog, album, ...){/t} : </td> 
    4848<td class='value' nowrap='nowrap'>{html_radios name='publish' options=$labels.yesno checked=$my.settings.publish}</td> 
    4949<td rowspan='2' style='vertical-align: middle'>({t}this parameter take 10 minutes to be applied{/t})</td> 
  • trunk/smarty/templates/new.tpl

    r1 r10  
    1313<span class='label'>{t}Comfirm password{/t}:</span>&nbsp;<input type='password' name='passwd2' /><br /> 
    1414<span class='label'>{t}Type the code displayed inside this image{/t} :</span>&nbsp;<input type='text' name='code' maxlength='4' size='4' /><br /> 
    15 <img style='border: 2px silver solid; padding: 2px;width:237px; height: 48px;' src='/pix/{$smarty.now}.png' alt='{t}If you have trouble, send an email on: pixcode-pb@dotnode.net{/t}'/><br /> 
     15<img style='border: 2px silver solid; padding: 2px;width:237px; height: 48px;' src='/pix/{$smarty.now}.png' alt='{t 1=$config.email}If you have trouble, send an email on: %1{/t}'/><br /> 
    1616<br /> 
    1717<input type='submit' name='accept' value='{t}Accept{/t}' /> 
  • trunk/smarty/templates/profile.tpl

    r1 r10  
    271271{include file=_profile/all.tpl} 
    272272 
    273 {if $smarty.session.my_login=='alexx' || $smarty.session.my_login=='mathieu'} 
     273{if $smarty.session.my_login==$config.admin_login} 
    274274<form action='/action/{$url_id}/admin/delete_photo' method='post'> 
    275275Indiquer les raisons de la suppression de la photo:<br /> 
  • trunk/smarty/templates/pub.tpl

    r1 r10  
    11<h2>{t}What is it ?{/t}</h2> 
    22<div id='loginbox'> 
    3 {if $smarty.server.REMOTE_ADDR == 'ok82.226.113.191'} 
    4  
    5 <fieldset> 
    6 <legend>En maintenance !</legend> 
    7 .node est en cours de conversion en UTF-8 pour accepter des langues avec un alphabet diff�nt.<br /> 
    8 <br /> 
    9 Merci de votre comprehension. Retour prevu a 10h30 (j'espere).<br /> 
    10 (cela fonctionne d� presque parfaitement ... plus que 2-3 petites choses ��er)<br /> 
    11 <br /> 
    12 Alexx <br /> 
    13 </fieldset> 
    14  
    15 {else} 
    163 
    174<form action='/action/login' method='post' onSubmit="document.getElementById('md5_passwd').value = MD5_hexhash(document.getElementById('passwd').value);"> 
     
    2916</form> 
    3017 
    31 {/if} 
    32  
    3318</div> 
    3419<p><img src='/img/who_do_you.png' alt="Who do you want to meet today ?" align='left' style='margin-right: 10px;'/> 
  • trunk/smarty/templates/pub/no-hp.tpl

    r1 r10  
    1 <h2>{t}No dotPage for this .node member{/t}</h2> 
    2 <p>{t}This member haven't join a photo to his profile. His dotPage is disabled{/t}.</p> 
    3 <p>{t}You can see dotPage's examples at{/t} : <a href='http://alexx.dotnode.com'>http://alexx.dotnode.com</a>, <a href='http://mathieu.dotnode.com'>http://mathieu.dotnode.com</a>.</p> 
     1<h2>{t}No .page for this .node member{/t}</h2> 
     2<p>{t}Sorry{/t}</p>