Skip to content

Commit

Permalink
webMAN MOD 1.43.33
Browse files Browse the repository at this point in the history
- Added right-click menu to /index.ps3
- Moved CSS and some javascripts to external files:
- PKG install and download now show paths as breadcrumb trail
- Updater: changed way paths are declared
- More code cleanup.
  • Loading branch information
Aldo Vargas committed Aug 7, 2016
1 parent 9b89c75 commit 3cd727e
Show file tree
Hide file tree
Showing 39 changed files with 809 additions and 571 deletions.
1 change: 1 addition & 0 deletions flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define WM_REQUEST 1 // accept commands via local file /dev_hdd0/tmp/wm_request (required by VSH Menu for webMAN)
#define GET_KLICENSEE 1 // /klic.ps3
#define PS3_BROWSER 1 // /browser.ps3 / open browser combos
//#define EMBED_JS 1 // use embedded javascript instead of external js files

//// EXTRA FEATURES ////
#define XMB_SCREENSHOT 1 // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
Expand Down
1 change: 1 addition & 0 deletions flags/flags_ccapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define WM_REQUEST 1 // accept commands via local file /dev_hdd0/tmp/wm_request (required by VSH Menu for webMAN)
#define GET_KLICENSEE 1 // /klic.ps3
#define PS3_BROWSER 1 // /browser.ps3 / open browser combos
//#define EMBED_JS 1 // use embedded javascript instead of external js files

//// EXTRA FEATURES ////
//#define XMB_SCREENSHOT 1 // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
Expand Down
1 change: 1 addition & 0 deletions flags/flags_cobra.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define WM_REQUEST 1 // accept commands via local file /dev_hdd0/tmp/wm_request (required by VSH Menu for webMAN)
#define GET_KLICENSEE 1 // /klic.ps3
#define PS3_BROWSER 1 // /browser.ps3 / open browser combos
//#define EMBED_JS 1 // use embedded javascript instead of external js files

//// EXTRA FEATURES ////
//#define XMB_SCREENSHOT 1 // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
Expand Down
1 change: 1 addition & 0 deletions flags/flags_english.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define WM_REQUEST 1 // accept commands via local file /dev_hdd0/tmp/wm_request (required by VSH Menu for webMAN)
#define GET_KLICENSEE 1 // /klic.ps3
#define PS3_BROWSER 1 // /browser.ps3 / open browser combos
//#define EMBED_JS 1 // use embedded javascript instead of external js files

//// EXTRA FEATURES ////
//#define XMB_SCREENSHOT 1 // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
Expand Down
1 change: 1 addition & 0 deletions flags/flags_full.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define WM_REQUEST 1 // accept commands via local file /dev_hdd0/tmp/wm_request (required by VSH Menu for webMAN)
#define GET_KLICENSEE 1 // /klic.ps3
#define PS3_BROWSER 1 // /browser.ps3 / open browser combos
//#define EMBED_JS 1 // use embedded javascript instead of external js files

//// EXTRA FEATURES ////
#define XMB_SCREENSHOT 1 // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
Expand Down
1 change: 1 addition & 0 deletions flags/flags_lite.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
//#define WM_REQUEST 1 // accept commands via local file /dev_hdd0/tmp/wm_request (required by VSH Menu for webMAN) (required by VSH Menu for webMAN)
//#define GET_KLICENSEE 1 // /klic.ps3
//#define PS3_BROWSER 1 // /browser.ps3 / open browser combos
//#define EMBED_JS 1 // use embedded javascript instead of external js files

//// EXTRA FEATURES ////
//#define XMB_SCREENSHOT 1 // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
Expand Down
1 change: 1 addition & 0 deletions flags/flags_noncobra.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define WM_REQUEST 1 // accept commands via local file /dev_hdd0/tmp/wm_request (required by VSH Menu for webMAN)
#define GET_KLICENSEE 1 // /klic.ps3
#define PS3_BROWSER 1 // /browser.ps3 / open browser combos
//#define EMBED_JS 1 // use embedded javascript instead of external js files

