-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from nguyenanhung/develop
Add test
- Loading branch information
Showing
5 changed files
with
43 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#### Munee .htaccess Code Start #### | ||
RewriteRule ^(.*\.(?:css|less|scss|js|coffee|jpg|png|gif|jpeg))$ assets.php?files=/$1 [L,QSA,NC] | ||
#### Munee .htaccess Code End #### |
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,22 @@ | ||
<?php | ||
/** | ||
* Project assets. | ||
* Created by PhpStorm. | ||
* User: 713uk13m <[email protected]> | ||
* Date: 11/4/18 | ||
* Time: 01:17 | ||
*/ | ||
define('WEBROOT', __DIR__); | ||
define('MUNEE_CACHE', __DIR__ . '/storage/tmp'); | ||
require_once __DIR__ . '/vendor/autoload.php'; | ||
|
||
// Echo out the response | ||
echo \Munee\Dispatcher::run( | ||
new \Munee\Request( | ||
array( | ||
'image' => array( | ||
'checkReferrer' => FALSE | ||
) | ||
) | ||
) | ||
); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Title</title> | ||
</head> | ||
<body> | ||
<img src="/resource/1-427x282.jpg?resize=width[100]-height[50]"> | ||
</body> | ||
</html> |
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,8 @@ | ||
<?php | ||
/** | ||
* Project assets. | ||
* Created by PhpStorm. | ||
* User: 713uk13m <[email protected]> | ||
* Date: 11/4/18 | ||
* Time: 01:21 | ||
*/ |