Commit d7b71780 authored by Benjamin Sonntag's avatar Benjamin Sonntag

adding .ONION support

parent 275422bb
......@@ -23,7 +23,7 @@ require_once("config.php");
require_once("dochangepass.php");
require_once("header.php");
myheader();
require_once("css.php");
?>
......@@ -71,6 +71,6 @@ if (count($info)) {
<p><?php if (isset($support_pgp)) { $support="<a href=\"http://pool.sks-keyservers.net/pks/lookup?op=get&amp;search=".$support_pgp."\">".str_replace("@"," [at] ",$mail_from)."</a>"; } else { $support=str_replace("@"," [at] ",$mail_from); } printf(_("If you are lost or need help, you can contact the tech team at %s"),$support); ?></p>
<?php
require_once("footer.php");
myfooter();
?>
......@@ -23,7 +23,7 @@ require_once("config.php");
require_once("docreate.php");
require_once("header.php");
myheader();
require_once("css.php");
?>
......@@ -91,6 +91,6 @@ if (count($info)) {
<p><?php if (isset($support_pgp)) { $support="<a href=\"http://pool.sks-keyservers.net/pks/lookup?op=get&amp;search=".$support_pgp."\">".str_replace("@"," [at] ",$mail_from)."</a>"; } else { $support=str_replace("@"," [at] ",$mail_from); } printf(_("If you are lost or need help, you can contact the tech team at %s"),$support); ?></p>
<?php
require_once("footer.php");
myfooter();
?>
......@@ -21,7 +21,7 @@
require_once("config.php");
require_once("header.php");
myheader();
require_once("css.php");
?>
......@@ -52,6 +52,6 @@ if (count($info)) {
<?php
require_once("footer.php");
myfooter();
?>
</article> <!-- .et_pb_post --> </div> <!-- #left-area --> <div id="sidebar"> <div id="search-2" class="et_pb_widget widget_search"><form role="search" method="get" id="searchform" class="searchform" action="https://jabber.lqdn.fr/"> <div> <label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form></div> <!-- end .et_pb_widget --> <div id="recent-posts-2" class="et_pb_widget widget_recent_entries"> <h4 class="widgettitle">Recent Posts</h4> <ul> <li> <a href="https://jabber.lqdn.fr/?p=37">Bienvenue sur / Welcome on jabber.lqdn.fr</a> <span class="post-date">2014/08/20</span> </li> </ul> </div> <!-- end .et_pb_widget --><div id="archives-2" class="et_pb_widget widget_archive"><h4 class="widgettitle">Archives</h4> <select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value="">Select Month</option> <option value='https://jabber.lqdn.fr/?m=201408'> August 2014 </option> </select></div> <!-- end .et_pb_widget --><div id="categories-2" class="et_pb_widget widget_categories"><h4 class="widgettitle">Categories</h4><select name='cat' id='cat' class='postform' > <option value='-1'>Select Category</option> <option class="level-0" value="4">fr&nbsp;&nbsp;(1)</option></select><script type='text/javascript'>/* <![CDATA[ */ var dropdown = document.getElementById("cat"); function onCatChange() { if ( dropdown.options[dropdown.selectedIndex].value > 0 ) { location.href = "https://jabber.lqdn.fr/?cat="+dropdown.options[dropdown.selectedIndex].value; } } dropdown.onchange = onCatChange;/* ]]> */</script></div> <!-- end .et_pb_widget --> </div> <!-- end #sidebar --> </div> <!-- #content-area --> </div> <!-- .container --> </div> <!-- #main-content --> <footer id="main-footer"> <div id="footer-bottom"> <div class="container clearfix"> <p id="footer-info"></p> </div> <!-- .container --> </div> </footer> <!-- #main-footer --> </div> <!-- #et-main-area --> </div> <!-- #page-container --> <script type='text/javascript' src='https://jabber.lqdn.fr/wp-includes/js/comment-reply.min.js?ver=3.9.2'></script><script type='text/javascript' src='https://jabber.lqdn.fr/wp-content/themes/Divi/js/jquery.fitvids.js?ver=2.1.2'></script><script type='text/javascript' src='https://jabber.lqdn.fr/wp-content/themes/Divi/js/waypoints.min.js?ver=2.1.2'></script><script type='text/javascript' src='https://jabber.lqdn.fr/wp-content/themes/Divi/js/jquery.magnific-popup.js?ver=2.1.2'></script><script type='text/javascript'>/* <![CDATA[ */var et_custom = {"ajaxurl":"https:\/\/jabber.lqdn.fr\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/jabber.lqdn.fr\/wp-content\/themes\/Divi\/images","et_load_nonce":"2e73a55794","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","fill":"Fill","field":"field","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","next":"Next"};/* ]]> */</script><script type='text/javascript' src='https://jabber.lqdn.fr/wp-content/themes/Divi/js/custom.js?ver=2.1.2'></script></body></html>
\ No newline at end of file
</article> <!-- .et_pb_post --> </div> <!-- #left-area --> <div id="sidebar"> <div id="search-2" class="et_pb_widget widget_search"><form role="search" method="get" id="searchform" class="searchform" action="https://jabber.lqdn.fr/"> <div> <label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form></div> <!-- end .et_pb_widget --> <div id="recent-posts-2" class="et_pb_widget widget_recent_entries"> <h4 class="widgettitle">Recent Posts</h4> <ul> <li> <a href="https://jabber.lqdn.fr/securing-our-jabber-server-with-fail2ban-securisation-du-serveur-jabber-avec-fail2ban/">Securing our jabber server with fail2ban / Sécurisation du serveur Jabber avec fail2ban</a> <span class="post-date">2014/11/26</span> </li> <li> <a href="https://jabber.lqdn.fr/bienvenue-sur-jabber-lqdn-fr/">Bienvenue sur / Welcome on jabber.lqdn.fr</a> <span class="post-date">2014/08/20</span> </li> </ul> </div> <!-- end .et_pb_widget --><div id="archives-2" class="et_pb_widget widget_archive"><h4 class="widgettitle">Archives</h4> <select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value="">Select Month</option> <option value='https://jabber.lqdn.fr/2014/11/'> November 2014 </option> <option value='https://jabber.lqdn.fr/2014/08/'> August 2014 </option> </select></div> <!-- end .et_pb_widget --><div id="categories-2" class="et_pb_widget widget_categories"><h4 class="widgettitle">Categories</h4><select name='cat' id='cat' class='postform' > <option value='-1'>Select Category</option> <option class="level-0" value="10">news&nbsp;&nbsp;(2)</option></select><script type='text/javascript'>/* <![CDATA[ */ var dropdown = document.getElementById("cat"); function onCatChange() { if ( dropdown.options[dropdown.selectedIndex].value > 0 ) { location.href = "https://jabber.lqdn.fr/?cat="+dropdown.options[dropdown.selectedIndex].value; } } dropdown.onchange = onCatChange;/* ]]> */</script></div> <!-- end .et_pb_widget --> </div> <!-- end #sidebar --> </div> <!-- #content-area --> </div> <!-- .container --> </div> <!-- #main-content --> <footer id="main-footer"> <div id="footer-bottom"> <div class="container clearfix"> <p id="footer-info"></p> </div> <!-- .container --> </div> </footer> <!-- #main-footer --> </div> <!-- #et-main-area --> </div> <!-- #page-container --> <script type='text/javascript' src='https://jabber.lqdn.fr/wp-includes/js/comment-reply.min.js?ver=3.9.2'></script><script type='text/javascript' src='https://jabber.lqdn.fr/wp-content/themes/Divi/js/jquery.fitvids.js?ver=2.1.2'></script><script type='text/javascript' src='https://jabber.lqdn.fr/wp-content/themes/Divi/js/waypoints.min.js?ver=2.1.2'></script><script type='text/javascript' src='https://jabber.lqdn.fr/wp-content/themes/Divi/js/jquery.magnific-popup.js?ver=2.1.2'></script><script type='text/javascript'>/* <![CDATA[ */var et_custom = {"ajaxurl":"https:\/\/jabber.lqdn.fr\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/jabber.lqdn.fr\/wp-content\/themes\/Divi\/images","et_load_nonce":"4354985088","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","fill":"Fill","field":"field","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","next":"Next"};/* ]]> */</script><script type='text/javascript' src='https://jabber.lqdn.fr/wp-content/themes/Divi/js/custom.js?ver=2.1.2'></script></body></html>
\ No newline at end of file
......
......@@ -69,3 +69,31 @@ function fixlogin($str) {
return $str;
}
function myheader() {
if ($_SERVER["HTTP_HOST"]=="jabber.lqdn.fr") {
readfile("header.php");
return;
}
$f=fopen("header.php","rb");
$HOST="http".( ($_SERVER["HTTPS"])?"s":"" )."://".$_SERVER["HTTP_HOST"]."";
while ($s=fgets($f,65536)) {
echo str_replace("https://jabber.lqdn.fr",$HOST,$s);
// if (strpos("background-image",$s)!==false) echo "L:$s:";
}
fclose($f);
}
function myfooter() {
if ($_SERVER["HTTP_HOST"]=="jabber.lqdn.fr") {
readfile("footer.php");
return;
}
$f=fopen("footer.php","rb");
$HOST="http".( ($_SERVER["HTTPS"])?"s":"" )."://".$_SERVER["HTTP_HOST"]."";
while ($s=fgets($f,65536)) {
echo str_replace("https://jabber.lqdn.fr",$HOST,$s);
}
fclose($f);
}
This diff is collapsed.
......@@ -64,7 +64,7 @@ msgid ""
"a non-mandatory email address which will allow you to change your password "
"if you lose it later."
msgstr ""
"Si vous souhaitez créer un compte sur ce seruver Jabber, merci d'entrer un "
"Si vous souhaitez créer un compte sur ce serveur Jabber, merci d'entrer un "
"nom d'utilisateur et un mot de passe (deux fois), dans le formulaire ci-"
"dessous. Vous pouvez aussi saisir une adresse email (facultative) qui vous "
"permettra de modifier votre mot de passe plus tard si vous le perdez."
......
......@@ -23,7 +23,7 @@ require_once("config.php");
require_once("dolost.php");
require_once("header.php");
myheader();
require_once("css.php");
?>
......@@ -79,6 +79,6 @@ if (count($info)) {
<p><?php if (isset($support_pgp)) { $support="<a href=\"http://pool.sks-keyservers.net/pks/lookup?op=get&amp;search=".$support_pgp."\">".str_replace("@"," [at] ",$mail_from)."</a>"; } else { $support=str_replace("@"," [at] ",$mail_from); } printf(_("If you are lost or need help, you can contact the tech team at %s"),$support); ?></p>
<?php
require_once("footer.php");
myfooter();
?>
......@@ -21,7 +21,7 @@
require_once("config.php");
require_once("header.php");
myheader();
require_once("css.php");
?>
......@@ -53,6 +53,6 @@ if (count($info)) {
<p><?php if (isset($support_pgp)) { $support="<a href=\"http://pool.sks-keyservers.net/pks/lookup?op=get&amp;search=".$support_pgp."\">".str_replace("@"," [at] ",$mail_from)."</a>"; } else { $support=str_replace("@"," [at] ",$mail_from); } printf(_("If you are lost or need help, you can contact the tech team at %s"),$support); ?></p>
<?php
require_once("footer.php");
myfooter();
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment