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
<?php | |
system('clear'); | |
ini_set('auto_detect_line_endings', TRUE); | |
$fin = fopen('en.po', 'r'); | |
$change = 0; | |
while(!feof($fin)){ | |
$line = trim(fgets($fin)); |
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
<?php | |
$referrer = $this->getRequest()->getServer('HTTP_REFERER'); | |
$request = new Zend_Controller_Request_Http($referrer); | |
$router = clone $this->getFrontController()->getRouter(); | |
$router->route($request); | |
$routeName = $router->getCurrentRouteName(); |
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
<?php | |
function pc_array_power_set($array, $limit){ | |
$subset = array(); | |
$results = array(array()); | |
foreach ($array as $element){ | |
foreach ($results as $combination){ | |
$result = array_merge(array($element), $combination); | |
array_push($results, $result); |