Changeset 8

Show
Ignore:
Timestamp:
11/30/05 19:40:35 (3 years ago)
Author:
sven
Message:

importing elgg-0.2

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/.htaccess

    r6 r8  
    11Options +FollowSymLinks 
    22RewriteEngine on 
    3 RewriteBase / 
    43 
    54RewriteRule ^([0-9\-]+)\.css$ _templates/css.php?template=$1 
  • devel/CHANGELOG

    r6 r8  
    11Elgg changelog 
     2 
     30.2 (20th June 2005) 
     4-------------------- 
     5Incorporated cookied login patch by Leonard Lin 
     6Incorporated phpThumb() by James Heinrich - see units/phpthumb/phpthumb.readme.txt 
     7Added communities 
    28 
    390.1.2a (24th April 2005) 
  • devel/CONTRIBUTORS

    r6 r8  
    22code.  The following people have made additions and changes to the 
    33core release, and are listed in alphabetical order. Contributors may 
    4 email elgg@apcala.com in order to have contact details added or 
     4email system@elgg.net in order to have contact details added or 
    55amended for the next release. 
    66 
     
    1010 
    1111David Eshelman 
    12 http://www.ksucentral.com/esh/ 
    13 ------------------------------ 
    14 Icon upload 
     12-------------- 
     13Icon upload fixes 
     14 
     15Misja Hoebe 
     16http://www.chn.nl/ 
     17------------------ 
     18XML-RPC unit 
     19 
     20Leonard Lin 
     21http://www.usc.edu/~lhl/ 
     22------------------------ 
     23Cookied logins 
     24Authentication refactoring 
    1525 
    1626David Tosh 
     
    2232 
    2333Ben Werdmuller 
    24 http://apcala.com/ben
    25 ---------------------- 
     34http://elgg.net/bwerdmuller
     35---------------------------- 
    2636Main system programmer 
  • devel/INSTALL

    r6 r8  
    1 Elgg version 0.1.2 alpha installation instructions 
     1Elgg version 0.2 installation instructions 
    22 
    33Ben Werdmuller <ben@elgg.net> 
    4 23rd April, 2005 
     421st June, 2005 
    55 
    66 
     
    88 
    991.1 Requirements 
     10 
     11Please read LICENSE. 
    1012 
    1113Elgg currently requires the Apache web server with mod_rewrite 
     
    1719All for the virtual server where Elgg is installed. 
    1820 
    19 Elgg must be installed on the root of a domain - for example, 
     21Elgg prefers to be installed on the root of a domain - for example, 
    2022at http://elgg.net/, as opposed to http://elgg.net/subdirectory/. 
     23However, it has now been tested to work in subdirectories, although 
     24this remains experimental until the next release. 
    2125 
    2226You must have a database on the MySQL server ready for use by Elgg. 
    2327 
    24 IF YOU ARE UPGRADING FROM 0.1.1a, you do not need to alter the database 
    25 schema (and can ignore section 3 of these instructions). 
     28You must have the GD library installed. 
    2629 
    27 IF YOU ARE UPGRADING FROM EARLIER VERSIONS, you must drop any existing 
    28 database tables and insert the new database schema. 
     30If you have any problems installing, please consider joining 
     31http://elgg.net/ and joining the Elgg Installation Support 
     32community at http://elgg.net/support/ . 
     33 
     34This version of Elgg only supports upgrading from version 0.1.1a 
     35and above. Upgrading from all older versions will require a re-install. 
    2936 
    3037 
     
    5461the root of your web server account. 
    5562 
     63Remember to include the .htaccess files; these may be invisible by 
     64default if you are using MacOS X. 
     65 
    5666IF YOU ARE UPGRADING, you may wish to retain your existing 
    5767includes.php file. 
     
    7282        chmod 777 data 
    7383 
    74 Repeat this process for /_files/data. 
     84Repeat this process for /_files/data and /_files/cache. 
     85 
     86IF YOU ARE UPGRADING, please note that /_files/cache is new in this 
     87release. Please remember to chmod it to 777. 
    7588 
    7689 
     
    78913. SETTING UP THE DATABASE 
    7992 
     93If you are upgrading, please skip to 3.4. 
    8094 
    81953.1 Open database schema 
     
    112126directory. 
    113127 
     1283.4 Upgrading 
     129 
     130Perform either 3.2 or 3.3 but with the upgrade.sql file found in 
     131/distribution/database instead of elgg.sql. 
     132 
    114133 
    115134 
     
    139158 
    140159 
    141 4.3 Log in 
     1604.3 XML-RPC 
     161 
     162Misja Hoebe has written an XML-RPC unit that requires the PEAR library. 
     163This allows users to use third-party blogging tools to post to your 
     164Elgg systme. 
     165 
     166Please see units/rpc/README for more details. If you are sure you have 
     167all the prerequisites for this unit, uncomment the 'include XMLRPC' line 
     168in the plugins section of includes.php. 
     169 
     170 
     1714.4 Log in 
    142172 
    143173We have included a default user, "news". This user owns all the 
  • devel/README

    r6 r8  
    1 Elgg (The Learning Landscape) version 0.1.2a 
     1Elgg (The Learning Landscape) version 0.2 
    22Copyright (C) 2004-2005 David Tosh and Ben Werdmuller 
     3 
     4This program includes the phpThumb program written by James Heinrich; 
     5please see units/phpthumb/phpthumb.readme.txt for its information. 
    36 
    47This program is free software; you can redistribute it and/or modify 
     
    2326Copyright (C) 2004-2005 David Tosh and Ben Werdmuller 
    2427 
    25 Elgg 0.1.2a is released under the GNU Public License (GPL), which 
     28Elgg 0.2 is released under the GNU Public License (GPL), which 
    2629is supplied in this distribution as LICENSE. 
    2730 
  • devel/_files/action_redirection.php

    r2 r8  
    1010                global $redirect_url; 
    1111                global $messages; 
     12                global $page_owner; 
     13                 
     14                if (isset($_REQUEST['files_owner'])) { 
     15                        $page_owner = (int) $_REQUEST['files_owner']; 
     16                } 
    1217                 
    1318                if (isset($messages) && sizeof($messages) > 0) { 
  • devel/_files/download.php

    r6 r8  
    2626        // ... and the owner of the file in the URL line hasn't been spoofed ... 
    2727                                 
    28                                 if (run("users:name_to_id",$_REQUEST['files_name']) == $file->owner) { 
     28                                if (run("users:name_to_id",$_REQUEST['files_name']) == $file->owner 
     29                                        || run("users:name_to_id",$_REQUEST['files_name']) == $file->files_owner) { 
    2930         
    3031        // ... and the current user is allowed to access it ... 
  • devel/_files/rss2.php

    r6 r8  
    4141END; 
    4242                                if (!isset($_REQUEST['tag'])) { 
    43                                         $files = db_query("select * from files where owner = $page_owner and access = 'PUBLIC' order by time_uploaded desc limit 10"); 
     43                                        $files = db_query("select * from files where files_owner = $page_owner and access = 'PUBLIC' order by time_uploaded desc limit 10"); 
    4444                                } else { 
    4545                                        $tag = addslashes($_REQUEST['tag']); 
    46                                         $files = db_query("select files.* from tags left join files on files.ident = tags.ref where files.owner = $page_owner and files.access = 'PUBLIC' and tags.tagtype = 'file' and tags.tag = '$tag' order by files.time_uploaded desc limit 10"); 
     46                                        $files = db_query("select files.* from tags left join files on files.ident = tags.ref where files.files_store = $page_owner and files.access = 'PUBLIC' and tags.tagtype = 'file' and tags.tag = '$tag' order by files.time_uploaded desc limit 10"); 
    4747                                } 
    4848                                if (sizeof($files) > 0) { 
  • devel/_userdetails/index.php

    r2 r8  
    66                require("../includes.php"); 
    77 
     8                run("profile:init"); 
    89                run("userdetails:init"); 
    9                 run("profile:init"); 
    1010 
    1111                protect(1); 
    1212                                 
    13                 $title = run("profile:display:name") . " :: Edit user details"; 
     13                $title = run("profile:display:name") . " :: Edit details"; 
    1414                 
    1515                $body = run("templates:draw", array( 
  • devel/_weblog/rss091.php

    r2 r8  
    3939    <link>$mainurl</link> 
    4040END; 
    41                                 $entries = db_query("select * from weblog_posts where owner = $page_owner and access = 'PUBLIC' order by posted desc limit 10"); 
     41                                $entries = db_query("select * from weblog_posts where weblog = $page_owner and access = 'PUBLIC' order by posted desc limit 10"); 
    4242                                if (sizeof($entries) > 0) { 
    4343                                        foreach($entries as $entry) { 
  • devel/_weblog/rss2.php

    r6 r8  
    4040END; 
    4141                                if (!isset($_REQUEST['tag'])) { 
    42                                         $entries = db_query("select * from weblog_posts where owner = $page_owner and access = 'PUBLIC' order by posted desc limit 10"); 
     42                                        $entries = db_query("select * from weblog_posts where weblog = $page_owner and access = 'PUBLIC' order by posted desc limit 10"); 
    4343                                } else { 
    4444                                        $tag = addslashes($_REQUEST['tag']); 
    45                                         $entries = db_query("select weblog_posts.* from tags left join weblog_posts on weblog_posts.ident = tags.ref where weblog_posts.owner = $page_owner and weblog_posts.access = 'PUBLIC' and tags.tag = '$tag' and tags.tagtype = 'weblog' order by weblog_posts.posted desc limit 10"); 
     45                                        $entries = db_query("select weblog_posts.* from tags left join weblog_posts on weblog_posts.ident = tags.ref where weblog_posts.weblog = $page_owner and weblog_posts.access = 'PUBLIC' and tags.tag = '$tag' and tags.tagtype = 'weblog' order by weblog_posts.posted desc limit 10"); 
    4646                                } 
    4747                                if (sizeof($entries) > 0) { 
  • devel/_weblog/view_post.php

    r2 r8  
    2525                        global $page_owner; 
    2626                        global $profile_id; 
    27                         $profile_id = $post->owner
    28                         $page_owner = $post->owner
     27                        $profile_id = $post->weblog
     28                        $page_owner = $post->weblog
    2929                         
    3030                        $title = run("profile:display:name") . " :: Weblog :: " . stripslashes($post->title); 
  • devel/content/mainindex/content_main_index.php

    r6 r8  
    1515<table border="0" cellspacing="0" cellpadding="0"> 
    1616  <tr> 
    17     <td><img src="/images/front_page/1.jpg" width="80" height="80" alt="1." /></td> 
     17    <td><img src="images/front_page/1.jpg" width="80" height="80" alt="1." /></td> 
    1818    <td width="50">&nbsp;</td> 
    1919    <td>Sign up for an account - it's completely free, and all you need is a valid email address.</td> 
    2020  </tr> 
    2121  <tr> 
    22     <td><img src="/images/front_page/2.jpg" width="80" height="80" alt="2." /></td> 
     22    <td><img src="images/front_page/2.jpg" width="80" height="80" alt="2." /></td> 
    2323    <td width="50">&nbsp;</td> 
    2424    <td>Create your own weblog, journal, store of files like photos and Word documents - as much or as little as you want!</td> 
    2525  </tr> 
    2626  <tr> 
    27     <td><img src="/images/front_page/3.jpg" width="80" height="80" alt="3." /></td> 
     27    <td><img src="images/front_page/3.jpg" width="80" height="80" alt="3." /></td> 
    2828    <td width="50">&nbsp;</td> 
    2929    <td>Share them with your friends, academic staff and other $sitename users. <b>YOU</b> decide who can see them! </td> 
  • devel/content/users/content_log_on_pane.php

    r2 r8  
    2323                </tr> 
    2424                <tr> 
     25                        <td>&nbsp;</td> 
     26                        <td> 
     27                                <label><input type="checkbox" name="remember" checked="checked" /> Remember Login</label> 
     28                        </td> 
     29                </tr> 
     30                <tr> 
    2531                        <td colspan="2" align="right"> 
    2632                                <label>Log on: <input type="submit" name="submit" value="Go" /></label> 
  • devel/distribution/database/elgg.sql

    r2 r8  
    1 -- 
    2 -- ELGG database schema 
    3 -- 
    4 -- This must be installed into your chosen Elgg database before you can run Elgg 
    5 --  
    6  
    7 -- -------------------------------------------------------- 
    8  
    9 --  
    10 -- Table structure for table `file_folders` 
    11 --  
     1
     2# ELGG database schema 
     3
     4# This must be installed into your chosen Elgg database before you can run Elgg 
     5
     6 
     7# -------------------------------------------------------- 
     8 
     9
     10# Table structure for table `file_folders` 
     11
    1212 
    1313CREATE TABLE `file_folders` ( 
    1414  `ident` int(11) NOT NULL auto_increment, 
    1515  `owner` int(11) NOT NULL default '0', 
     16  `files_owner` int(11) NOT NULL default '0', 
    1617  `parent` int(11) NOT NULL default '0', 
    1718  `name` varchar(128) NOT NULL default '', 
     
    1920  PRIMARY KEY  (`ident`), 
    2021  KEY `owner` (`owner`,`parent`,`name`,`access`) 
    21 ) TYPE=MyISAM; 
    22  
    23 -- -------------------------------------------------------- 
    24  
    25 --  
    26 -- Table structure for table `file_metadata` 
    27 --  
     22) TYPE=MyISAM AUTO_INCREMENT=5 ; 
     23 
     24
     25# Dumping data for table `file_folders` 
     26
     27 
     28 
     29# -------------------------------------------------------- 
     30 
     31
     32# Table structure for table `file_metadata` 
     33
    2834 
    2935CREATE TABLE `file_metadata` ( 
     
    3440  PRIMARY KEY  (`ident`), 
    3541  KEY `name` (`name`,`file_id`) 
    36 ) TYPE=MyISAM; 
    37  
    38 -- -------------------------------------------------------- 
    39  
    40 --  
    41 -- Table structure for table `files` 
    42 --  
     42) TYPE=MyISAM AUTO_INCREMENT=1 ; 
     43 
     44
     45# Dumping data for table `file_metadata` 
     46
     47 
     48 
     49# -------------------------------------------------------- 
     50 
     51
     52# Table structure for table `files` 
     53
    4354 
    4455CREATE TABLE `files` ( 
    4556  `ident` int(11) NOT NULL auto_increment, 
    4657  `owner` int(11) NOT NULL default '0', 
     58  `files_owner` int(11) NOT NULL default '0', 
    4759  `folder` int(11) NOT NULL default '-1', 
    4860  `community` int(11) NOT NULL default '-1', 
     
    5971  KEY `time_uploaded` (`time_uploaded`), 
    6072  KEY `originalname` (`originalname`), 
    61   KEY `community` (`community`) 
    62 ) TYPE=MyISAM; 
    63  
    64 --  
    65 -- Table structure for table `friends` 
    66 --  
     73  KEY `community` (`community`), 
     74  KEY `files_owner` (`files_owner`) 
     75) TYPE=MyISAM AUTO_INCREMENT=17 ; 
     76 
     77
     78# Dumping data for table `files` 
     79
     80 
     81 
     82# -------------------------------------------------------- 
     83 
     84
     85# Table structure for table `friends` 
     86
    6787 
    6888CREATE TABLE `friends` ( 
     
    7292  PRIMARY KEY  (`ident`), 
    7393  KEY `owner` (`owner`,`friend`) 
    74 ) TYPE=MyISAM; 
    75  
    76 --  
    77 -- Table structure for table `group_membership` 
    78 --  
     94) TYPE=MyISAM AUTO_INCREMENT=8 ; 
     95 
     96
     97# Dumping data for table `friends` 
     98
     99 
     100 
     101# -------------------------------------------------------- 
     102 
     103
     104# Table structure for table `group_membership` 
     105
    79106 
    80107CREATE TABLE `group_membership` ( 
     
    84111  PRIMARY KEY  (`ident`), 
    85112  KEY `user_id` (`user_id`,`group_id`) 
    86 ) TYPE=MyISAM; 
    87  
    88 -- -------------------------------------------------------- 
    89  
    90 --  
    91 -- Table structure for table `groups` 
    92 --  
     113) TYPE=MyISAM AUTO_INCREMENT=1 ; 
     114 
     115
     116# Dumping data for table `group_membership` 
     117
     118 
     119 
     120# -------------------------------------------------------- 
     121 
     122
     123# Table structure for table `groups` 
     124
    93125 
    94126CREATE TABLE `groups` ( 
     
    100132  KEY `owner` (`owner`,`name`), 
    101133  KEY `access` (`access`) 
    102 ) TYPE=MyISAM; 
    103  
    104 --  
    105 -- Table structure for table `icons` 
    106 --  
     134) TYPE=MyISAM AUTO_INCREMENT=1 ; 
     135 
     136
     137# Dumping data for table `groups` 
     138
     139 
     140 
     141# -------------------------------------------------------- 
     142 
     143
     144# Table structure for table `icons` 
     145
    107146 
    108147CREATE TABLE `icons` ( 
     
    113152  PRIMARY KEY  (`ident`), 
    114153  KEY `owner` (`owner`,`filename`,`description`) 
    115 ) TYPE=MyISAM; 
    116  
    117 --  
    118 -- Table structure for table `invitations` 
    119 --  
     154) TYPE=MyISAM AUTO_INCREMENT=10 ; 
     155 
     156
     157# Dumping data for table `icons` 
     158
     159 
     160 
     161# -------------------------------------------------------- 
     162 
     163
     164# Table structure for table `invitations` 
     165
    120166 
    121167CREATE TABLE `invitations` ( 
     
    128174  PRIMARY KEY  (`ident`), 
    129175  KEY `name` (`name`,`email`,`code`,`owner`,`added`) 
    130 ) TYPE=MyISAM; 
    131  
    132 -- -------------------------------------------------------- 
    133  
    134 --  
    135 -- Table structure for table `profile_data` 
    136 --  
     176) TYPE=MyISAM AUTO_INCREMENT=2 ; 
     177 
     178
     179# Dumping data for table `invitations` 
     180
     181 
     182 
     183# -------------------------------------------------------- 
     184 
     185
     186# Table structure for table `profile_data` 
     187
    137188 
    138189CREATE TABLE `profile_data` ( 
     
    144195  PRIMARY KEY  (`ident`), 
    145196  KEY `owner` (`owner`,`access`,`name`) 
    146 ) TYPE=MyISAM; 
    147  
    148 -- -------------------------------------------------------- 
    149  
    150 --  
    151 -- Table structure for table `tags` 
    152 --  
     197) TYPE=MyISAM AUTO_INCREMENT=7 ; 
     198 
     199
     200# Dumping data for table `profile_data` 
     201
     202 
     203 
     204# -------------------------------------------------------- 
     205 
     206
     207# Table structure for table `tags` 
     208
    153209 
    154210CREATE TABLE `tags` ( 
     
    163219  KEY `owner` (`owner`), 
    164220  FULLTEXT KEY `tag_2` (`tag`) 
    165 ) TYPE=MyISAM; 
    166  
    167 -- -------------------------------------------------------- 
    168  
    169 --  
    170 -- Table structure for table `template_elements` 
    171 --  
     221) TYPE=MyISAM AUTO_INCREMENT=7 ; 
     222 
     223
     224# Dumping data for table `tags` 
     225
     226 
     227INSERT INTO `tags` VALUES (6, 'elgg', 'weblog', 15, 'PUBLIC', 1); 
     228 
     229# -------------------------------------------------------- 
     230 
     231
     232# Table structure for table `template_elements` 
     233
    172234 
    173235CREATE TABLE `template_elements` ( 
     
    178240  PRIMARY KEY  (`ident`), 
    179241  KEY `name` (`name`,`template_id`) 
    180 ) TYPE=MyISAM
    181  
    182 --  
    183 -- Dumping data for table `template_elements` 
    184 --  
     242) TYPE=MyISAM AUTO_INCREMENT=25180
     243 
     244
     245# Dumping data for table `template_elements` 
     246
    185247 
    186248INSERT INTO `template_elements` VALUES (24787, 'weblogcomment', '       \r\n<li>\r\n    {{body}}\r\n    <p style=\\"border: 0px; border-bottom: 1px; border-style: solid; border-color: #000000\\">\r\n         <small>Posted by {{postedname}} on {{posted}}</small>\r\n       </p>\r\n</li>\r\n       ', 1); 
    187249INSERT INTO `template_elements` VALUES (24786, 'weblogcomments', '                      <hr noshade=\\"noshade\\" />\r\n                        <h3>Comments</h3>\r\n                   <ol>\r\n                        {{comments}}\r\n                        </ol>', 1); 
    188 INSERT INTO `template_elements` VALUES (24785, 'weblogpost', '<table width=\\"100%\\" style=\\"margin-bottom: 5px; background-color: #FFFFFF; border: 1px; border-color: #C5D3F6; border-style: dashed\\" >\r\n <tr>\r\n                <td valign=\\"top\\" align=\\"left\\">          \r\n                    <a href=\\"/{{username}}/weblog/\\"><img src=\\"/_icons/data/{{usericon}}\\" border=\\"0\\" align=\\"right\\" style=\\"margin-left: 10px; margin-bottom: 10px\\" /></a>\r\n                    <p>\r\n                         <b>{{title}}</b>\r\n                    </p>\r\n                        <div style=\\"margin-left: 20px\\">\r\n                         {{body}}\r\n                    </div>\r\n                      <p>\r\n                         <small>Posted by <a href=\\"/{{username}}/weblog/\\">{{fullname}}</a> at {{date}} :: {{commentslink}} {{trackbackslink}}</small>\r\n                   </p>\r\n                        {{comments}}\r\n                </td>\r\n       </tr>\r\n</table>\r\n', 1); 
     250INSERT INTO `template_elements` VALUES (24785, 'weblogpost', '<table width=\\"100%\\" style=\\"margin-bottom: 5px; background-color: #FFFFFF; border: 1px; border-color: #C5D3F6; border-style: dashed\\" >\r\n <tr>\r\n                <td valign=\\"top\\" align=\\"left\\">          \r\n                    <a href=\\"{{url}}{{username}}/weblog/\\"><img src=\\"{{url}}_icons/data/{{usericon}}\\" border=\\"0\\" align=\\"right\\" style=\\"margin-left: 10px; margin-bottom: 10px\\" /></a>\r\n                        <p>\r\n                         <b>{{title}}</b>\r\n                    </p>\r\n                        <div style=\\"margin-left: 20px\\">\r\n                         {{body}}\r\n                    </div>\r\n                      <p>\r\n                         <small>Posted by <a href=\\"{{url}}{{username}}/weblog/\\">{{fullname}}</a> at {{date}} :: {{commentslink}} {{trackbackslink}}</small>\r\n                     </p>\r\n                        {{comments}}\r\n                </td>\r\n       </tr>\r\n</table>\r\n', 1); 
    189251INSERT INTO `template_elements` VALUES (24784, 'databoxvertical', '     \r\n<table width=\\"95%\\" class=\\"profiletable\\" align=\\"center\\" style=\\"margin-bottom: 3px\\">\r\n      <tr>\r\n                <td align=\\"center\\" class=\\"fieldname\\">\r\n                       {{name}}\r\n            </td>\r\n       &