//// EXTRA FEATURES ////
//#define XMB_SCREENSHOT 1 // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
Expand Down
1 change: 1 addition & 0 deletions flags/flags_ps3mapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define WM_REQUEST 1 // accept commands via local file /dev_hdd0/tmp/wm_request (required by VSH Menu for webMAN)
#define GET_KLICENSEE 1 // /klic.ps3
#define PS3_BROWSER 1 // /browser.ps3 / open browser combos
//#define EMBED_JS 1 // use embedded javascript instead of external js files

//// EXTRA FEATURES ////
//#define XMB_SCREENSHOT 1 // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
Expand Down
1 change: 1 addition & 0 deletions flags/flags_rebug_cobra_english.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define WM_REQUEST 1 // accept commands via local file /dev_hdd0/tmp/wm_request (required by VSH Menu for webMAN)
#define GET_KLICENSEE 1 // /klic.ps3
#define PS3_BROWSER 1 // /browser.ps3 / open browser combos
#define EMBED_JS 1 // use embedded javascript instead of external js files

//// EXTRA FEATURES ////
//#define XMB_SCREENSHOT 1 // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
Expand Down
1 change: 1 addition & 0 deletions flags/flags_rebug_cobra_multi23.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define WM_REQUEST 1 // accept commands via local file /dev_hdd0/tmp/wm_request (required by VSH Menu for webMAN)
#define GET_KLICENSEE 1 // /klic.ps3
#define PS3_BROWSER 1 // /browser.ps3 / open browser combos
#define EMBED_JS 1 // use embedded javascript instead of external js files

//// EXTRA FEATURES ////
//#define XMB_SCREENSHOT 1 // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
Expand Down
1 change: 1 addition & 0 deletions flags/flags_rebug_cobra_ps3mapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define WM_REQUEST 1 // accept commands via local file /dev_hdd0/tmp/wm_request (required by VSH Menu for webMAN)
#define GET_KLICENSEE 1 // /klic.ps3
#define PS3_BROWSER 1 // /browser.ps3 / open browser combos
#define EMBED_JS 1 // use embedded javascript instead of external js files

//// EXTRA FEATURES ////
//#define XMB_SCREENSHOT 1 // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
Expand Down
41 changes: 11 additions & 30 deletions include/_mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -765,41 +765,22 @@ static void game_mount(char *buffer, char *templn, char *param, char *tempstr, u

bool is_error = ((islike(target, "/dev_usb000") && file_exists("/dev_usb000")==false)) || islike(target, source);

htmlenc(_path, source, 0);
sprintf(tempstr, "%s <a href=\"%s\">%s</a><hr>", STR_COPYING, templn, _path); strcat(buffer, tempstr);
// show source path
sprintf(tempstr, "%s ", STR_COPYING); strcat(buffer, tempstr);
add_breadcrumb_trail(buffer, source); strcat(buffer, "<hr>");

// show image
urlenc(_path, target);
sprintf(tempstr, "<a href=\"%s\"><img src=\"%s\" border=0></a><hr>%s %s: ",
_path, enc_dir_name, is_error ? STR_ERROR : "", STR_CPYDEST); strcat(buffer, tempstr);

// breadcrumb trail //
strcpy(templn, target); char *swap=tempstr; u16 tlen=0;
while(strchr(templn+1, '/'))
{
templn[strchr(templn+1, '/')-templn] = NULL;
tlen+=strlen(templn)+1;

strcpy(swap, target);
swap[tlen] = NULL;

strcat(buffer, "<a class=\"f\" href=\"");
urlenc(enc_dir_name, swap);
strcat(buffer, enc_dir_name);
// show target path
add_breadcrumb_trail(buffer, target);

htmlenc(enc_dir_name, templn, 1);
sprintf(swap, "\">%s</a>/", templn);
strcat(buffer, swap);

strcpy(templn, target+tlen);
}
if(strstr(target, "/webftp_server")) {sprintf(tempstr, "<HR>%s", STR_SETTINGSUPD); strcat(buffer, tempstr);} else
if(cp_mode) {char *p = strrchr(enc_dir_name, '/'); p[0] = NULL; sprintf(tempstr, HTML_REDIRECT_TO_URL, enc_dir_name); strcat(buffer, tempstr);}

urlenc(enc_dir_name, target); htmlenc(_path, templn, 0); sprintf(tempstr, HTML_URL, enc_dir_name, _path);
////////////////////////

if(strstr(target, "/webftp_server")) {strcat(buffer, tempstr); sprintf(tempstr, "<HR>%s", STR_SETTINGSUPD);} else
if(cp_mode) {strcat(buffer, tempstr); char *p = strrchr(enc_dir_name, '/'); p[0] = NULL; sprintf(tempstr, HTML_REDIRECT_TO_URL, enc_dir_name);}

if(is_error) {strcat(buffer, tempstr); show_msg((char*)STR_CPYABORT); cp_mode = 0; return;}
if(is_error) {show_msg((char*)STR_CPYABORT); cp_mode = 0; return;}
}
else
#endif // #ifdef COPY_PS3
Expand Down Expand Up @@ -982,7 +963,7 @@ static void do_umount(bool clean)


#ifdef COBRA_ONLY
// #ifndef LITE_EDITION
#ifndef LITE_EDITION
static u32 detect_cd_sector_size(int fd)
{
char buffer[0x10]; buffer[0xD] = NULL; uint64_t msiz1;
Expand All @@ -994,7 +975,7 @@ static u32 detect_cd_sector_size(int fd)

return 2352;
}
// #endif
#endif
#endif

static void mount_autoboot(void)
Expand Down
5 changes: 3 additions & 2 deletions include/combos.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
STR_STORAGE, (int)((blockSize*freeSize)>>20), STR_MBFREE,
STR_MEMORY, meminfo.avail>>10, STR_KBFREE);

if(R2 && gTick.tick>rTick.tick)
if(R2 && (gTick.tick>rTick.tick))
{
////// play time //////
ss = (u32)((pTick.tick-gTick.tick)/1000000);
Expand Down Expand Up @@ -653,8 +653,9 @@
else
#endif
{
#ifndef LITE_EDITION
enable_ingame_screenshot();

#endif
show_idps(msg);
}
}
Expand Down
2 changes: 2 additions & 0 deletions include/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ int file_copy(char *file1, char *file2, uint64_t maxbytes)
return ret;
}

#ifdef COPY_PS3
static int folder_copy(char *path1, char *path2)
{
copy_aborted = false;
Expand Down Expand Up @@ -313,6 +314,7 @@ static int folder_copy(char *path1, char *path2)

return CELL_FS_SUCCEEDED;
}
#endif

#ifndef LITE_EDITION
static int del(const char *path, bool recursive)
Expand Down
86 changes: 51 additions & 35 deletions include/file_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ u32 _MAX_LINE_LEN = MAX_LINE_LEN;

#define _2MB_ 0x200000ULL

