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 | |
return array( | |
'basePath' => dirname(__FILE__) . DS . '..' , | |
'language' => 'fa' , | |
'theme' => 'dream' , | |
'name' => 'پرشین مگز', | |
'import' => array( | |
'application.controllers.*', | |
'application.models.*', |
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
var http = require('http'); | |
var path = require('path'); | |
var fs = require('fs'); | |
//var stream = require('stream'); | |
http.createServer(function (req, res) { | |
var filename = [__dirname, 'file.mp3'].join(path.sep); | |
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
var http = require('http'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var stream = require('stream'); | |
http.createServer(function (req, res) { | |
//res.writeHead(200, {'Content-Type': 'text/plain'}); | |
var filename = [__dirname, 'file.mp3'].join(path.sep); |
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 | |
$params = array_merge( | |
require(__DIR__ . '/../../common/config/params.php'), | |
require(__DIR__ . '/../../common/config/params-local.php'), | |
require(__DIR__ . '/params.php'), | |
require(__DIR__ . '/params-local.php') | |
); | |
return [ | |
'id' => 'app-frontend', |
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 | |
$params = array_merge( | |
require(__DIR__ . '/../../common/config/params.php'), | |
require(__DIR__ . '/../../common/config/params-local.php'), | |
require(__DIR__ . '/params.php'), | |
require(__DIR__ . '/params-local.php') | |
); | |
return [ | |
'id' => 'app-frontend', |
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 | |
class Cipher extends CApplicationComponent{ | |
private $securekey, $iv; | |
public function init(){ | |
$this->securekey = hash('sha256', 'SADFo92j!!zVnz@Sj!39IU%YGvi^6eL8&v6*Rv(JH8)Cytuiouh547vCytdyUFl76R', true); | |
$this->iv = mcrypt_create_iv(32); | |
} |
NewerOlder