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
# config/routes.rb | |
Demo::Application.routes.draw do | |
devise_for :users | |
root :to => "map#index" | |
end | |
# rake routes | |
(in /home/kir/rails/demo) | |
new_user_session GET /users/sign_in(.:format) {:action=>"new", :controller=>"devise/sessions"} | |
user_session POST /users/sign_in(.:format) {:action=>"create", :controller=>"devise/sessions"} |
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
require File.expand_path('../config/application', __FILE__) | |
require 'rake' | |
Dpp::Application.load_tasks | |
module ::Dpp | |
class Application | |
include Rake::DSL | |
end | |
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
<?php | |
class PayController extends Controller | |
{ | |
public function actionIndex() | |
{ | |
$this->render('about',array()); | |
} | |
public function actionForm() |
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
<html> | |
<head> | |
<meta http-equiv="Content-type" Content="text/html; charset=windows-1251"> | |
</head> | |
<script language="JScript.Encode" src="../../js/global.js"></script> | |
<script language = JScript.Encode>#@~^WBoAAA==@#@&d-mD,HrG2djP{P,Tp@#@&77lD,(1wrP{~`8p@#@&@#@&H69ASj$t6fASj ^+xLO4T~',`bNlyvF,&l~slBt&~&c vS0)BAfvE~w=vf 8BBXr)q1O*S:bl,BXdl8,,1Ss/l%BO0)vêàáðèîëåòE~9)ByB,Nitr92d?,\}f2djR^+xTO4T,', rNl++G1cZS:=B\f,&R+vB3lBAf+BSa)E& 8BBzk=F1,l~hr=,~Hd)8,,OSh/=cBYV)vêóïåvBNlByvP)i\6G2Sj,tr92djcVn oDtT,',`k9)+vF,{B:)E\&,&RyvS3=BA&BS2=Bf 8v~HklqO,*Shb)1~Hd=F1OGB:/=F8SY0)vñåäàíBBNlvWBP)IH}f2dj,H}fASjRsn oOtY~', r[= v1XZ S:=vt&~2RyB~0)E3c+BSw=Bf*2B~Hr)y!!ZShk=FZ~z/l+Z!~sd)O~OV=BêóïåBS[=B+B,NpH6G2d?$trG3SURs+ oO4YP',`k9) FT1!y~s)vHf~2R+BBV)E2*E~wlv2cfBBzb)+Z!8~:b)WSXk)+!ZvShk),BO3=BêàáðèîëåòBB[lByB,8IH69ASj$t6fASj ^+xLO4T~',`bNlyGW&v+~slBt&~ZUSvS0)BA*vE~w=vfvZBBXr)+TZ&S:bl*BXdly!!fSs/lFySD3lEêóïåBBN)E E~8pH6fASj,trfAJ?cV+ LOtYP{P`k[ly%{vlT~s)v\2Pc TE~V)E3O!vBw=Bcy!ESXb)+!ZGShb)FZSXk)x!ss~s/=x;VsSD3lBñåäàíESN=B*v,8i |
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
upstream example_backend { | |
server unix:/var/www/example.com/shared/unicorn.sock; | |
} | |
server { | |
listen 80; | |
server_name example.com www.example.com; | |
access_log off; | |
error_log off; | |
client_max_body_size 20M; |
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
index test | |
{ | |
# your config | |
charset_table = 0..9, A..Z->a..z, _, a..z, a..z, \ | |
U+e1->a, U+c1->a, U+10d->c, U+10c->c, U+10f->d, U+10e->d, \ | |
U+0e9->e, U+0c9->e, U+11b->e, U+11a->e, U+0ed->i, U+0cd->i, \ | |
U+148->n, U+147->n, U+f3->o, U+d3->o, U+159->r, U+158->r, \ | |
U+161->s, U+160->s, U+165->t, U+164->t, U+fa->u, U+da->u, \ | |
U+16f->u, U+16e->u, U+fd->y, U+dd->y, U+17e->z, U+17d->z | |
} |
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
<div class="b-form"> | |
<?php $form=$this->beginWidget('CActiveForm', array( | |
'id'=>'book-form', | |
'enableAjaxValidation'=>false, | |
)); ?> | |
<div class="b-form-row"> | |
<?php echo $form->labelEx($model,'title', array('label'=>$model->getAttributeLabel('title').':')); ?> | |
<?php echo $form->textField($model,'title',array('maxlength'=>255)); ?> |
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
# this rewrites all the requests to the maintenance.html | |
# page if it exists in the doc root. This is for capistrano's | |
# disable web task | |
if (-f $document_root/system/maintenance.html) { | |
rewrite ^(.*)$ /system/maintenance.html last; | |
break; | |
} |
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
public function actionRegistr() | |
{ | |
$form = new RegistrForm; | |
if (!Yii::app()->user->isGuest) { | |
throw new CException('Вы уже зарегистрированны!'); | |
} else { | |
if (isset($_POST['RegistrForm'])) { | |
$form->attributes = $_POST['RegistrForm']; |
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 | |
public function actionCreate() | |
{ | |
$model=new User; | |
// Uncomment the following line if AJAX validation is needed | |
// $this->performAjaxValidation($model); | |
if(isset($_POST['User'])) | |
{ |
OlderNewer