/[gnuheter]/gnuheter/user.php
ViewVC logotype

Diff of /gnuheter/user.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.26 by metaur, Tue Dec 10 11:07:33 2002 UTC revision 1.27 by aron, Sat Dec 21 18:08:33 2002 UTC
# Line 719  function editcomm() { Line 719  function editcomm() {
719          <b>Max kommentarslängd</b> (Hugger av långa kommentarer, sätt riktigt högt för att stänga av, till exempel 65535.)<br>          <b>Max kommentarslängd</b> (Hugger av långa kommentarer, sätt riktigt högt för att stänga av, till exempel 65535.)<br>
720          <input class="textbox" type="text" name="commentmax" value="<?PHP echo $userinfo[commentmax] ?>" size=11 maxlength=11> bytes (1024 bytes = 1K)          <input class="textbox" type="text" name="commentmax" value="<?PHP echo $userinfo[commentmax] ?>" size=11 maxlength=11> bytes (1024 bytes = 1K)
721          <br><br>          <br><br>
722          <b>Din signatur</b> (frivillig uppgift)<br>Tillåten HTML: &lt;sup&gt;&lt;sub&gt;&lt;p&gt;&lt;a&gt;&lt;b&gt;&lt;i&gt;&lt;a&gt;&lt;em&gt;&lt;strong&gt;&lt;blockquote&gt;&lt;tt&gt;&lt;li&gt;&lt;ol&gt;&lt;div&gt;&lt;ul&gt; <br>          <b>Din signatur</b> (frivillig uppgift)
723          <textarea class="textbox" wrap="virtual" cols="50" rows="5" name="sig"><?="".stripslashes(strip_tags($userinfo[sig], '<a><p><b><i><em><strong><blockquote><tt><li><ol><div><ul>'));?></textarea><br><br>          <?php printAllowedHTML(); ?>
724            <textarea class="textbox" wrap="virtual" cols="50" rows="5" name="sig"><?="".stripslashes($userinfo[sig]); ?></textarea><br><br>
725          <input type="hidden" name="uname" value="<?PHP echo"$userinfo[uname]"; ?>">          <input type="hidden" name="uname" value="<?PHP echo"$userinfo[uname]"; ?>">
726          <input type="hidden" name="uid" value="<?PHP echo"$userinfo[uid]"; ?>">          <input type="hidden" name="uid" value="<?PHP echo"$userinfo[uid]"; ?>">
727          <input type="hidden" name="op" value="savecomm">          <input type="hidden" name="op" value="savecomm">
728          <input type="submit" value="Spara ändringar" class="button">          <input type="submit" value="Spara ändringar" class="button">
729          </form></td></tr></table>          </form>
730            <?php $content=nl2br(new_check_html(stripslashes($userinfo[sig]))); themesimplebox("100%",$content); ?>
731            </td></tr></table>
732          <?          <?
733          include ('footer.php');          include ('footer.php');
734  }  }
# Line 734  function savecomm($uid, $uname, $umode, Line 737  function savecomm($uid, $uname, $umode,
737                    $noscore, $commentmax, $sig) {                    $noscore, $commentmax, $sig) {
738          global $user, $userinfo;          global $user, $userinfo;
739          dbconnect();          dbconnect();
740          $sig = addslashes(nl2br(strip_tags($sig,"<p><b><a><sub><sup><i><em><strong><blockquote><tt><li><ol><div><ul>")));          $sig = addslashes($sig);
741          if(isset($noscore)) $noscore=1; else $noscore=0;          if(isset($noscore)) $noscore=1; else $noscore=0;
742          mysql_query("UPDATE users SET umode='$umode', uorder='$uorder', "          mysql_query("UPDATE users SET umode='$umode', uorder='$uorder', "
743                    . "thold='$thold', noscore='$noscore', commentmax='$commentmax', "                    . "thold='$thold', noscore='$noscore', commentmax='$commentmax', "
# Line 746  function savecomm($uid, $uname, $umode, Line 749  function savecomm($uid, $uname, $umode,
749                   $userinfo[thold], $userinfo[noscore],                   $userinfo[thold], $userinfo[noscore],
750                   $userinfo[ublockon], $userinfo[theme],                   $userinfo[ublockon], $userinfo[theme],
751                   $userinfo[commentmax], $userinfo[sig]);                   $userinfo[commentmax], $userinfo[sig]);
752          Header("Location: user.php?");          Header("Location: user.php?op=editcomm");
753  }  }
754    
755  switch($op) {  switch($op) {

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26