-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Major changes in source code structure - Fixed various regressions - Fixed errors in help file (issue #633)
- Loading branch information
1 parent
48a17f8
commit cd40f3c
Showing
120 changed files
with
4,670 additions
and
5,940 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-151 Bytes
(100%)
_Projects_/updater/pkgfiles/USRDIR/webftp_server_full.sprx
Binary file not shown.
Binary file modified
BIN
+153 Bytes
(100%)
_Projects_/updater/pkgfiles/USRDIR/webftp_server_lite.sprx
Binary file not shown.
Binary file modified
BIN
+22 Bytes
(100%)
_Projects_/updater/pkgfiles/USRDIR/webftp_server_noncobra.sprx
Binary file not shown.
Binary file modified
BIN
+42 Bytes
(100%)
_Projects_/updater/pkgfiles/USRDIR/webftp_server_rebug_cobra_ps3mapi.sprx
Binary file not shown.
Binary file modified
BIN
-151 Bytes
(100%)
_Projects_/updater/update/dev_hdd0/plugins/webftp_server.sprx
Binary file not shown.
Binary file modified
BIN
+22 Bytes
(100%)
_Projects_/updater/update/dev_hdd0/plugins/webftp_server_noncobra.sprx
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
_Projects_/updater/update/dev_hdd0/xmlhost/game_plugin/help.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#if defined(FIX_GAME) || defined(COPY_PS3) | ||
if(strstr(param, ".ps3$abort")) | ||
{ | ||
// /copy.ps3$abort | ||
// /fixgame.ps3$abort | ||
do_restart = false; | ||
|
||
if(copy_in_progress) {copy_aborted = true; vshNotify_WithIcon(ICON_EXCLAMATION, STR_CPYABORT);} // /copy.ps3$abort | ||
#ifdef FIX_GAME | ||
if(fix_in_progress) {fix_aborted = true; vshNotify_WithIcon(ICON_EXCLAMATION, "Fix aborted!");} // /fixgame.ps3$abort | ||
#endif | ||
|
||
strcpy(param, "/"); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifdef SYS_ADMIN_MODE | ||
if(islike(param, "/admin.ps3")) | ||
{ | ||
// /admin.ps3? show status | ||
// /admin.ps3?enable&pwd=<password> enable admin mode | ||
// /admin.ps3?disable disable admin mode | ||
// /admin.ps3?0 disable admin mode | ||
|
||
if(param[10] == 0 || param[11] == 0) ; else // show status | ||
if(~param[11] & 1) sys_admin = 0; else // set user mode | ||
{ | ||
sys_admin = check_password(param); // set admin mode (if password is ok) | ||
} | ||
|
||
sprintf(param, "ADMIN %s", sys_admin ? STR_ENABLED : STR_DISABLED); | ||
|
||
if(!mc) keep_alive = http_response(conn_s, header, param, CODE_RETURN_TO_ROOT, param); | ||
|
||
goto exit_handleclient_www; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifdef WEB_CHAT | ||
if(islike(param, "/chat.ps3")) | ||
{ | ||
// /chat.ps3 webchat | ||
|
||
is_popup = 1; | ||
goto html_response; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifdef SPOOF_CONSOLEID | ||
bool is_psid = islike(param, "/psid.ps3"); | ||
bool is_idps = islike(param, "/idps.ps3"); | ||
|
||
if(islike(param, "/consoleid.ps3")) is_psid = is_idps = true; | ||
|
||
if(is_psid | is_idps) | ||
{ | ||
// /idps.ps3 copy idps & act.dat (current user) to /dev_usb000 or /dev_hdd0 | ||
// /idps.ps3<path> copy idps to <path> (binary file) | ||
// /psid.ps3 copy psid & act.dat (current user) to /dev_usb000 or /dev_hdd0 | ||
// /psid.ps3<path> copy psid to <path> (binary file) | ||
// /consoleid.ps3 copy psid, idps & act.dat (current user) to /dev_usb000 or /dev_hdd0 | ||
|
||
save_idps_psid(is_psid, is_idps, header, param); | ||
|
||
keep_alive = http_response(conn_s, header, param, CODE_HTTP_OK, param); | ||
goto exit_handleclient_www; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
if(islike(param, "/cpursx_ps3")) | ||
{ | ||
char *cpursx = header, *buffer = param; get_cpursx(cpursx); | ||
/* // prevents flickering but cause error 80710336 in ps3 browser (silk mode) | ||
sprintf(buffer, "<meta http-equiv=\"refresh\" content=\"15;URL=%s\">" | ||
"<script>parent.document.getElementById('lbl_cpursx').innerHTML = \"%s\";</script>", | ||
"/cpursx_ps3", cpursx); | ||
*/ | ||
int buf_len = sprintf(buffer, "<meta http-equiv=\"refresh\" content=\"15;URL=%s\">" | ||
"%s" | ||
"<a href=\"%s\" target=\"_parent\" style=\"text-decoration:none;\">" | ||
"<font color=\"#fff\">%s</a>", | ||
"/cpursx_ps3", HTML_BODY, "/cpursx.ps3", cpursx); | ||
buf_len = sprintf(header, HTML_RESPONSE_FMT, | ||
CODE_HTTP_OK, "/cpursx_ps3", HTML_HEADER, buffer, HTML_BODY_END); | ||
|
||
send(conn_s, header, buf_len, 0); keep_alive = 0; | ||
|
||
goto exit_handleclient_www; | ||
} | ||
else if(islike(param, "/tempc.html") || islike(param, "/tempf.html")) | ||
{ | ||
u8 t1 = 0, t2 = 0; | ||
get_temperature(0, &t1); // CPU // 3E030000 -> 3E.03°C -> 62.(03/256)°C | ||
get_temperature(1, &t2); // RSX | ||
|
||
u8 st, mode, unknown; | ||
sys_sm_get_fan_policy(0, &st, &mode, &fan_speed, &unknown); | ||
|
||
sprintf(header, "function setGaugeValues(){" | ||
"cpu=%i;" | ||
"rsx=%i;" | ||
"fan=%i;" | ||
"}", t1, t2, fan_speed * 100 / 255); | ||
|
||
save_file(HTML_BASE_PATH "/temp.js", header, SAVE_ALL); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
if(islike(param, "/cpy.ps3") || islike(param, "/cut.ps3")) | ||
{ | ||
// /cpy.ps3<path> stores <path> in <cp_path> clipboard buffer for copy with /paste.ps3 (cp_mode = 1) | ||
// /cut.ps3<path> stores <path> in <cp_path> clipboard buffer for move with /paste.ps3 (cp_mode = 2) | ||
|
||
cp_mode = islike(param, "/cut.ps3") ? CP_MODE_MOVE : CP_MODE_COPY; | ||
snprintf(cp_path, STD_PATH_LEN, "%s", param + 8); | ||
check_path_alias(cp_path); | ||
if(not_exists(cp_path)) cp_mode = CP_MODE_NONE; | ||
|
||
strcpy(param, cp_path); remove_filename(param); | ||
|
||
is_binary = FOLDER_LISTING; | ||
goto html_response; | ||
} | ||
else | ||
if(islike(param, "/paste.ps3")) | ||
{ | ||
// /paste.ps3<path> performs a copy or move of path stored in <cp_path clipboard> to <path> indicated in url | ||
|
||
#define PASTE_CMD 10 | ||
|
||
char *source = header, *dest = cp_path; | ||
if(file_exists(cp_path)) | ||
{ | ||
sprintf(source, "/copy.ps3%s", cp_path); | ||
strcpy(dest, param + PASTE_CMD); | ||
strcpy(param, source); strcat(dest, get_filename(param)); | ||
is_binary = WEB_COMMAND; | ||
goto html_response; | ||
} | ||
else | ||
if(!mc) {keep_alive = http_response(conn_s, header, "/", CODE_GOBACK, HTML_REDIRECT_TO_BACK); goto exit_handleclient_www;} | ||
} |
Oops, something went wrong.