RailsEnv production
<VirtualHost *:80>
ServerAdmin admin@example.com
Servername example.com
DocumentRoot /var/www/html/
PassengerUser redmine
<Location /redmine>
RailsEnv production
RackBaseURI /redmine
Options -MultiViews
</Location>
</VirtualHost>
$url = 't.co/MCmDluFvEU';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
$html = curl_exec($ch);
curl_close($ch);
preg_match('/replace\(\"(.*)\"\)/i', $html, $matches);
$link = '';
if(isset($matches[1])){
$link = stripcslashes($matches[1]);
}
Model_Register();
$user = new Model_User();
$user->email = $email;
$user->username = $name;
$user->phone = $phone;
$user->password = $password;
$user->save();
$limit = DB::select('per_page_block1')->from('settings')->limit(1)->execute()->get('per_page_block1', 10);
$this->template->categories = $data;
$this->template->block_1 = ORM::factory('news')->where('status', '=',
1)->order_by('id', 'DESC')->and_where('block1', '=',
1)->limit($limit)->find_all();
Settings::get('page_limit',10)