This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>MooTools with animate.css</title> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.min.css" /> | |
</head> | |
<body> | |
<span id="animationSandbox" style="display: block;"><h1 class="site__title mega">Animate.css</h1></span> | |
<div class="wrap"> |
This file contains hidden or 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
http://openweathermap.org/api // This is a free weather service api very usefull |
This file contains hidden or 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
/* | |
* | |
* Put this into any test controller and test action | |
* | |
*/ | |
$auth = Engine_Api::_()->authorization()->context;//Get Allow DB Table | |
foreach (Engine_Api::_()->getDbtable('groups', 'group')->fetchAll() as $group) ://Fetch All Groups | |
$auth->setAllowed($group, 'registered', 'comment');//This set disallow registered members to post to group | |
$auth->setAllowed($group, 'registered', 'photo');//This set disallow registered members to create any event |
This file contains hidden or 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
<?php | |
/* | |
* @source http://stackoverflow.com/questions/15769732/write-to-php-output-buffer-and-then-download-csv-from-buffer | |
*/ | |
$basic_info = fopen("php://output", 'w'); //Open output buffer to write | |
$content = file_get_contents(__FILE__); //Read the current file | |
fwrite($basic_info, $content); //Write to output buffer | |
fclose($basic_info); // Close the context | |
header("Content-disposition: attachment; filename=index.php"); |
NewerOlder