Changeset 2223
- Timestamp:
- 08/05/06 00:05:31 (7 years ago)
- Files:
-
- modules/branches/2.1/irc/page.irc.php (modified) (3 diffs)
- modules/branches/2.2/irc/page.irc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.1/irc/page.irc.php
r2222 r2223 87 87 var nick = null; 88 88 nick = getCookie('ircnick'); 89 if (nick == 'null') nick = ''; 89 90 90 91 nick = prompt("What nickname would you like to use? If you leave this blank, a nick will be automatically generated for you.", nick); … … 100 101 } 101 102 </script> 103 <?php 104 if (isset($_GET['nick'])) { 105 // prevent XSS and other issues 106 $nick = preg_replace('/[^a-zA-Z0-9_\-!]/','',$_GET['nick']); 107 } else { 108 $nick = ''; 109 } 110 ?> 102 111 103 112 <div class="rnav"> … … 118 127 119 128 <p> 120 <?php echo _("When you connect, you will be automatically be named 'FreePBX' and a random 4 digit number, eg, FreePBX3486. If you wish to change this to your normal nickname, you can type '<b>/nick yournickname</b>', and your nick will change. This is an ENGLISH ONLY support channel. Sorry.")?> 129 <?php 130 if (empty($nick)) echo _("When you connect, you will be automatically be named 'FreePBX' and a random 4 digit number, eg, FreePBX3486."); 131 echo _("If you wish to change this to your normal nickname, you can type '<b>/nick yournickname</b>', and your nick will change. This is an ENGLISH ONLY support channel. Sorry."); 132 ?> 121 133 </p> 122 134 123 135 <applet name="PJirc" codebase="modules/irc/pjirc/" code="IRCApplet.class" archive="irc.jar,pixx.jar" width="640" height="400"> 124 136 <param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab"> 125 <?php126 if (isset($_GET['nick'])) {127 // prevent XSS and other issues128 $nick = preg_replace('/[^a-zA-Z0-9_\-!]/','',$_GET['nick']);129 } else {130 $nick = '';131 }132 ?>133 137 <param name="nick" value="<?php echo (!empty($nick) ? $nick : 'FreePBX????') ?>"> 134 <param name="alternatenick" value=" FreePBXU????">138 <param name="alternatenick" value="<?php echo (!empty($nick) ? $nick.'_' : 'FreePBXU????') ?>"> 135 139 <param name="host" value="irc.freenode.net"> 136 140 <param name="gui" value="pixx"> modules/branches/2.2/irc/page.irc.php
r2222 r2223 87 87 var nick = null; 88 88 nick = getCookie('ircnick'); 89 if (nick == 'null') nick = ''; 89 90 90 91 nick = prompt("What nickname would you like to use? If you leave this blank, a nick will be automatically generated for you.", nick); … … 100 101 } 101 102 </script> 103 <?php 104 if (isset($_GET['nick'])) { 105 // prevent XSS and other issues 106 $nick = preg_replace('/[^a-zA-Z0-9_\-!]/','',$_GET['nick']); 107 } else { 108 $nick = ''; 109 } 110 ?> 102 111 103 112 <div class="rnav"> … … 118 127 119 128 <p> 120 <?php echo _("When you connect, you will be automatically be named 'FreePBX' and a random 4 digit number, eg, FreePBX3486. If you wish to change this to your normal nickname, you can type '<b>/nick yournickname</b>', and your nick will change. This is an ENGLISH ONLY support channel. Sorry.")?> 129 <?php 130 if (empty($nick)) echo _("When you connect, you will be automatically be named 'FreePBX' and a random 4 digit number, eg, FreePBX3486."); 131 echo _("If you wish to change this to your normal nickname, you can type '<b>/nick yournickname</b>', and your nick will change. This is an ENGLISH ONLY support channel. Sorry."); 132 ?> 121 133 </p> 122 134 123 135 <applet name="PJirc" codebase="modules/irc/pjirc/" code="IRCApplet.class" archive="irc.jar,pixx.jar" width="640" height="400"> 124 136 <param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab"> 125 <?php126 if (isset($_GET['nick'])) {127 // prevent XSS and other issues128 $nick = preg_replace('/[^a-zA-Z0-9_\-!]/','',$_GET['nick']);129 } else {130 $nick = '';131 }132 ?>133 137 <param name="nick" value="<?php echo (!empty($nick) ? $nick : 'FreePBX????') ?>"> 134 <param name="alternatenick" value=" FreePBXU????">138 <param name="alternatenick" value="<?php echo (!empty($nick) ? $nick.'_' : 'FreePBXU????') ?>"> 135 139 <param name="host" value="irc.freenode.net"> 136 140 <param name="gui" value="pixx">
