Changeset 6

Show
Ignore:
Timestamp:
11/30/05 17:59:38 (3 years ago)
Author:
sven
Message:

importing elgg-0.1.2a

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/.htaccess

    r2 r6  
     1Options +FollowSymLinks 
    12RewriteEngine on 
    23RewriteBase / 
     
    56 
    67RewriteRule ^([A-Za-z0-9]+)(\/)?$ profile/index.php?profile_name=$1 
     8RewriteRule ^([A-Za-z0-9]+)\/rss\/?$ profile/rss2.php?profile_name=$1 
     9RewriteRule ^([A-Za-z0-9]+)\/rss\/(.*) profile/rss2.php?profile_name=$1&tag=$2 
    710 
    811RewriteRule ^([A-Za-z0-9]+)\/weblog\/?$ _weblog/index.php?weblog_name=$1 
     
    1316ReWriteRule ^([A-Za-z0-9]+)\/weblog\/friends\/skip=([0-9]+)$ _weblog/friends.php?weblog_name=$1&weblog_offset=$2 
    1417RewriteRule ^([A-Za-z0-9]+)\/weblog\/rss\/?$ _weblog/rss2.php?weblog_name=$1 
     18RewriteRule ^([A-Za-z0-9]+)\/weblog\/rss\/(.*) _weblog/rss2.php?weblog_name=$1&tag=$2 
    1519RewriteRule ^[A-Za-z0-9]+\/weblog\/([0-9]+)\.html$ _weblog/view_post.php?post=$1 
    1620 
     
    2731RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9]+)\/?$ _files/index.php?files_name=$1&folder=$2 
    2832RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9\-]+)\/([0-9]+)\/(.+)$ _files/download.php?files_name=$1&folder=$2&filename=$4&id=$3 
     33RewriteRule ^([A-Za-z0-9]+)\/files\/rss\/?$ _files/rss2.php?files_name=$1 
     34RewriteRule ^([A-Za-z0-9]+)\/files\/rss\/(.*) _files/rss2.php?files_name=$1&tag=$2 
  • devel/CHANGELOG

    r4 r6  
    11Elgg changelog 
     2 
     30.1.2a (24th April 2005) 
     4------------------------ 
     5Incorporated file download patch by Sven Edge 
     6Incorporated icon upload patch by David Eshelman 
     7Incorporated password patch by Ben Werdmuller 
     8Added RSS feed for files 
     9Added RSS feed for a single user's activity 
     10Added ability to filter RSS feed by tag 
     11Changed all file items in RSS feeds to use enclosures, ensuring compatibility with podcasting 
     12Altered instructions in includes.php 
    213 
    3140.1.1b (2nd April 2005) 
  • devel/INSTALL

    r2 r6  
    1 Elgg version 0.1 alpha installation instructions 
     1Elgg version 0.1.2 alpha installation instructions 
    22 
    33Ben Werdmuller <ben@elgg.net> 
    4 28th March, 2005 
     423rd April, 2005 
    55 
    66 
     
    1414Red Hat Linux and Microsoft Windows XP. 
    1515 
     16In your Apache configuration, you must have AllowOverride set to 
     17All for the virtual server where Elgg is installed. 
     18 
    1619Elgg must be installed on the root of a domain - for example, 
    1720at http://elgg.net/, as opposed to http://elgg.net/subdirectory/. 
     
    1922You must have a database on the MySQL server ready for use by Elgg. 
    2023 
    21 IF YOU ARE UPGRADING, for this release you must drop any existing 
     24IF YOU ARE UPGRADING FROM 0.1.1a, you do not need to alter the database 
     25schema (and can ignore section 3 of these instructions). 
     26 
     27IF YOU ARE UPGRADING FROM EARLIER VERSIONS, you must drop any existing 
    2228database tables and insert the new database schema. 
     29 
    2330 
    24311.2 Recommendations 
     
    2734Please see the MySQL documentation for instructions, or ask your 
    2835system administrator. 
     36 
    2937 
    30381.3 Time estimate 
     
    3543 
    3644 
     45 
    37462. INSTALLING FILES 
     47 
    3848 
    39492.1 Deploy Elgg framework 
     
    4353server directory.  Files in the root of the distribution must be in  
    4454the root of your web server account. 
     55 
     56IF YOU ARE UPGRADING, you may wish to retain your existing 
     57includes.php file. 
     58 
    4559 
    46602.1 Set permissions on special directories 
     
    6175 
    6276 
     77 
    63783. SETTING UP THE DATABASE 
     79 
    6480 
    65813.1 Open database schema 
     
    7288maintaining MySQL databases, go to 3.2; otherwise go to 3.3. 
    7389 
     90 
    74913.2 Setting up the database with phpMyAdmin 
    7592 
     
    7996textfile to import.  Navigate to /distribution/database in the 
    8097distribution package and select elgg.sql.  Click "Go". 
     98 
    8199 
    821003.3 Setting up the database with command line MySQL 
     
    95113 
    96114 
     115 
    971164. SETTING UP ELGG 
     117 
    98118 
    991194.1 Edit includes.php 
     
    110130a backslash ("\"). 
    111131 
     132 
    1121334.2 Customise your default homepage 
    113134 
     
    116137position within Elgg's flexible templating system, you will need to 
    117138alter the file /content/mainindex/content_main_index.php. 
     139 
    118140 
    1191414.3 Log in 
     
    126148 
    127149 
     150 
    1281515. FURTHER CUSTOMISATION AND DEVELOPMENTS 
    129152 
    130 Please keep an eye on http://apcala.com/development/index.php for 
     153Please keep an eye on http://elgg.net/development/index.php for 
    131154forthcoming developments within Elgg, including documentation on how 
    132155to alter your default templates and writing new functionality into 
  • devel/README

    r4 r6  
    1 Elgg (The Learning Landscape) version 0.1.1b 
     1Elgg (The Learning Landscape) version 0.1.2a 
    22Copyright (C) 2004-2005 David Tosh and Ben Werdmuller 
    33 
     
    2323Copyright (C) 2004-2005 David Tosh and Ben Werdmuller 
    2424 
    25 Elgg 0.1.1b is released under the GNU Public License (GPL), which 
     25Elgg 0.1.2a is released under the GNU Public License (GPL), which 
    2626is supplied in this distribution as LICENSE. 
    2727 
  • devel/_files/download.php

    r2 r6  
    3131                                 
    3232                                        if (run("users:access_level_check",$file->access) == true) { 
    33                                                                          
    34         // Then output some appropriate headers and send the file data! 
    3533 
    36                                                 $mimetype = run("files:mimetype:inline",$file->location); 
    37                                                 if ($mimetype == false) { 
    38                                                         $mimetype = "application/data"; 
     34        // Send 304s where possible, rather than spitting out the file each time 
     35                                                $if_modified_since = preg_replace('/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE']); 
     36                                                 
     37                                                $tstamp = filemtime($file->location); 
     38                                                $lm = gmdate("D, d M Y H:i:s", $tstamp) . " GMT"; 
     39                                                 
     40                                                if ($if_modified_since == $lm) { 
     41                                                        header("{$_SERVER['SERVER_PROTOCOL']} 304 Not Modified"); 
     42                                                        exit; 
    3943                                                } 
    4044 
     45        // Send last-modified header to enable if-modified-since requests 
     46                                                if ($tstamp < time()) { 
     47                                                        header("Last-Modified: " . $lm); 
     48                                                } 
     49                                                 
     50        // Then output some appropriate headers and send the file data! 
     51         
     52                                                $mimetype = run("files:mimetype:determine",$file->location); 
     53                                                if ($mimetype == false) { 
     54                                                        $mimetype = "application/octet-stream"; 
     55                                                } 
     56 
     57        // "Cache-Control: private" to allow a user's browser to cache the file, but not a shared proxy 
     58        // Also to override PHP's default "DON'T EVER CACHE THIS EVER" header 
     59                                                header("Cache-Control: private"); 
     60                                                 
    4161                                                header("Content-type: $mimetype"); 
    42                                                 if ($mimetype == "application/data") { 
     62                                                if ($mimetype == "application/octet-stream") { 
    4363                                                        header('Content-Disposition: attachment'); 
    4464                                                } 
  • devel/_weblog/rss2.php

    r2 r6  
    11<?php 
    22 
    3         //      ELGG weblog RSS 0.91 page 
     3        //      ELGG weblog RSS 2.0 page 
    44 
    55        // Run includes 
     
    1515                 
    1616                $individual = 1; 
     17                 
     18                $sitename = htmlentities(sitename); 
    1719                 
    1820                header("Content-type: text/xml"); 
     
    3335  <channel xml:base='$mainurl'> 
    3436    <title>$name : Weblog</title> 
    35     <description>The weblog for $name, hosted on Elgg.</description> 
     37    <description>The weblog for $name, hosted on $sitename.</description> 
    3638    <language>en-gb</language> 
    3739    <link>$mainurl</link> 
    3840END; 
    39                                 $entries = db_query("select * from weblog_posts where owner = $page_owner and access = 'PUBLIC' order by posted desc limit 10"); 
     41                                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"); 
     43                                } else { 
     44                                        $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"); 
     46                                } 
    4047                                if (sizeof($entries) > 0) { 
    4148                                        foreach($entries as $entry) { 
  • devel/content/mainindex/content_main_about.php

    r2 r6  
    55<h1>About $sitename</h1> 
    66 
    7 <h3>More about $sitename?</h3> 
     7<h3>More about $sitename</h3> 
    88 
    9 <p>$sitename is the creation of <a href="/ben">Ben Werdmuller</a> and <a href="/davet">David Tosh</a>. The concept behind the system is to develop a fully customizable learning landscape. To achieve this $sitename is a hybrid of weblogging, e-portfolios and social networking. It is hoped this combination of features with help promote student engagement in learning through reflection in an academic and social setting.</p> 
     9<p>$sitename is the creation of <a href="http://apcala.com/ben">Ben Werdmuller</a> and <a href="http://elgg.net/dtosh">David Tosh</a>. The concept behind the system is to develop a fully customizable learning landscape. To achieve this $sitename is a hybrid of weblogging, e-portfolios and social networking. It is hoped this combination of features with help promote student engagement in learning through reflection in an academic and social setting.</p> 
    1010 
    1111<p>Learning is not a solitary pursuit and we feel real strength can be achieved from the creation of learning communities. Students interacting with: peers, tutors, lecturers, resources etc. The sharing of knowledge, ideas and problems can help foster a sense of belonging and development. </p> 
  • devel/content/mainindex/content_main_index.php

    r2 r6  
    2727    <td><img src="/images/front_page/3.jpg" width="80" height="80" alt="3." /></td> 
    2828    <td width="50">&nbsp;</td> 
    29     <td>Share them with your friends, academic staff and other Elgg users. <b>YOU</b> decide who can see them! </td> 
     29    <td>Share them with your friends, academic staff and other $sitename users. <b>YOU</b> decide who can see them! </td> 
    3030  </tr> 
    3131</table> 
  • devel/includes.php

    r4 r6  
    33        // ELGG system includes 
    44         
    5         // System constants: set as necessary 
     5        // System constants: set values as necessary 
     6        // Supply your values within the second set of speech marks in the pair 
     7        // i.e., define("system constant name", "your value"); 
    68         
    79                // Name of the site (eg Elgg, Apcala, University of Bogton's Learning Landscape, etc) 
    810                        define("sitename", ""); 
    911                // External URL to the site (eg http://elgg.bogton.edu/) 
     12                // NB: **MUST** have a final slash at the end 
    1013                        define("url", ""); 
    1114                // Physical path to the files (eg /home/elggserver/httpdocs/) 
  • devel/units/display/function_log_on_pane.php

    r2 r6  
    22 
    33        global $page_owner; 
     4        $url = url; 
    45                 
    56        // If this is someone else's portfolio, display the user's icon 
    67                $run_result .= "<div class=\"box_user\">"; 
    78                if ($page_owner != -1) { 
     9                        // $rsslink = "(<a href=\"". url . run("users:id_to_name",$page_owner) . "/rss/\">RSS</a>)"; 
    810                        if ($page_owner != $_SESSION['userid']) { 
    911                                $run_result .= run("users:infobox", array("Profile Owner",array($page_owner))); 
     
    1820                $body = <<< END 
    1921                 
    20                 <form action="/_users/action_redirection.php" method="post"> 
     22                <form action="{$url}_users/action_redirection.php" method="post"> 
    2123END; 
    2224                $body .= run("templates:draw",array( 
     
    2426                                                'context' => 'infobox', 
    2527                                                'name' => 'Log On', 
    26                                                 'contents' => ' 
     28                                                'contents' => " 
    2729                        <table> 
    2830                                <tr> 
    29                                         <td align="right"> 
    30                                                 <label>Username&nbsp;<input type="text" name="username" id="username" style="size: 200px" /> 
     31                                        <td align=\"right\"> 
     32                                                <label>Username&nbsp;<input type=\"text\" name=\"username\" id=\"username\" style=\"size: 200px\" /> 
    3133                                                </label> 
    3234                                        </td> 
    3335                                </tr> 
    3436                                <tr> 
    35                                         <td align="right"> 
    36                                                 <label>Password&nbsp;<input type="password" name="password" id="password" style="size: 200px" /> 
     37                                        <td align=\"right\"> 
     38                                                <label>Password&nbsp;<input type=\"password\" name=\"password\" id=\"password\" style=\"size: 200px\" /> 
    3739                                                </label> 
    3840                                        </td> 
    3941                                </tr> 
    4042                                <tr> 
    41                                         <td align="right"> 
    42                                                 <input type="hidden" name="action" value="log_on" /> 
    43                                                 <label>Log on: <input type="submit" name="submit" value="Go" /></label><br /> 
    44                                                 <small><a href="/_invite/register.php">Register</a></small> 
     43                                        <td align=\"right\"> 
     44                                                <input type=\"hidden\" name=\"action\" value=\"log_on\" /> 
     45                                                <label>Log on: <input type=\"submit\" name=\"submit\" value=\"Go\" /></label><br /> 
     46                                                <small> 
     47                                                        <a href=\"{$url}_invite/register.php\">Register</a> | 
     48                                                        <a href=\"{$url}_invite/forgotten_password.php\">Forgotten password</a> 
     49                                                </small> 
    4550                                        </td> 
    4651                                </tr> 
     
    4853                        </table> 
    4954 
    50 
     55
    5156                                        ) 
    5257                                        ); 
    5358                $body .= "</form>"; 
    54 /*              $body .= run("templates:draw",array( 
    55                                                 'template' => -1, 
    56                                                 'context' => 'infobox', 
    57                                                 'name' => 'Or, Register ...', 
    58                                                 'contents' => ' 
    59                         <table> 
    60                                 <tr> 
    61                                         <td> 
    62                                                 Registration is disabled for the time being. If you would 
    63                                                 like to be notified when Elgg is open to outside users, please  
    64                                                 <a href="/">fill in the form on the front page</a>. 
    65                                         </td> 
    66                                 </tr> 
    67 <!--                            <tr> 
    68                                         <td> 
    69                                                 <label for="regusername">Username</label> 
    70                                         </td> 
    71                                         <td align="right"> 
    72                                                 <input type="text" name="username" id="regusername" style="size: 200px" /> 
    73                                         </td> 
    74                                 </tr> 
    75                                 <tr> 
    76                                         <td> 
    77                                                 <label for="email">Email address</label> 
    78                                         </td> 
    79                                         <td align="right"> 
    80                                                 <input type="text" name="email" id="email" style="size: 200px" /> 
    81                                         </td> 
    82                                 </tr> 
    83                                 <tr> 
    84                                         <td> 
    85                                                 <label for="password1">Password</label> 
    86                                         </td> 
    87                                         <td align="right"> 
    88                                                 <input type="password" name="password1" id="password1" style="size: 200px" /> 
    89                                         </td> 
    90                                 </tr> 
    91                                 <tr> 
    92                                         <td> 
    93                                                 <label for="password2">Password again for verification</label> 
    94                                         </td> 
    95                                         <td align="right"> 
    96                                                 <input type="password" name="password2" id="password2" style="size: 200px" /> 
    97                                         </td> 
    98                                 </tr> 
    99                                 <tr> 
    100                                         <td colspan="2" align="right"> 
    101                                                 <input type="hidden" name="action" value="register" /> 
    102                                                 <label>Register: <input type="submit" name="submit" value="Go" /></label> 
    103                                         </td> 
    104                                 </tr> --> 
    105                          
    106                         </table> 
    107 
    108                         ) 
    109                         ); 
    110 */ 
     59 
    11160                $run_result .= $body; 
    11261                         
  • devel/units/display/function_output_field_display.php

    r2 r6  
    5353                                                break; 
    5454                                case "keywords": 
     55                                                /* $keywords = stripslashes($parameter[0]); 
     56                                                preg_match_all("/\[\[([A-Za-z0-9 ]+)\]\]/i",$keywords,$keyword_list); 
     57                                                $keyword_list = $keyword_list[1]; 
     58                                                $keywords = ""; 
     59                                                if (sizeof($keyword_list) > 0) { 
     60                                                        sort($keyword_list); 
     61                                                        $where = run("users:access_level_sql_where",$_SESSION['userid']); 
     62                                                        foreach($keyword_list as $key => $list_item) { 
     63                                                                $numberofkeywords = db_query("select count(ident) as number from profile_data where ($where) and name = '".$parameter[2]."' and value like \"%[[".$list_item."]]%\""); 
     64                                                                $number = $numberofkeywords[0]->number; 
     65                                                                if ($number > 1) { 
     66                                                                        $keywords .= "<a href=\"/profile/search.php?".$parameter[2]."=".$list_item."\" title=\"$number users\">"; 
     67                                                                } 
     68                                                                $keywords .= $list_item; 
     69                                                                if ($number > 1) { 
     70                                                                        $keywords .= "</a>"; 
     71                                                                } 
     72                                                                if ($key < sizeof($keyword_list) - 1) { 
     73                                                                        $keywords .= ", "; 
     74                                                                } 
     75                                                        } 
     76                                                } 
     77                                                $run_result = $keywords; */ 
    5578                                                $where = run("users:access_level_sql_where",$_SESSION['userid']); 
    5679                                                $tags = db_query("select * from tags where ($where) and tagtype = '".addslashes($parameter[2])."' and ref = ".$parameter[4]." order by tag asc"); 
  • devel/units/engine/function_init.php

    r2 r6  
    1414                global $messages; 
    1515                $messages = array(); 
     16                 
     17        // Add the site root to the metatags 
     18                global $metatags; 
     19                // $metatags .= "       <base href=\"".url."\" />"; 
    1620 
    1721?> 
  • devel/units/engine/menu_bottom.php

    r2 r6  
    1 <a href="/content/about.php">About <?php echo sitename; ?></a> | <a href="/content/faq.php">FAQ</a> | <a href="/content/privacy.php">Privacy Policy</a> 
     1<a href="<?php echo url; ?>content/about.php">About <?php echo sitename; ?></a> |  
     2<a href="<?php echo url; ?>content/faq.php">FAQ</a> |  
     3<a href="<?php echo url; ?>content/privacy.php">Privacy Policy</a> 
  • devel/units/files/edit_file.php

    r2 r6  
    6666                                        <td> 
    6767                                                <label for="edit_file_keywords"> 
    68                                                         Keywords 
     68                                                        Keywords (comma separated): 
    6969                                                </label> 
    7070                                        </td> 
  • devel/units/files/files_user_info_menu.php

    r2 r6  
    33                global $page_owner; 
    44                $profile_id = $page_owner; 
    5          
     5                $url = url; 
     6                 
    67                $posts = db_query("select count(ident) as x from files where (".run("users:access_level_sql_where",$profile_id).") and owner = $profile_id"); 
    78                $posts = $posts[0]->x; 
     
    1819                        $body = <<< END 
    1920                        <p align="center"> 
    20                                 <a href="/{$weblog_username}/files/">File Storage</a> 
     21                                <a href="{$url}{$weblog_username}/files/">File Storage</a> 
     22                                (<a href="{$url}{$weblog_username}/files/rss/">RSS</a>) 
    2123                        </p> 
    2224END; 
  • devel/units/files/folder_edit.php

    r2 r6  
    5252                                <td> 
    5353                                        <label for="edit_folder_access"> 
    54                                                 Keywords 
     54                                                Keywords (comma separated): 
    5555                                        </label> 
    5656                                </td> 
     
    147147        $title = "Upload a file"; 
    148148 
    149         if (isset($_SESSION['file_data'])) { 
    150                 $file_data = $_SESSION['file_data']; 
    151                 unset($_SESSION['file_data']); 
    152                 $filetitle = $file_data->new_file_title; 
    153                 $filedescr = $file_data->new_file_description; 
    154                 $fileaccess = $file_data->new_file_access; 
    155                 $filefolder = $file_data->folder; 
    156         } 
    157          
    158149        $body = <<< END 
    159150         
  • devel/units/files/folder_view.php

    r2 r6  
    66        */ 
    77 
     8                $url = url; 
     9         
    810        // If a folder has been specified, convert it to integer; 
    911        // otherwise assume we're in the root 
     
    5557                         
    5658                         
    57                         $body .= "<p><a href=\"/$owner_username/files/$display_parent\">"; 
     59                        $body .= "<p><a href=\"".url."$owner_username/files/$display_parent\">"; 
    5860                        $body .= "Return to " . stripslashes($parent_details->name); 
    5961                        $body .= "</a></p>"; 
     
    8486                                        if ($folder_details->owner == $_SESSION['userid']) { 
    8587                                                $foldermenu = <<< END 
    86         [<a href="/_files/action_redirection.php?action=delete_folder&delete_folder_id={$folder_details->ident}" onClick="return confirm('Are you sure you want to permanently delete this folder?')">Delete</a>] 
     88        [<a href="{$url}_files/action_redirection.php?action=delete_folder&delete_folder_id={$folder_details->ident}" onClick="return confirm('Are you sure you want to permanently delete this folder?')">Delete</a>] 
    8789END; 
    8890                                        } else { 
     
    9698                                                                        'context' => 'folder', 
    9799                                                                        'username' => $username, 
    98                                                                         'url' => "/$username/files/$ident", 
     100                                                                        'url' => $url . "$username/files/$ident", 
    99101                                                                        'ident' => $ident, 
    100102                                                                        'name' => $name, 
    101103                                                                        'menu' => $foldermenu, 
    102                                                                         'icon' => "/_files/folder.png", 
     104                                                                        'icon' => $url . "_files/folder.png", 
    103105                                                                        'keywords' => $keywords 
    104106                                                                ) 
     
    129131                                        if ($file->owner == $_SESSION['userid']) { 
    130132                                                $filemenu .= <<< END 
    131         [<a href="/_files/edit_file.php?edit_file_id={$file->ident}">Edit</a>] 
    132         [<a href="/_files/action_redirection.php?action=delete_file&delete_file_id={$file->ident}" onClick="return confirm('Are you sure you want to permanently delete this file?')">Delete</a>] 
     133        [<a href="{$url}_files/edit_file.php?edit_file_id={$file->ident}">Edit</a>] 
     134        [<a href="{$url}_files/action_redirection.php?action=delete_file&delete_file_id={$file->ident}" onClick="return confirm('Are you sure you want to permanently delete this file?')">Delete</a>] 
    133135END; 
    134136                                        } else { 
     
    147149                                                                        'description' => $description, 
    148150                                                                        'originalname' => $originalname, 
    149                                                                         'url' => "/$username/files/$folder/$ident/$originalname", 
     151                                                                        'url' => $url . "$username/files/$folder/$ident/$originalname", 
    150152                                                                        'menu' => $filemenu, 
    151                                                                         'icon' => "/_files/file.png", 
     153                                                                        'icon' => $url . "_files/file.png", 
    152154                                                                        'keywords' => $keywords 
    153155                                                                ) 
  • devel/units/files/function_search.php

    r2 r6  
    22 
    33        global $search_exclusions; 
     4        $url = url; 
    45 
    56        if (isset($parameter) && $parameter[0] == "file") { 
     
    2829                                                                        'context' => 'folder', 
    2930                                                                        'username' => stripslashes($folder->username), 
    30                                                                         'url' => "/".stripslashes($folder->username)."/files/".$folder->ident, 
     31                                                                        'url' => url.stripslashes($folder->username)."/files/".$folder->ident, 
    3132                                                                        'ident' => $folder->ident, 
    3233                                                                        'name' => stripslashes($folder->name), 
    3334                                                                        'menu' => "", 
    34                                                                         'icon' => "/_files/folder.png", 
     35                                                                        'icon' => url . "_files/folder.png", 
    3536