Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1207123
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 8, 9:58 AM
Size
8 KB
Mime Type
text/x-diff
Expires
Mon, Nov 10, 9:58 AM (2 h, 49 m)
Engine
blob
Format
Raw Data
Handle
788358
Attached To
rINP In-Portal
in-portal
View Options
Index: trunk/admin/users/user_editgroup.php
===================================================================
--- trunk/admin/users/user_editgroup.php (nonexistent)
+++ trunk/admin/users/user_editgroup.php (revision 2085)
@@ -0,0 +1,226 @@
+<?php
+##############################################################
+##In-portal ##
+##############################################################
+## In-portal ##
+## Intechnic Corporation ##
+## All Rights Reserved, 1998-2002 ##
+## ##
+## No portion of this code may be copied, reproduced or ##
+## otherwise redistributed without proper written ##
+## consent of Intechnic Corporation. Violation will ##
+## result in revocation of the license and support ##
+## privileges along maximum prosecution allowed by law. ##
+##############################################################
+if(!strlen($pathtoroot))
+{
+ $path=dirname(realpath(__FILE__));
+ if(strlen($path))
+ {
+ /* determine the OS type for path parsing */
+ $pos = strpos($path,":");
+ if ($pos === false)
+ {
+ $gOS_TYPE="unix";
+ $pathchar = "/";
+ }
+ else
+ {
+ $gOS_TYPE="win";
+ $pathchar="\\";
+ }
+ $p = $path.$pathchar;
+ /*Start looking for the root flag file */
+ while(!strlen($pathtoroot) && strlen($p))
+ {
+ $sub = substr($p,strlen($pathchar)*-1);
+ if($sub==$pathchar)
+ {
+ $filename = $p."root.flg";
+ }
+ else
+ $filename = $p.$pathchar."root.flg";
+ if(file_exists($filename))
+ {
+ $pathtoroot = $p;
+ }
+ else
+ {
+ $parent = realpath($p.$pathchar."..".$pathchar);
+ if($parent!=$p)
+ {
+ $p = $parent;
+ }
+ else
+ $p = "";
+ }
+ }
+ if(!strlen($pathtoroot))
+ $pathtoroot = ".".$pathchar;
+ }
+ else
+ {
+ $pathtoroot = ".".$pathchar;
+ }
+}
+
+$sub = substr($pathtoroot,strlen($pathchar)*-1);
+if($sub!=$pathchar)
+{
+ $pathtoroot = $pathtoroot.$pathchar;
+}
+//echo $pathtoroot;
+//print_r($_GET);
+//print_r($_POST);
+require_once($pathtoroot."kernel/startup.php");
+//admin only util
+
+/* set the destination of the image upload, relative to the root path */
+$DestDir = "kernel/images/";
+
+$rootURL="http://".ThisDomain().$objConfig->Get("Site_Path");
+$admin = $objConfig->Get("AdminDirectory");
+if(!strlen($admin))
+ $admin = "admin";
+$localURL=$rootURL."kernel/";
+$adminURL = $rootURL.$admin;
+$imagesURL = $adminURL."/images";
+$cssURL = $adminURL."/include";
+$browseURL = $adminURL."/browse";
+
+$pathtolocal = $pathtoroot."kernel/";
+require_once ($pathtoroot.$admin."/include/elements.php");
+require_once ($pathtoroot."kernel/admin/include/navmenu.php");;
+require_once($pathtoroot.$admin."/browse/toolbar.php");
+require_once($pathtoroot.$admin."/listview/listview.php");
+
+$m = GetModuleArray();
+foreach($m as $key=>$value)
+{
+ $path = $pathtoroot. $value."admin/include/parser.php";
+ if(file_exists($path))
+ {
+ include_once($path);
+ }
+}
+
+$objEditItems = new clsCatList();
+$objEditItems->SourceTable = $objSession->GetEditTable("PortalUser");
+
+//Multiedit init
+$en = GetVar('en');
+$objEditItems->Query_Item("SELECT * FROM ".$objEditItems->SourceTable);
+$objEditItems->EnablePaging = FALSE;
+$c = $objEditItems->GetItemByIndex($en);
+
+if (!isset($c->Data['PortalUserId'])) {
+ $c = $objEditItems->GetItemByIndex(0);
+}
+
+unset($objEditItems);
+
+$objEditItems = new clsUserGroupList();
+$objEditItems->SourceTable = $objSession->GetEditTable("UserGroup");
+
+if(isset($_POST["itemlist"]))
+{
+ if(is_array($_POST["itemlist"]))
+ {
+ $group_id = $_POST["itemlist"][0];
+ }
+ else
+ {
+ $group_id = $_POST["itemlist"];
+ }
+
+ $user_group =& $objEditItems->GetItemByField( Array('GroupId','PortalUserId'), Array($group_id, $c->Get('PortalUserId') ) );
+ // print_r($user_group);
+ $action = "m_group_edit";
+ $name = $user_group->Get("Name");
+}
+
+$envar = "env=" . BuildEnv() . "&en=$en";
+$section = 'in-portal:edituser_group';
+$ado = &GetADODBConnection();
+$charset = GetRegionalOption('Charset');
+/* page header */
+print <<<END
+<html>
+<head>
+ <title>In-portal</title>
+ <meta http-equiv="content-type" content="text/html;charset=$charset">
+ <meta http-equiv="Pragma" content="no-cache">
+ <script language="JavaScript">
+ imagesPath='$imagesURL'+'/';
+ </script>
+ <script src="$browseURL/common.js"></script>
+ <script src="$browseURL/toolbar.js"></script>
+ <script src="$browseURL/utility.js"></script>
+ <script src="$browseURL/checkboxes.js"></script>
+ <script language="JavaScript1.2" src="$browseURL/fw_menu.js"></script>
+ <link rel="stylesheet" type="text/css" href="$browseURL/checkboxes.css">
+ <link rel="stylesheet" type="text/css" href="$cssURL/style.css">
+ <link rel="stylesheet" type="text/css" href="$browseURL/toolbar.css">
+END;
+
+$title = GetTitle("la_Text_User", "la_title_EditingGroup", $c->Get('PortalUserId'), $c->Get('Login') );//prompt_language("la_Text_Editing")." ".prompt_language("la_Text_User")." '".$c->Get("Login")."' - ".prompt_language("la_Text_Image");
+$title .= " '".$user_group->parsetag('GroupName')."'";
+$objCatToolBar = new clsToolBar();
+$objCatToolBar->Add("img_save", "la_Save","#","swap('group_save','toolbar/tool_select_f2.gif');", "swap('group_save', 'toolbar/tool_select.gif');","edit_submit('user','UserEditStatus','".$admin."/users/adduser_groups.php',0);",$imagesURL."/toolbar/tool_select.gif");
+$objCatToolBar->Add("img_cancel", "la_Cancel","#","swap('group_cancel','toolbar/tool_cancel_f2.gif');", "swap('group_cancel', 'toolbar/tool_cancel.gif');","edit_submit('user','UserEditStatus','".$admin."/users/adduser_groups.php',-1);",$imagesURL."/toolbar/tool_cancel.gif");
+
+//echo "<pre>"; print_r($objCatToolBar); echo "</pre>";
+int_header($objCatToolBar,NULL,$title);
+if ($objSession->GetVariable("HasChanges") == 1) {
+?>
+<table width="100%" border="0" cellspacing="0" cellpadding="0" class="toolbar">
+ <tr>
+ <td valign="top">
+ <?php int_hint_red(admin_language("la_Warning_Save_Item")); ?>
+ </td>
+ </tr>
+</table>
+<?php } ?>
+<TABLE cellSpacing="0" cellPadding="2" width="100%" class="tableborder">
+<FORM enctype="multipart/form-data" ID="user" NAME="user" method="POST" ACTION="">
+<?php int_subsection_title(prompt_language("la_Text_Group")); ?>
+
+<TR <?php int_table_color(); ?> >
+ <TD><SPAN class="text" id="prompt_imgName"><?php echo prompt_language("la_prompt_Name"); ?></SPAN></TD>
+ <TD><?php echo inp_htmlize( $user_group->parsetag('GroupName') ); ?></TD>
+ <TD></TD>
+</TR>
+
+ <tr <?php int_table_color(); ?>>
+ <td valign="middle"><SPAN ID="prompt_review_date" class="text"><?php echo prompt_language("la_prompt_MembershipExpires"); ?></SPAN></td>
+ <td valign="middle">
+ <input type="text" name="membership_expires_date" tabindex="5" id="membership_date_id" datepickerIcon="<?php echo $adminURL; ?>/images/ddarrow.gif" class="text" size="20" value="<?php echo $user_group->parsetag('membership_expires_date'); ?>">
+ <span class="small"><?php echo prompt_language("la_prompt_DateFormat"); ?></span>
+ <input type="text" tabindex="6" name="membership_expires_time" class="text" size="20" value="<?php echo $user_group->parsetag("membership_expires_time"); ?>">
+ <span class="small"><?php echo prompt_language("la_prompt_TimeFormat"); ?></span>
+ </td>
+ <td></td>
+ </tr>
+
+ <input type=hidden NAME="Action" VALUE="<?php echo $action; ?>">
+ <input type="hidden" name="UserEditStatus" VALUE="0">
+ <input TYPE="HIDDEN" NAME="GroupId" VALUE="<?php echo $user_group->Get('GroupId'); ?>">
+ <input TYPE="HIDDEN" NAME="PortalUserId" VALUE="<?php echo $user_group->Get('PortalUserId'); ?>">
+ <input TYPE="HIDDEN" NAME="ResourceId" VALUE="<?php echo $c->Get('ResourceId'); ?>">
+</FORM>
+</TABLE>
+
+<!-- CODE FOR VIEW MENU -->
+<form method="post" action="user_groups.php?<?php echo $envar; ?>" name="viewmenu">
+<input type="hidden" name="fieldname" value="">
+<input type="hidden" name="varvalue" value="">
+<input type="hidden" name="varvalue2" value="">
+<input type="hidden" name="Action" value="">
+</form>
+<script src="<?php echo $adminURL; ?>/include/calendar.js"></script>
+<SCRIPT language="JavaScript">
+ initCalendar('membership_date_id', CalDateFormat);
+</SCRIPT>
+<!-- END CODE-->
+<?php int_footer(); ?>
+
Property changes on: trunk/admin/users/user_editgroup.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.1
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Event Timeline
Log In to Comment