annotate e2gallerypro/e2upload/index.php @ 20:1038db2374ec judyates

change address
author Robert McIntyre <rlm@mit.edu>
date Sun, 08 Sep 2013 00:47:09 -0400
parents 3f6b44aa6b35
children
rev   line source
rlm@3 1 <?php include('../e2config.php'); include ("password_protect.php"); ?>
rlm@3 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
rlm@3 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
rlm@3 4 <html xmlns="http://www.w3.org/1999/xhtml">
rlm@3 5 <head>
rlm@3 6 <title>(E)2 Gallery Pro File Manager</title>
rlm@3 7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
rlm@3 8 <link rel="shortcut icon" href="http://e2interactive.com/favicon.ico" />
rlm@3 9 <style type="text/css">
rlm@3 10 body {
rlm@3 11 font-size: 11px;
rlm@3 12 font-family: Tahoma, sans-serif;
rlm@3 13 background: #F1F1F1 url(images/bodybg.png) repeat-x top center;
rlm@3 14 }
rlm@3 15 .dsep{
rlm@3 16 clear:both;
rlm@3 17 border-bottom: dotted 1px #999;
rlm@3 18 margin:20px 0;
rlm@3 19 }
rlm@3 20 #maincontent img{
rlm@3 21 margin: 0 10px 10px;
rlm@3 22 }
rlm@3 23 #container #header {
rlm@3 24 background-image: url(images/adminheader.png);
rlm@3 25 background-repeat: no-repeat;
rlm@3 26 background-position: center top;
rlm@3 27 width:750px;
rlm@3 28 text-align: center;
rlm@3 29 height: 87px;
rlm@3 30 }
rlm@3 31 #container {
rlm@3 32 text-align: center;
rlm@3 33 width: 750px;
rlm@3 34 margin:0 auto;
rlm@3 35 }
rlm@3 36 #container #maincontent {
rlm@3 37 text-align: left;
rlm@3 38 padding: 10px 10px;
rlm@3 39 border: dotted #CCC 1px;
rlm@3 40 -moz-border-radius: 10px;
rlm@3 41 -khtml-border-radius: 10px;
rlm@3 42 -webkit-border-radius: 10px;
rlm@3 43 border-radius: 10px;
rlm@3 44 margin-top: 10px;
rlm@3 45 background: #E1E1E1;
rlm@3 46 }
rlm@3 47 #container #navigation {
rlm@3 48 height: 35px;
rlm@3 49 padding: 0 10px;
rlm@3 50 }
rlm@3 51 #navigation #manage, #navigation #managexml, #navigation #outputxml, #navigation #seegallery {
rlm@3 52 background-image: url(images/tab_bg.png);
rlm@3 53 background-repeat: repeat-x;
rlm@3 54 background-position: center top;
rlm@3 55 height: 19px;
rlm@3 56 float: left;
rlm@3 57 padding: 5px 6px 0;
rlm@3 58 margin: 1px 5px 5px;
rlm@3 59 border-left: solid 1px #CCC;
rlm@3 60 border-right: solid 1px #CCC;
rlm@3 61 border-bottom: solid 1px #CCC;
rlm@3 62 -moz-border-radius: 0 0 5px 5px;
rlm@3 63 -webkit-border-bottom-left-radius: 5px;
rlm@3 64 -webkit-border-bottom-right-radius: 5px;
rlm@3 65 -khtml-border-bottom-left-radius: 5px;
rlm@3 66 -khtml-border-bottom-right-radius: 5px;
rlm@3 67 border-bottom-left-radius: 5px;
rlm@3 68 border-bottom-right-radius: 5px;
rlm@3 69 cursor:pointer;
rlm@3 70 }
rlm@3 71 #navigation #logout{
rlm@3 72 background-image: url(images/tab_bg.png);
rlm@3 73 background-repeat: repeat-x;
rlm@3 74 background-position: center top;
rlm@3 75 height: 19px;
rlm@3 76 float: right;
rlm@3 77 padding: 5px 6px 0;
rlm@3 78 margin: 1px 5px 5px;
rlm@3 79 border-left: solid 1px #CCC;
rlm@3 80 border-right: solid 1px #CCC;
rlm@3 81 border-bottom: solid 1px #CCC;
rlm@3 82 -moz-border-radius: 0 0 5px 5px;
rlm@3 83 -webkit-border-bottom-left-radius: 5px;
rlm@3 84 -webkit-border-bottom-right-radius: 5px;
rlm@3 85 -khtml-border-bottom-left-radius: 5px;
rlm@3 86 -khtml-border-bottom-right-radius: 5px;
rlm@3 87 border-bottom-left-radius: 5px;
rlm@3 88 border-bottom-right-radius: 5px;
rlm@3 89 cursor:pointer;
rlm@3 90 }
rlm@3 91 #navigation a{
rlm@3 92 text-decoration:none;
rlm@3 93 color:#333;
rlm@3 94 }
rlm@3 95 #navigation a:hover{
rlm@3 96 text-decoration:underline;
rlm@3 97 color:#333;
rlm@3 98 }
rlm@3 99 </style>
rlm@3 100
rlm@3 101 <link rel="stylesheet" media="all" type="text/css" href="Css/FileManager.css" />
rlm@3 102 <link rel="stylesheet" media="all" type="text/css" href="Css/Additions.css" />
rlm@3 103
rlm@3 104 <script type="text/javascript" src="js/mootools-core.js"></script>
rlm@3 105 <script type="text/javascript" src="js/mootools-more.js"></script>
rlm@3 106
rlm@3 107 <script type="text/javascript" src="Source/FileManager.js"></script>
rlm@3 108 <script type="text/javascript" src="Source/Language/Language.en.js"></script>
rlm@3 109 <script type="text/javascript" src="Source/Language/Language.de.js"></script>
rlm@3 110 <script type="text/javascript" src="Source/Additions.js"></script>
rlm@3 111
rlm@3 112 <script type="text/javascript" src="Source/Uploader/Fx.ProgressBar.js"></script>
rlm@3 113 <script type="text/javascript" src="Source/Uploader/Swiff.Uploader.js"></script>
rlm@3 114
rlm@3 115 <script type="text/javascript" src="Source/Uploader.js"></script>
rlm@3 116
rlm@3 117 <script type="text/javascript">
rlm@3 118 window.addEvent('domready', function(){
rlm@3 119 /* Simple Example */
rlm@3 120 var manager = new FileManager({
rlm@3 121 url: 'manager.php',
rlm@3 122 assetBasePath: 'Assets',
rlm@3 123 language: 'en',
rlm@3 124 uploadAuthData: {session: 'MySessionId'}
rlm@3 125 });
rlm@3 126 $('manage').addEvent('click', manager.show.bind(manager));
rlm@3 127
rlm@3 128 /* XML upload*/
rlm@3 129 var manager = new FileManager({
rlm@3 130 url: 'managerxml.php',
rlm@3 131 assetBasePath: 'Assets',
rlm@3 132 language: 'en',
rlm@3 133 uploadAuthData: {session: 'MySessionId'}
rlm@3 134 });
rlm@3 135 $('managexml').addEvent('click', manager.show.bind(manager));
rlm@3 136
rlm@3 137 });
rlm@3 138 </script>
rlm@3 139 </head>
rlm@3 140 <body>
rlm@3 141 <div id="container">
rlm@3 142 <div id="header"></div>
rlm@3 143 <div id="navigation">
rlm@3 144 <div id="manage">Upload/Manage Images</div>
rlm@3 145 <div id="managexml">Upload/Edit XML</div>
rlm@3 146 <a href="outputxml.php"><div id="outputxml">Output XML</div></a>
rlm@3 147 <a href="../"><div id="seegallery">See Gallery</div></a>
rlm@3 148 <a href="?logout=1"><div id="logout">Log Out</div></a>
rlm@3 149 </div>
rlm@3 150 <div id="maincontent">
rlm@3 151 <h2>Gallery Information</h2>
rlm@3 152 <?php
rlm@3 153 if($myPHPVersion=="4"){
rlm@3 154 require('../php/xmlparse.v4.php');
rlm@3 155 }else{
rlm@3 156 require('../php/xmlparse.v5.php');
rlm@3 157 }
rlm@3 158 //Get the XML document loaded into a variable
rlm@3 159 $xml = file_get_contents('../'.$e2xmlurl);
rlm@3 160
rlm@3 161 //Set up the parser object
rlm@3 162 $parser = new XMLParser($xml);
rlm@3 163
rlm@3 164 //Work the magic...
rlm@3 165 $parser->Parse();
rlm@3 166 $i=1;
rlm@3 167 $k=0;
rlm@3 168 $l=0;
rlm@3 169 foreach($parser->document->gallery as $gallery){
rlm@3 170 if($i!=1){
rlm@3 171 echo'<div class="dsep"></div>';
rlm@3 172 }
rlm@3 173 foreach($gallery->item as $item){
rlm@3 174 $l++;
rlm@3 175 $finalnum=$l-1;
rlm@3 176 }
rlm@3 177 echo
rlm@3 178 "<img src='".$gallery->mainthumb[0]->tagData."".$gallery->mainthumbsrc[0]->tagData."' align='left' />
rlm@3 179 <strong>Gallery ".$i.":</strong> ".$gallery->title[0]->tagData."
rlm@3 180 <br />
rlm@3 181 <strong>Description</strong>
rlm@3 182 <br />
rlm@3 183 ".$gallery->description[0]->tagData."
rlm@3 184 ";
rlm@3 185 $i++;
rlm@3 186 foreach($gallery->item as $item){
rlm@3 187 $k++;
rlm@3 188 }
rlm@3 189 }
rlm@3 190 ?>
rlm@3 191 <div class="dsep"></div>
rlm@3 192 </div>
rlm@3 193 </div>
rlm@3 194 </body>
rlm@3 195 </html>