[Vtigercrm-commits] [vtiger-commits] r9368 - /vtigercrm/trunk/modules/Users/UsersAjax.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Sep 9 04:40:51 EDT 2006
Author: richie
Date: Sat Sep 9 02:40:13 2006
New Revision: 9368
Log:
Postgres fixes by Jens done --By Don
Modified:
vtigercrm/trunk/modules/Users/UsersAjax.php
Modified: vtigercrm/trunk/modules/Users/UsersAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Users/UsersAjax.php (original)
+++ vtigercrm/trunk/modules/Users/UsersAjax.php Sat Sep 9 02:40:13 2006
@@ -1,37 +1,37 @@
-<?php
-/*********************************************************************************
-** The contents of this file are subject to the vtiger CRM Public License Version 1.0
- * ("License"); You may not use this file except in compliance with the License
- * The Original Code is: vtiger CRM Open Source
- * The Initial Developer of the Original Code is vtiger.
- * Portions created by vtiger are Copyright (C) vtiger.
- * All Rights Reserved.
- *
- ********************************************************************************/
-
-global $current_user;
-global $adb;
-
-if(isset($_REQUEST['file']) && ($_REQUEST['file'] !=''))
-{
- require_once('modules/Users/'.$_REQUEST['file'].'.php');
-}
-if(isset($_REQUEST['orgajax']) && ($_REQUEST['orgajax'] !=''))
-{
- require_once('modules/Users/CreateSharingRule.php');
-}
-elseif(isset($_REQUEST['announce_save']) && ($_REQUEST['announce_save'] != ''))
-{
- $date_var = date('YmdHis');
- $announcement = $_REQUEST['announcement'];
- $title = $_REQUEST['title_announcement'];
- $sql="select * from vtiger_announcement where creatorid=".$current_user->id;
- $is_announce=$adb->query($sql);
- if($adb->num_rows($is_announce) > 0)
- $query="update vtiger_announcement set announcement=".$adb->formatString("vtiger_announcement","announcement",$announcement).",time=".$adb->formatString("vtiger_announcement","time",$date_var).",title='announcement' where creatorid=".$current_user->id;
- else
- $query="insert into vtiger_announcement values (".$current_user->id.",".$adb->formatString("vtiger_announcement","announcement",$announcement).",'announcement','".$date_var."')";
- $result=$adb->query($query);
- echo $announcement;
-}
-?>
+<?php
+/*********************************************************************************
+** The contents of this file are subject to the vtiger CRM Public License Version 1.0
+ * ("License"); You may not use this file except in compliance with the License
+ * The Original Code is: vtiger CRM Open Source
+ * The Initial Developer of the Original Code is vtiger.
+ * Portions created by vtiger are Copyright (C) vtiger.
+ * All Rights Reserved.
+ *
+ ********************************************************************************/
+
+global $current_user;
+global $adb;
+
+if(isset($_REQUEST['file']) && ($_REQUEST['file'] !=''))
+{
+ require_once('modules/Users/'.$_REQUEST['file'].'.php');
+}
+if(isset($_REQUEST['orgajax']) && ($_REQUEST['orgajax'] !=''))
+{
+ require_once('modules/Users/CreateSharingRule.php');
+}
+elseif(isset($_REQUEST['announce_save']) && ($_REQUEST['announce_save'] != ''))
+{
+ $date_var = date('YmdHis');
+ $announcement = $_REQUEST['announcement'];
+ $title = $_REQUEST['title_announcement'];
+ $sql="select * from vtiger_announcement where creatorid=".$current_user->id;
+ $is_announce=$adb->query($sql);
+ if($adb->num_rows($is_announce) > 0)
+ $query="update vtiger_announcement set announcement=".$adb->formatString("vtiger_announcement","announcement",$announcement).",time=".$adb->formatString("vtiger_announcement","time",$date_var).",title='announcement' where creatorid=".$current_user->id;
+ else
+ $query="insert into vtiger_announcement values (".$current_user->id.",".$adb->formatString("vtiger_announcement","announcement",$announcement).",'announcement',".$adb->formatString("vtiger_announcement","time",$date_var).")";
+ $result=$adb->query($query);
+ echo $announcement;
+}
+?>
More information about the vtigercrm-commits
mailing list