Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Sat, Feb 1, 8:02 PM

in-portal

Index: trunk/admin/tree/tree.php
===================================================================
--- trunk/admin/tree/tree.php (revision 64)
+++ trunk/admin/tree/tree.php (revision 65)
@@ -1,175 +1,175 @@
<?php
if(!strlen($pathtoroot))
{
$path=dirname(realpath($_SERVER['SCRIPT_FILENAME']));
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;
}
require_once($pathtoroot."kernel/startup.php");
$rootURL="http://".ThisDomain().$objConfig->Get("Site_Path");
$admin = $objConfig->Get("AdminDirectory");
if(!strlen($admin))
$admin = "admin";
$localURL=$rootURL."/";
$adminURL = $rootURL.$admin;
$imagesURL = $adminURL."/images";
$pathtolocal = $pathtoroot;
$envar = "env=" . BuildEnv();
//include section data; create Section hash
//main In-portal sections
//require_once ($pathtoroot."admin/include/navmenu.php");
//All modules
/*if(!isset($SysData))
$SysData=new SystemConfiguration();
$ModuleList=$SysData->GetModuleList();*/
//$sections = array();
//foreach($mod_prefix as $key => $value)
//{
// $mod = $pathtoroot . $value . "admin/include/navmenu.php";
// include_once($mod);
//}
include_once($pathtoroot.$admin."/include/sections.php");
$ServerName = $objConfig->Get("Site_Name");
$rootLink = $adminURL."/subitems.php?env=".BuildEnv()."&section=in-portal:root";
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="<?php echo $adminURL."/include/style.css"; ?>">
<script src="ua.js"></script>
<script src="ftiens4.js"></script>
<script language="javascript">
// Decide if the names are links or just the icons
USETEXTLINKS = 1 //replace 0 with 1 for hyperlinks
// Decide if the tree is to start all open or just showing the root folders
STARTALLOPEN = 0 //replace 0 with 1 to show the whole tree
var foldersTree = gFld('In-Portal','<?php echo $rootLink; ?>');
foldersTree.desc = '<?php echo $ServerName; ?>';
foldersTree.iconSrc='<?php echo $adminURL."/icons/icon24_site.gif"; ?>';
function credits(url)
{
var width = 200;
var height = 200;
var screen_x = (screen.availWidth-width)/2;
var screen_y = (screen.availHeight-height)/2;
- window.open(url, 'credits', 'width=280,height=320,left='+screen_x+',top='+screen_y);
+ window.open(url, 'credits', 'width=280,height=520,left='+screen_x+',top='+screen_y);
}
<?php
$objSections->BuildTree('in-portal:site', 'foldersTree');
$title = "In-Portal v ".$kernel_version."&nbsp;&nbsp;";
?>
</script>
</head>
<body topmargin="0" marginheight="0" marginwidth="0" marginheight="0" bgcolor="#DCEBF6">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<!--<tr><td colspan="2" bgcolor="black"><img alt="" width="1" height="1" src="images/spacer.gif"></td></tr>-->
<tr>
<td background="../images/menu_bar.gif" align="left" class="tree_head" width="80%"> <!-- 60000 -->
&nbsp;<a class="tree_head_credits" href="javascript:credits('<?php echo $rootURL.$admin."/help/credits.php?env=".BuildEnv();?>&destform=popup');"><?php echo $title; ?></a>
</td>
<td background="../images/menu_bar.gif" align="right" class="tree_head" width="20%"> <!-- 40000 -->
<FORM style="display:inline" name="lang_select" method="POST" action="<?php echo $rootURL.$admin."/index.php?env=".BuildEnv(); ?>" TARGET="main_frame">
<SELECT NAME="langselect" style="width: 62px; border: 0px; background: none; font-size: 9px; color: black" onchange="document.lang_select.submit()">
<!-- width: 52px; font-size: 8.5px; -->
<?php
$objLanguages->Query_Item("SELECT * FROM ".$objLanguages->SourceTable." WHERE Enabled=1");
foreach($objLanguages->Items as $l)
{
$selected = "";
if($l->Get("LanguageId")==$m_var_list["lang"])
$selected = " SELECTED";
echo "<OPTION onclick=\"this.form.submit();\" STYLE=\"background:none;\" value=\"".$l->Get("LanguageId")."\" $selected>".$l->Get("LocalName")."</OPTION>\n";
}
?>
</SELECT>
<input type=hidden name="Action" value="m_lang_select">
</FORM>
</td>
<td background="../images/menu_bar.gif"><img alt="" height="21" width="1" src="../images/spacer.gif"></td>
</tr>
</table>
<table cellpadding="5" cellspacing="0" border="0">
<tr>
<td>
<script>
initializeDocument();
</script>
</td>
</tr>
</table>
</body>
</html>
Property changes on: trunk/admin/tree/tree.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.2
\ No newline at end of property
+1.3
\ No newline at end of property
Index: trunk/admin/images/about.jpg
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/admin/images/about.jpg
___________________________________________________________________
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
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: trunk/admin/help/credits.php
===================================================================
--- trunk/admin/help/credits.php (revision 64)
+++ trunk/admin/help/credits.php (revision 65)
@@ -1,216 +1,190 @@
<?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($_SERVER['SCRIPT_FILENAME']));
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
$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 ($pathtolocal."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);
- }
-}
-
-unset($objEditCat);
-
-$objEditCat = new clsCatList();
-$objEditCat->SourceTable = $objSession->GetEditTable("Category");
-
-//Multiedit init
-$en = (int)$_GET["en"];
-$objEditCat->Query_Item("SELECT * FROM ".$objEditCat->SourceTable);
-$itemcount=$objEditCat->NumItems();
-$c = $objEditCat->GetItemByIndex($en);
-
-unset($objEditItems);
-
-$objEditItems = new clsRelationshipList();
-$objEditItems->SourceTable = $objSession->GetEditTable("Relationship");
-
-if(isset($_POST["itemlist"]))
-{
- if(is_array($_POST["itemlist"]))
- {
- $RelationId = $_POST["itemlist"][0];
- }
- else
- {
- $RelationId = $_POST["itemlist"];
- }
-
- $Rel = new clsRelationship();
- $Rel->tablename = $objEditItems->SourceTable;
- $Rel->LoadExpanded($RelationId);
- $action = "m_edit_relation";
-}
-else
-{
- $Rel = new clsRelationship();
- $Rel->Set("SourceType","1");
- $Rel->Set("SourceId",$c->Get("ResourceId"));
- $Rel->Set("TargetId",$_POST["TargetId"]);
- $Rel->Set("TargetType",$_POST["TargetType"]);
- $Rel->Set("Type","0");
- $Rel->Set("Enabled","1");
- $action = "m_add_relation";
-}
-
-$item = $Rel->GetTargetItemData();
-
-$envar = "env=" . BuildEnv() . "&en=$en";
-
-
-$section = 'in-portal:editcategory_relation';
-*/
-
-
$ado = GetADODBConnection();
$title = "In-Portal ".language("la_Credits_Title");
/* page header */
print <<<END
<html>
<head>
<title>$title</title>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta http-equiv="Pragma" content="no-cache">
+ <!--
+ <script src="$adminURL/include/dw_scrollObj.js" type="text/javascript"></script>
+ <script src="$adminURL/include/dw_hoverscroll.js" type="text/javascript"></script>
+ -->
<script language="JavaScript">
imagesPath='$imagesURL'+'/';
-
+
+ function initScrollLayer()
+ {
+ var i = 0;
+ x = 4;
+
+ function scrolldiv() {
+ document.getElementById('scrollImg').scrollTop += x;
+ i++;
+ if (i > 100) {
+ if (x > 0) {
+ x = -4;
+
+ }
+ else {
+ x = 4;
+ }
+ i = 0;
+ }
+ //alert('again');
+ window.setTimeout(scrolldiv, 150);
+ }
+ window.setTimeout(scrolldiv, 500);
+ }
</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">
+
</head>
END;
if ((int)$m_var_list["lang"])
{
$objLanguages->Query_Item("SELECT * FROM ".$objLanguages->SourceTable." WHERE Enabled=1 AND LanguageId=".(int)$m_var_list["lang"]);
foreach ($objLanguages->Items as $l)
{
$lang_name = " ".$l->Get("LocalName");
}
}
?>
-
-<body marginheight="0" marginwidth="0" marginleft="0" margintop="0" background="<?php echo $imagesURL."/about.gif";?>">
+<!-- onload="initScrollLayer()" -->
+<body onload="initScrollLayer()" marginheight="0" marginwidth="0" marginleft="0" margintop="0" bgcolor="white" style="background-repeat: no-repeat;" background="<?php echo $imagesURL."/about.jpg";?>">
<TABLE cellSpacing="0" cellPadding="0" width="100%" height="100%">
<tr>
<TD align="center" width="0%">
<TABLE cellSpacing="0" cellPadding="0" width="95%">
<tr>
<TD align="center" width="95%" class="small">
- <BR><BR><BR><BR><BR><BR><BR><BR><BR>
+ <BR><BR><BR><BR><BR><BR><BR><BR><BR><br><br><br>
<span class="text">In-Portal <?php echo language("la_Text_Version").":".$kernel_version.$lang_name; ?></SPAN>
<BR><BR>
- <span class="small"><?php echo language("la_credits_text1").language("la_credits_text2"); ?></SPAN>
+
+ <div id="wn">
+ <div class="small" id="content" width="432" height="146" align="center">
+ <div id="scrollImg" style="position: relative; overflow: hidden; height: 190px; width: 270px">
+ <?php
+ $inc_path = $pathtoroot.$admin.'/help/';
+ include $inc_path.'credits.txt';
+ ?>
+ <br><br>
+ </div>
+ <?php
+ echo '<hr>';
+ include $inc_path.'legal_warning.txt';
+ ?>
+ </div>
+ </div>
+
<BR><BR>
<input type="button" value="<?php echo language("la_button_ok"); ?>" onclick="window.close()"></TD>
</TR>
</table>
</TD>
</TR>
</TABLE>
<!-- END CODE-->
<?php int_footer(); ?>
Property changes on: trunk/admin/help/credits.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1
\ No newline at end of property
+1.2
\ No newline at end of property
Index: trunk/admin/help/legal_warning.txt
===================================================================
--- trunk/admin/help/legal_warning.txt (nonexistent)
+++ trunk/admin/help/legal_warning.txt (revision 65)
@@ -0,0 +1,4 @@
+Warning: This computer program is protected by copyright law and international treaties. Unauthorized reproduction or unlicensed usage of the code of this program, or any portion of it may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under the law.
+
+
+
Property changes on: trunk/admin/help/legal_warning.txt
___________________________________________________________________
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
Index: trunk/admin/help/credits.txt
===================================================================
--- trunk/admin/help/credits.txt (nonexistent)
+++ trunk/admin/help/credits.txt (revision 65)
@@ -0,0 +1,42 @@
+Intechnic Corporation would like to thank a number of people who have helped us to develop this product.<br>
+<br>
+Development Team:<br>
+Dmitry Andrejev<br>
+David Chen<br>
+Peter Droppa<br>
+Maris Kocins<br>
+Pavel Kharitonov<br>
+Jurij Kirilov<br>
+Dmitry Kucher<br>
+Andrew Kucheriavy<br>
+Sergey Mesropyan<br>
+Alexandr Obuhovich<br>
+Arnis Pridans<br>
+Max Strelchenko<br>
+Konstantin Tjuterev<br>
+Stoyan Vlaikov<br>
+Chis Walker<br>
+<br>
+Beta Testing Team:<br>
+ali<br>
+anthony<br>
+bnove<br>
+charlie<br>
+d00m2k<br>
+federico<br>
+jimid<br>
+media<br>
+nick_85<br>
+philipp<br>
+ricomtelecom<br>
+stefan<br>
+synoo<br>
+<br>
+Special thanks to:<br>
+Gene Averbuch<br>
+Artjoms Milovs<br>
+Robert Murata<br>
+Franck Nussbaumer aka side<br>
+Darin Sakas<br>
+Jim VanNatta<br>
+Ivan Vasiljev<br>
\ No newline at end of file
Property changes on: trunk/admin/help/credits.txt
___________________________________________________________________
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