mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 05:39:58 +09:00
merged 1.5.0 branch into 1.5.0-DB
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8547 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4973c78fbc
commit
01d0925dd5
145 changed files with 990 additions and 31147 deletions
|
|
@ -820,6 +820,14 @@
|
|||
return $url;
|
||||
}
|
||||
|
||||
/**
|
||||
* return the requested script path
|
||||
**/
|
||||
function getRequestUriByServerEnviroment()
|
||||
{
|
||||
return $_SERVER['REQUEST_URI'];
|
||||
}
|
||||
|
||||
/**
|
||||
* php unescape function of javascript's escape
|
||||
* Function converts an Javascript escaped string back into a string with specified charset (default is UTF-8).
|
||||
|
|
@ -972,4 +980,21 @@
|
|||
}
|
||||
}
|
||||
|
||||
function alertScript($msg)
|
||||
{
|
||||
if(!$msg) return;
|
||||
echo '<script type="text/javascript">alert("'.$msg.'");</script>';
|
||||
}
|
||||
|
||||
function closePopupScript()
|
||||
{
|
||||
echo '<script type="text/javascript">window.close();</script>';
|
||||
}
|
||||
|
||||
function reload($isOpener = false)
|
||||
{
|
||||
$reloadScript = $isOpener ? 'window.opener.location.reload()' : 'document.location.reload()';
|
||||
|
||||
echo '<script type="text/javascript">'.$reloadScript.'</script>';
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue