Changeset 108
- Timestamp:
- 10/26/05 17:31:00 (3 years ago)
- Files:
-
- tags/0.6RC/src/lyceum/portal.php (moved) (moved from tags/0.6RC/src/lyceum/portal_old.php) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tags/0.6RC/src/lyceum/portal.php
r107 r108 3 3 $blog=0; 4 4 require('wp-config.php'); 5 get_currentuserinfo(); 5 6 ?> 6 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 7 <html> 8 <head> 9 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 8 <html xmlns="http://www.w3.org/1999/xhtml"> 9 10 <head profile="http://gmpg.org/xfn/11"> 11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 12 10 13 <title>Lyceum</title> 11 14 … … 13 16 14 17 <style type="text/css" media="screen"> 15 body { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgcolor.jpg"); } 18 /* To accomodate differing install paths of WordPress, images are referred only here, 19 and not in the wp-layout.css file. If you prefer to use only CSS for colors and what 20 not, then go right ahead and delete the following lines, and the image files. */ 21 22 body { background: url("<?php bloginfo('stylesheet_directory'); ?>/kubrickbgcolor.jpg"); } 16 23 #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; } 17 24 #header { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickheader.jpg") no-repeat bottom center; } 18 25 #footer { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickfooter.jpg") no-repeat bottom; border: none;} 19 26 27 /* Because the template is slightly different, size-wise, with images, this needs to be set here 28 If you don't want to use the template's images, you can also delete the following two lines. */ 29 20 30 #header { margin: 0 !important; margin: 0 0 0 1px; padding: 1px; height: 198px; width: 758px; } 21 31 #headerimg { margin: 7px 9px 0; height: 192px; width: 740px; } 22 32 33 /* To ease the insertion of a personal header image, I have done it in such a way, 34 that you simply drop in an image called 'personalheader.jpg' into your /images/ 35 directory. Dimensions should be at least 760px x 200px. Anything above that will 36 get cropped off of the image. */ 23 37 /* 24 #headerimg { background: url('<?php bloginfo('stylesheet_directory'); ?>/ images/personalheader.jpg') no-repeat top;}38 #headerimg { background: url('<?php bloginfo('stylesheet_directory'); ?>/personalheader.jpg') no-repeat top;} 25 39 */ 26 40 </style> 27 41 28 </head> 42 43 <script type="text/javascript"> 44 45 function addLoadEvent(func) { 46 var oldonload = window.onload; 47 if (typeof window.onload != 'function') { 48 window.onload = func; 49 } else { 50 window.onload = function() { 51 oldonload(); 52 func(); 53 } 54 } 55 } 56 </script> 57 </head> 29 58 <body> 30 <div id="page"31 <?php32 get_currentuserinfo();33 ?>34 59 60 <div id="page"> 35 61 36 62 <div id="header"> … … 41 67 </div> 42 68 <hr /> 43 <div id="content" class="narrowcolumn"> 44 <div class="post"> 45 <div class="entry"> 46 <p>Thank you for helping to test Lyceum. Click <em>Register</em> to sign up for a username and blog. This will generate a password which will be emailed to you. After logging in, you can create posts, adjust blog settings, comment on your blog and other blogs. You can even create mulitple users/blogs and cross post between them.</p> 47 <?php 48 echo '<a href="wp-register.php">Register</a><br/>'; 49 echo '<a href="wp-login.php">Log In</a><br/>'; 50 echo '<a href="wp-login.php?action=logout">Log Out</a>'; 69 70 <div id="content" class="widecolumn"> 71 <p>Thank you for helping to test Lyceum. Click <em>Register</em> to sign up for a username and blog. This will generate a password which will be emailed to you. After logging in, you can create posts, adjust blog settings, comment on your blog and other blogs. You can even create mulitple users/blogs and cross post between them.</p> 72 <?php 73 echo '<a href="wp-register.php">Register</a><br/>'; 74 echo '<a href="wp-login.php">Log In</a><br/>'; 75 echo '<a href="wp-login.php?action=logout">Log Out</a>'; 51 76 52 77 53 $myblogs = get_userblogs();78 $myblogs = get_userblogs(); 54 79 55 echo "<hr/><h2>My Blogs</h2>";56 if ($myblogs)57 foreach ($myblogs as $b)58 echo "<a href=\"./?b=$b->blogid\">$b->blogname</a><br/>";59 else60 echo "You do not have permissions on any blogs";80 echo "<hr/><h2>My Blogs</h2>"; 81 if ($myblogs) 82 foreach ($myblogs as $b) 83 echo "<a href=\"./?b=$b->blogid\">$b->blogname</a><br/>"; 84 else 85 echo "You do not have permissions on any blogs"; 61 86 62 $blogs = $wpdb->get_results("63 SELECT $wpdb->blogs.id as blogid, option_value as blogname64 FROM $wpdb->blogs65 INNER JOIN $wpdb->options ON ($wpdb->blogs.id = $wpdb->options.blog)66 WHERE67 option_name = 'blogname'68 ");87 $blogs = $wpdb->get_results(" 88 SELECT $wpdb->blogs.id as blogid, option_value as blogname 89 FROM $wpdb->blogs 90 INNER JOIN $wpdb->options ON ($wpdb->blogs.id = $wpdb->options.blog) 91 WHERE 92 option_name = 'blogname' 93 "); 69 94 70 echo "<hr/><h2>All Blogs</h2>"; 71 if ($blogs) 72 foreach ($blogs as $b) 73 echo "<a href=\"./?b=$b->blogid\">$b->blogname</a><br/>"; 74 else 75 echo "The system does not yet have any blogs"; 76 ?> 95 echo "<hr/><h2>All Blogs</h2>"; 96 if ($blogs) 97 foreach ($blogs as $b) 98 echo "<a href=\"./?b=$b->blogid\">$b->blogname</a><br/>"; 99 else 100 echo "The system does not yet have any blogs"; 101 ?> 102 </div> 103 104 105 <hr /> 106 <div id="footer"> 107 <!-- <p> 108 <a href="http://wordpress.org">WordPress</a> 109 <br /><a href="feed:http://lyceum-dev.ibiblio.org/mu/wpmu-2005-10-13/feed/">Entries (RSS)</a> 110 and <a href="feed:http://lyceum-dev.ibiblio.org/mu/wpmu-2005-10-13/comments/feed/">Comments (RSS)</a>. 111 <!-- 23 queries. 0.082 seconds. --> 112 </p> --> 77 113 </div> 78 </div> 79 </div> 80 </div> 114 </div> 81 115 </body> 82 116 </html>
