phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] preferences changeprofile.php


From: Dave Hall
Subject: [Phpgroupware-cvs] preferences changeprofile.php
Date: Tue, 17 Oct 2006 01:17:52 +0000

CVSROOT:        /cvsroot/phpgroupware
Module name:    preferences
Changes by:     Dave Hall <skwashd>     06/10/17 01:17:52

Removed files:
        .              : changeprofile.php 

Log message:
        won't work and not needed

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/preferences/changeprofile.php?cvsroot=phpgroupware&r1=1.13&r2=0

Patches:
Index: changeprofile.php
===================================================================
RCS file: changeprofile.php
diff -N changeprofile.php
--- changeprofile.php   25 Jul 2006 01:13:38 -0000      1.13
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,110 +0,0 @@
-<?php
-       /**
-       * Preferences - change profile
-       *
-       * @author Joseph Engo <address@hidden>
-       * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc. 
http://www.fsf.org/
-       * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
-       * @package preferences
-       * @version $Id: changeprofile.php,v 1.13 2006/07/25 01:13:38 skwashd 
Exp $
-       */
-
-       Header('Cache-Control: no-cache');
-       Header('Pragma: no-cache');
-       // Header('Expires: Sat, Jan 01 2000 01:01:01 GMT');
-
-       $phpgw_info = array();
-       $GLOBALS['phpgw_info']['flags']['currentapp'] = 'preferences';
-       
-       /**
-        * Include phpgroupware header
-        */
-       include('../header.inc.php');
-
-       if ($GLOBALS['phpgw_info']['user']['permissions']['anonymous'])
-       {
-               $GLOBALS['phpgw']->redirect_link('/index.php');
-               $GLOBALS['phpgw']->common->phpgw_exit();
-       }
-
-       if ($submit)
-       {
-               if ($picture_size)
-               {
-                       $fh = fopen($picture,'rb');
-                       $picture_raw = fread($fh,$picture_size);
-                       fclose($fh);
-
-                       $phone_number = addslashes($phone_number);
-                       $comments     = addslashes($comments);
-                       $title        = addslashes($title);
-
-                       if ($GLOBALS['phpgw_info']['server']['db_type'] == 
'mysql')
-                       {
-                               $picture_raw  = addslashes($picture_raw);
-                       }
-                       else
-                       {
-                               $picture_raw = base64_encode($picture_raw);
-                       }
-
-                       $GLOBALS['phpgw']->db->query("delete from profiles 
where owner='" . $GLOBALS['phpgw_info']['user']['userid'] . "'");
-
-                       $GLOBALS['phpgw']->db->query("insert into profiles 
(owner,title,phone_number,comments,"
-                               . "picture_format,picture) values ('" . 
$GLOBALS['phpgw_info']['user']['userid'] . "','"
-                               . 
"$title','$phone_number','$comments','$picture_type','$picture_raw')");
-               }
-               else
-               {
-                       $phone_number = addslashes($phone_number);
-                       $picture_raw  = addslashes($picture_raw);
-                       $comments     = addslashes($comments);
-                       $title        = addslashes($title);
-
-                       $GLOBALS['phpgw']->db->query("update profiles set 
title='$title',phone_number='$phone_number',"
-                               . "comments='$comments' where owner='" . 
$GLOBALS['phpgw_info']['user']['userid'] . "'");
-               }
-               echo '<center>Your profile has been updated</center>';
-       }
-
-       $GLOBALS['phpgw']->db->query("select * from profiles where owner='" . 
$GLOBALS['phpgw_info']['user']['userid'] . "'");
-       $GLOBALS['phpgw']->db->next_record();
-?>
-
-  <form method="post" enctype="multipart/form-data" action="<?php echo 
$GLOBALS['phpgw']->link('/preferences/changeprofile.php'); ?>">
-   <table border="0">
-    <tr>
-     <td colspan="2"><?php echo 
$GLOBALS['phpgw']->common->display_fullname($GLOBALS['phpgw_info']['user']['userid'],$GLOBALS['phpgw_info']['user']['firstname'],$GLOBALS['phpgw_info']['user']['lastname']);
 ?></td>
-     <td>&nbsp;</td>
-    </tr>
-    <tr>
-     <td>Title:</td>
-     <td><input name="title" value="<?php echo 
$GLOBALS['phpgw']->db->f('title'); ?>"></td>
-     <td rowspan="2">
-      <img src="<?php echo $GLOBALS['phpgw']->link('/hr/view_image.php','con=' 
. $GLOBALS['phpgw_info']['user']['con']); ?>" width="100" height="120" />
-     </td>
-    </tr>
-
-    <tr>
-     <td>Phone number:</td>
-     <td><input name="phone_number" value="<?php echo 
$GLOBALS['phpgw']->db->f('phone_number'); ?>" /></td>
-    </tr>
-
-    <tr>
-     <td>Comments:</td>
-     <td><textarea cols="60" name="comments" rows="4" wrap="virtual"><?php 
echo $GLOBALS['phpgw']->db->f('comments'); ?></textarea></td>
-    </tr>
-
-    <tr>
-     <td>Picture:</td>
-     <td><input type="file" name="picture" /><br />Note: Pictures will be 
resized to 100x120.</td>
-    </tr>
-
-    <tr>
-     <td colspan="3" align="center"><input type="submit" name="submit" 
value="Submit" />
-    </tr>
-   </table>
-  </form>
-<?php
-       $GLOBALS['phpgw']->common->phpgw_footer();
-?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]