static void add_list_entry(char *tempstr, bool is_dir, char *ename, char *templn, char *name, char *fsize, CellRtcDateTime rDate, u16 flen, unsigned long long sz, char *sf, u8 is_net, u8 show_icon0, u8 is_ps3_http)
static void add_list_entry(char *tempstr, bool is_dir, char *ename, char *templn, char *name, char *fsize, CellRtcDateTime rDate, u16 flen, unsigned long long sz, char *sf, u8 is_net, u8 show_icon0, u8 is_ps3_http, u8 *has_img)
{
unsigned long long sbytes = sz; bool is_root = false;

Expand Down Expand Up @@ -38,6 +38,8 @@ static void add_list_entry(char *tempstr, bool is_dir, char *ename, char *templn
// is image?
u8 show_img = !is_ps3_http && (!is_dir && (!strcasecmp(ext, ".png") || !strcasecmp(ext, ".jpg") || !strcasecmp(ext, ".bmp")));

if(show_img) *has_img = true;

// build size column
if(is_dir)
{
Expand Down Expand Up @@ -73,7 +75,8 @@ static void add_list_entry(char *tempstr, bool is_dir, char *ename, char *templn
free_kb = (unsigned long long)(freeSize>>10),
devsize_mb = (unsigned long long)(devSize>>20);

sprintf(fsize, "<div style='height:18px;background:#121;text-align:left;'><div style='height:18px;background:#444;width:%i%%'></div><div style='position:relative;top:-18px;text-align:right'>"
// show graphic of device size & free space
sprintf(fsize, "<div class='bf' style='height:18px;text-align:left;'><div class='bu' style='height:18px;width:%i%%'></div><div style='position:relative;top:-18px;text-align:right'>"
"<a href=\"/mount.ps3%s\" title=\"%'llu %s (%'llu %s) / %'llu %s (%'llu %s)\">&nbsp; %'8llu %s &nbsp;</a>"
"</div></div>", (int)(100.0f * (float)(devSize - freeSize) / (float)devSize), templn, free_mb, STR_MBFREE, freeSize, STR_BYTE, devsize_mb, STR_MEGABYTE, devSize, STR_BYTE, (freeSize < _2MB_) ? free_kb : free_mb, (freeSize < _2MB_) ? STR_KILOBYTE : STR_MEGABYTE);
}
Expand Down Expand Up @@ -173,12 +176,12 @@ static void add_breadcrumb_trail(char *buffer, char *param)
{
u32 tlen = 0;

char swap[_MAX_PATH_LEN], templn[_MAX_PATH_LEN], url[_MAX_PATH_LEN];
char swap[_MAX_PATH_LEN], templn[_MAX_PATH_LEN], url[_MAX_PATH_LEN], *slash;

strcpy(templn, param);
while(strchr(templn+1, '/'))
while(slash = strchr(templn+1, '/'))
{
templn[strchr(templn+1, '/')-templn] = NULL;
slash[0] = NULL;
tlen+=strlen(templn)+1;

strcpy(swap, param);
Expand All @@ -204,6 +207,9 @@ static void add_breadcrumb_trail(char *buffer, char *param)
sprintf(swap, "<a href=\"%s%s\">%s</a>",
#ifdef FIX_GAME
islike(param, HDD0_GAME_DIR) ? "/fixgame.ps3" :
#endif
#ifdef PKG_HANDLER
!extcmp(param, ".pkg", 4) ? "/install.ps3" :
#endif
"/mount.ps3", url, label);
}
Expand Down Expand Up @@ -265,23 +271,13 @@ static bool folder_listing(char *buffer, u32 BUFFER_SIZE_HTML, char *templn, cha
BUFFER_SIZE_HTML -= _2KB_;

u8 jb_games = (!extcmp(param, "/GAMES", 6) || !extcmp(param, "/GAMEZ", 6));
u8 show_icon0 = false;
u8 has_img = false, show_icon0 = jb_games || ((strlen(param) >= 14) && (islike(param, "/dev_hdd0/game") || islike(param, "/dev_hdd0/home/")));

if(!is_ps3_http)
{
show_icon0 = jb_games || ((strlen(param) >= 14) && (islike(param, "/dev_hdd0/game") || islike(param, "/dev_hdd0/home/")));
sprintf(templn, "<img id=\"icon\"%s>"
"<script>"
// show icon of item pointed with mouse
"function s(o,d){icon.style.display='block';icon.src=o.href.replace('/delete.ps3','').replace('/cut.ps3','').replace('/cpy.ps3','')+((d)?'%s/ICON0.PNG':'');}%s"
"</script>", ICON_STYLE, (jb_games ? "/PS3_GAME" : ""),

// F2 = rename/move item pointed with mouse
islike(param, "/dev_") ?
"document.addEventListener('keyup',ku,false);"
"function rn(f){if(f.substring(0,5)=='/dev_'){f=unescape(f);t=prompt('Rename to:',f);if(t&&t!=f)window.location='/rename.ps3'+f+'|'+escape(t)}}"
"function ku(e){e=e||window.event;if(e.keyCode==113){var a=document.querySelectorAll('a:hover')[0].pathname;rn(a);}}" : ""); strcat(buffer, templn);
}
sprintf(templn, "<img id=\"icon\"%s>"
"<script>"
// show icon of item pointed with mouse
"function s(o,d){icon.style.display='block';icon.src=o.href.replace('/delete.ps3','').replace('/cut.ps3','').replace('/cpy.ps3','')+((d)?'%s/ICON0.PNG':'');}"
"</script>", ICON_STYLE, (jb_games ? "/PS3_GAME" : "")); strcat(buffer, templn);

strcat(buffer, "<table class=\"propfont\"><tr><td>");

Expand Down Expand Up @@ -353,7 +349,7 @@ static bool folder_listing(char *buffer, u32 BUFFER_SIZE_HTML, char *templn, cha

is_dir=dir_items[n].is_directory; if(is_dir) dirs++;

add_list_entry(tempstr, is_dir, ename, templn, dir_items[n].name, fsize, rDate, flen, sz, sf, true, show_icon0, is_ps3_http);
add_list_entry(tempstr, is_dir, ename, templn, dir_items[n].name, fsize, rDate, flen, sz, sf, true, show_icon0, is_ps3_http, &has_img);

flen = strlen(tempstr);
if((flen == 0) || (flen > _MAX_LINE_LEN)) continue; //ignore lines too long
Expand Down Expand Up @@ -429,7 +425,7 @@ static bool folder_listing(char *buffer, u32 BUFFER_SIZE_HTML, char *templn, cha

is_dir = (buf.st_mode & S_IFDIR); if(is_dir) dirs++;

add_list_entry(tempstr, is_dir, ename, templn, entry.d_name, fsize, rDate, flen, sz, sf, false, show_icon0, is_ps3_http);
add_list_entry(tempstr, is_dir, ename, templn, entry.d_name, fsize, rDate, flen, sz, sf, false, show_icon0, is_ps3_http, &has_img);

flen = strlen(tempstr);
if((flen == 0) || (flen > _MAX_LINE_LEN)) continue; //ignore lines too long
Expand Down Expand Up @@ -542,13 +538,37 @@ static bool folder_listing(char *buffer, u32 BUFFER_SIZE_HTML, char *templn, cha
sprintf(templn, "%s", wm_icons[5]); show_icon = true;
}

for(u16 m = idx; m < 7; m++) strcat(buffer, "<BR>");
if(has_img)
{
for(u16 m = idx; m < 7; m++) strcat(buffer, "<BR>");

if(show_icon || show_icon0)
{urlenc(swap, templn); sprintf(templn, "<script>icon.src=\"%s\"</script>", swap); strcat(buffer, templn);}
if(show_icon || show_icon0)
{urlenc(swap, templn); sprintf(templn, "<script>icon.src=\"%s\"</script>", swap); strcat(buffer, templn);}
}
}
///////////

#ifdef EMBED_JS
sprintf(tempstr, // popup menu
"<div id='mnu' style='position:fixed;width:140px;background:#333;display:none;padding:5px;'>"
"<a id='m1'>%s<br></a><a id='m2'>%s</a><hr><a id='m3'>%s</a><a href=\"javascript:t=prompt('%s',window.location.pathname);if(t.indexOf('/dev_')==0)window.location='/mkdir.ps3'+t\">%s</a><hr><a id='m4'>%s<br></a><a id='m5'>%s<br></a><a id='m6'>%s</a><hr><a id='m7'>%s<br></a><a id='m8'>%s</a></div>"
"<script>var s,m;window.addEventListener('contextmenu',function(e){if(s)s.color='#ccc';t=e.target,s=t.style,c=t.className,m=mnu.style,p=t.pathname;if(c=='w'||c=='d'){e.preventDefault();s.color='#fff';m.display='block';m.left=(e.clientX+12)+'px';y=e.clientY;w=window.innerHeight;m.top=(((y+220)<w)?(y+12):(w-220))+'px';m1.href='/mount.ps3'+p;m1.style.display=(p.toLowerCase().indexOf('.iso')>0||c=='d')?'block':'none';m2.href=p;m2.text=(c=='w')?'Download':'Open';m3.href='/delete.ps3'+p;m4.href='/cut.ps3'+p;m5.href='/cpy.ps3'+p;m6.href='/paste.ps3'+window.location.pathname;m7.href='javascript:rn(\"'+p+'\")';m7.style.display=(p.substring(0,5)=='/dev_')?'block':'none';m8.href='/copy.ps3'+p}},false);window.onclick=function(e){if(m)m.display='none';}"

// F2 = rename/move item pointed with mouse
"document.addEventListener('keyup',ku,false);"
"function rn(f){if(f.substring(0,5)=='/dev_'){f=unescape(f);t=prompt('Rename to:',f);if(t&&t!=f)window.location='/rename.ps3'+f+'|'+escape(t)}}"
"function ku(e){e=e||window.event;if(e.keyCode==113){var a=document.querySelectorAll('a:hover')[0].pathname;rn(a);}}"

"</script>",
"Mount", "Open", "Delete", "New Folder", "New Folder", "Cut", "Copy", "Paste", "Rename", "Copy To"); strcat(buffer, tempstr);
#else
// add fm.js script
if(file_exists(FM_SCRIPT_JS))
{
sprintf(templn, SCRIPT_SRC_FMT, FM_SCRIPT_JS); strcat(buffer, templn);
}
#endif

// show last mounted game
memset(tempstr, 0, _4KB_); memset(templn, 0, _MAX_PATH_LEN);
if(effective_disctype != DISC_TYPE_NONE && !strcmp(param, "/dev_bdvd") && file_exists(WMTMP "/last_game.txt"))
Expand All @@ -565,8 +585,8 @@ static bool folder_listing(char *buffer, u32 BUFFER_SIZE_HTML, char *templn, cha
}

///////////
if(strchr(param + 1, '/'))
param[strchr(param + 1, '/')-param] = NULL;
char *slash = strchr(param + 1, '/');
if(slash) slash[0] = NULL;

if(param[1] == 'n')
sprintf(templn, "<hr>"
Expand All @@ -581,17 +601,13 @@ static bool folder_listing(char *buffer, u32 BUFFER_SIZE_HTML, char *templn, cha
param, param, (int)((blockSize*freeSize)>>20), STR_MBFREE);
}

// popup menu
sprintf(templn, "<div id='mnu' style='position:fixed;width:140px;background:#555;display:none;padding:5px;'>"
"<a id='m1'>%s</a><a id='m2'>%s</a><hr><a id='m3'>%s</a><hr><a id='m4'>%s</a><br><a id='m5'>%s</a><br><a id='m6'>%s</a><hr><a id='m7'>%s</a><br><a id='m8'>%s</a></div>"
"<script>var s,m;window.addEventListener('contextmenu',function(e){if(s)s.color='#ccc';t=e.target,s=t.style,c=t.className,m=mnu.style,p=t.pathname;if(c=='w'||c=='d'){e.preventDefault();s.color='#fff';m.display='block';m.left=(e.clientX+12)+'px';m.top=(e.clientY+12)+'px';m1.href='/mount.ps3'+p;m1.style.display=(p.toLowerCase().indexOf('.iso')>=0||c=='d')?'block':'none';m2.href=p;m3.href='/delete.ps3'+p;m4.href='/cut.ps3'+p;m5.href='/cpy.ps3'+p;m6.href='/paste.ps3'+window.location.pathname;m7.href='javascript:rn(\"'+t.pathname+'\")';m8.href='/copy.ps3'+p}},false);window.onclick=function(e){if(m)m.display='none';}</script>",
"Mount", "Open", "Delete", "Cut", "Copy", "Paste", "Rename", "Copy To"); strcat(buffer, templn);
strcat(buffer, templn);

// summary
sprintf(templn, "</b> &nbsp; <font color=\"#707070\">%'i Dir(s) %'d %s %'d %s</font>%s",
MAX(dirs - 1, 0), (idx-dirs), STR_FILES,
dir_size<(_1MB_)?(int)(dir_size>>10):(int)(dir_size>>20),
dir_size<(_1MB_)?STR_KILOBYTE:STR_MEGABYTE, tempstr);
dir_size<(_1MB_) ? (int)(dir_size>>10):(int)(dir_size>>20),
dir_size<(_1MB_) ? STR_KILOBYTE:STR_MEGABYTE, tempstr);

strcat(buffer, templn);
///////////
Expand Down
Loading

0 comments on commit 3cd727e

Please sign in to comment.