Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1109124
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
Mon, Aug 25, 11:23 AM
Size
4 KB
Mime Type
text/x-diff
Expires
Wed, Aug 27, 11:23 AM (8 h, 5 m)
Engine
blob
Format
Raw Data
Handle
716022
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/unlabeled/unlabeled-1.13.2/admin/tree/tree.php
===================================================================
--- branches/unlabeled/unlabeled-1.13.2/admin/tree/tree.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.13.2/admin/tree/tree.php (revision 4200)
@@ -0,0 +1,121 @@
+<?php
+ define('DBG_SHOW_MEMORY_USAGE', 0);
+
+ // new startup: begin
+ define('REL_PATH', 'admin/tree');
+ $relation_level = count( explode('/', REL_PATH) );
+ define('FULL_PATH', realpath(dirname(__FILE__) . str_repeat('/..', $relation_level) ) );
+ require_once FULL_PATH.'/kernel/startup.php';
+ // new startup: end
+
+ $pathtolocal = $pathtoroot;
+
+ $envar = "env=" . BuildEnv();
+
+ include_once($pathtoroot.$admin."/include/sections.php");
+
+ $ServerName = $objConfig->Get('Site_Name');
+ $rootLink = $adminURL."/subitems.php?env=".BuildEnv()."§ion=in-portal:root";
+ $charset = GetRegionalOption('Charset');
+
+ $main_tag_processor =& $application->recallTagProcessor('m');
+ $phrase_EditingInProgress = $main_tag_processor->Phrase( Array('name' => 'la_EditingInProgress', 'escape' => 1) );
+
+ $phrase_EditingInProgress = str_replace(Array('<', '>', 'br/', 'br /', "\n", "\r"), Array('<', '>', 'br', 'br', '', ''), $phrase_EditingInProgress);
+?>
+<html>
+<head>
+<link rel="stylesheet" type="text/css" href="<?php echo $adminURL."/include/style.css"; ?>">
+<meta http-equiv="content-type" content="text/html;charset=<?php echo $charset; ?>">
+<script src="ua.js"></script>
+<script src="ftiens4.js"></script>
+<script type="text/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; ?>');
+var $phrase_EditingInProgress = '<?php echo $phrase_EditingInProgress; ?>';
+
+$phrase_EditingInProgress = replaceLineEndings($phrase_EditingInProgress);
+
+function replaceLineEndings($src)
+{
+ var $tmp = '';
+ while (true) {
+ $tmp = $src.replace('<br>', "\n");
+ if ($tmp == $src) {
+ break;
+ }
+ $src = $tmp;
+ }
+ return $src;
+}
+
+
+foldersTree.desc = '<?php echo addslashes($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=520,left='+screen_x+',top='+screen_y);
+}
+
+<?php
+ $objSections->BuildTree('in-portal:site', 'foldersTree');
+ $title = "In-Portal v ".$kernel_version." ";
+?>
+
+</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 title="" 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 -->
+ <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-color: #FFFFFF; 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();\" 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 title="" height="21" width="1" src="../images/spacer.gif"></td>
+ </tr>
+</table>
+
+<table cellpadding="5" cellspacing="0" border="0">
+ <tr>
+ <td>
+ <script type="text/javascript">
+ initializeDocument();
+ </script>
+ </td>
+ </tr>
+</table>
+
+</body>
+</html>
Property changes on: branches/unlabeled/unlabeled-1.13.2/admin/tree/tree.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.13
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Event Timeline
Log In to Comment