moved core stuff to /core
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 251 B |
Before Width: | Height: | Size: 181 B After Width: | Height: | Size: 181 B |
Before Width: | Height: | Size: 119 B After Width: | Height: | Size: 119 B |
Before Width: | Height: | Size: 131 B After Width: | Height: | Size: 131 B |
Before Width: | Height: | Size: 124 B After Width: | Height: | Size: 124 B |
Before Width: | Height: | Size: 103 B After Width: | Height: | Size: 103 B |
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 118 B |
Before Width: | Height: | Size: 104 B After Width: | Height: | Size: 104 B |
Before Width: | Height: | Size: 153 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 512 B After Width: | Height: | Size: 512 B |
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 305 B |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 565 B |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 396 B |
Before Width: | Height: | Size: 657 B After Width: | Height: | Size: 657 B |
Before Width: | Height: | Size: 695 B After Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
@ -110,5 +110,5 @@ table td.filename a
|
|||
width:16px;
|
||||
display: -moz-inline-box; /* fallback for older firefox versions*/
|
||||
display: inline-block;
|
||||
background-image:url('../../img/drop-arrow.png');
|
||||
background-image:url('../img/drop-arrow.png');
|
||||
}
|
After Width: | Height: | Size: 2.8 KiB |
|
@ -44,6 +44,9 @@ class OC_HELPER {
|
|||
return $WEBROOT . '/apps/' . $app . $file;
|
||||
}
|
||||
}
|
||||
else{
|
||||
$app = 'core';
|
||||
}
|
||||
return $WEBROOT . '/' . $app . $file;
|
||||
}
|
||||
|
||||
|
@ -58,14 +61,16 @@ class OC_HELPER {
|
|||
public static function imagePath( $app, $image ){
|
||||
global $SERVERROOT;
|
||||
global $WEBROOT;
|
||||
|
||||
// Check if the app is in the app folder
|
||||
if( file_exists( "$SERVERROOT/apps/$app/img/$image" )){
|
||||
return "$WEBROOT/apps/$app/img/$image";
|
||||
}
|
||||
if( !empty( $app )){
|
||||
elseif( !empty( $app )){
|
||||
return "$WEBROOT/$app/img/$image";
|
||||
}else{
|
||||
return "$WEBROOT/img/$image";
|
||||
}
|
||||
else{
|
||||
return "$WEBROOT/core/img/$image";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -84,15 +89,15 @@ class OC_HELPER {
|
|||
|
||||
// Is it a dir?
|
||||
if( $mimetype == "dir" ){
|
||||
return "$WEBROOT/img/places/folder.png";
|
||||
return "$WEBROOT/core/img/places/folder.png";
|
||||
}
|
||||
|
||||
// Icon exists?
|
||||
if( file_exists( "$SERVERROOT/img/mimetypes/$mimetype.png" )){
|
||||
return "$WEBROOT/img/mimetypes/$mimetype.png";
|
||||
if( file_exists( "$SERVERROOT/core/img/mimetypes/$mimetype.png" )){
|
||||
return "$WEBROOT/core/img/mimetypes/$mimetype.png";
|
||||
}
|
||||
else{
|
||||
return "$WEBROOT/img/mimetypes/file.png";
|
||||
return "$WEBROOT/core/img/mimetypes/file.png";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -95,8 +95,8 @@ class OC_TEMPLATE{
|
|||
global $SERVERROOT;
|
||||
|
||||
// Get the right template folder
|
||||
$template = "$SERVERROOT/templates/";
|
||||
if( $app != "core" && $app != "" ){
|
||||
$template = "$SERVERROOT/core/templates/";
|
||||
if( $app != "" ){
|
||||
// Check if the app is in the app folder
|
||||
if( file_exists( "$SERVERROOT/apps/$app/templates/" )){
|
||||
$template = "$SERVERROOT/apps/$app/templates/";
|
||||
|
@ -222,16 +222,24 @@ class OC_TEMPLATE{
|
|||
foreach(OC_UTIL::$scripts as $script){
|
||||
if(is_file("$SERVERROOT/apps/$script.js" )){
|
||||
$page->append( "jsfiles", "$WEBROOT/apps/$script.js" );
|
||||
}else{
|
||||
}
|
||||
elseif(is_file("$SERVERROOT/$script.js" )){
|
||||
$page->append( "jsfiles", "$WEBROOT/$script.js" );
|
||||
}
|
||||
else{
|
||||
$page->append( "jsfiles", "$WEBROOT/core/$script.js" );
|
||||
}
|
||||
}
|
||||
foreach(OC_UTIL::$styles as $style){
|
||||
if(is_file("$SERVERROOT/apps/$style.css" )){
|
||||
$page->append( "cssfiles", "$WEBROOT/apps/$style.css" );
|
||||
}else{
|
||||
}
|
||||
elseif(is_file("$SERVERROOT/$style.css" )){
|
||||
$page->append( "cssfiles", "$WEBROOT/$style.css" );
|
||||
}
|
||||
else{
|
||||
$page->append( "cssfiles", "$WEBROOT/core/$style.css" );
|
||||
}
|
||||
}
|
||||
|
||||
// Add css files and js files
|
||||
|
|