Log in with username/password: lyceum/lyceum

Changeset 108

Show
Ignore:
Timestamp:
10/26/05 17:31:00 (3 years ago)
Author:
john
Message:

all better now

fancy portal page!!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/0.6RC/src/lyceum/portal.php

    r107 r108  
    33$blog=0; 
    44require('wp-config.php'); 
     5get_currentuserinfo(); 
    56?> 
    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 
    1013<title>Lyceum</title> 
    1114 
     
    1316 
    1417<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"); }    
    1623   #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; } 
    1724   #header { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickheader.jpg") no-repeat bottom center; } 
    1825   #footer { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickfooter.jpg") no-repeat bottom; border: none;} 
    1926 
     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       
    2030   #header  { margin: 0 !important; margin: 0 0 0 1px; padding: 1px; height: 198px; width: 758px; } 
    2131   #headerimg  { margin: 7px 9px 0; height: 192px; width: 740px; }  
    2232 
     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. */ 
    2337   /* 
    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;} 
    2539   */ 
    2640</style> 
    2741 
    28 </head> 
     42 
     43<script type="text/javascript"> 
     44 
     45function 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> 
    2958<body> 
    30 <div id="page" 
    31 <?php 
    32 get_currentuserinfo(); 
    33 ?> 
    3459 
     60<div id="page"> 
    3561 
    3662<div id="header"> 
     
    4167</div> 
    4268<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>'; 
    5176 
    5277 
    53 $myblogs = get_userblogs(); 
     78  $myblogs = get_userblogs(); 
    5479 
    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 else 
    60    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"; 
    6186 
    62 $blogs = $wpdb->get_results(" 
    63    SELECT $wpdb->blogs.id as blogid, option_value as blogname  
    64    FROM $wpdb->blogs 
    65       INNER JOIN $wpdb->options ON ($wpdb->blogs.id = $wpdb->options.blog) 
    66    WHERE 
    67       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  "); 
    6994 
    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> --> 
    77113</div> 
    78 </div> 
    79 </div> 
    80 </div> 
     114</div>       
    81115</body> 
    82116</html> 
Log in with username/password: lyceum/lyceum