Update copyright notice
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -33,7 +37,7 @@ class ApplicationController < ActionController::Base
|
|||||||
# Acesso negado
|
# Acesso negado
|
||||||
if exception.is_a?(AccessDenied)
|
if exception.is_a?(AccessDenied)
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html {
|
||||||
if logged_in?
|
if logged_in?
|
||||||
render :file => "#{Rails.root}/public/401.html", :status => 401
|
render :file => "#{Rails.root}/public/401.html", :status => 401
|
||||||
else
|
else
|
||||||
@@ -66,7 +70,7 @@ class ApplicationController < ActionController::Base
|
|||||||
#def set_timezone
|
#def set_timezone
|
||||||
# #Time.zone = session[:user].tz
|
# #Time.zone = session[:user].tz
|
||||||
# Time.zone = "America/Fortaleza"
|
# Time.zone = "America/Fortaleza"
|
||||||
#end
|
#end
|
||||||
|
|
||||||
def startup
|
def startup
|
||||||
if session[:user_id]
|
if session[:user_id]
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -23,7 +27,7 @@ class AttachmentsController < ApplicationController
|
|||||||
#after_filter :cache_sweep, :only => [ :create, :update, :destroy ]
|
#after_filter :cache_sweep, :only => [ :create, :update, :destroy ]
|
||||||
|
|
||||||
before_filter :find_attachment
|
before_filter :find_attachment
|
||||||
|
|
||||||
def show
|
def show
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
@@ -89,7 +93,7 @@ class AttachmentsController < ApplicationController
|
|||||||
|
|
||||||
log = AttachmentDeleteLogEntry.create!(:target_id => @attachment.id, :user => @current_user, :course => @course)
|
log = AttachmentDeleteLogEntry.create!(:target_id => @attachment.id, :user => @current_user, :course => @course)
|
||||||
flash[:undo] = undo_course_log_url(@course, log)
|
flash[:undo] = undo_course_log_url(@course, log)
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to course_url(@course) }
|
format.html { redirect_to course_url(@course) }
|
||||||
format.xml { head :ok }
|
format.xml { head :ok }
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -25,7 +29,7 @@ class LogController < ApplicationController
|
|||||||
else
|
else
|
||||||
@log_entries = LogEntry.paginate(:page => params[:page], :per_page => 30,
|
@log_entries = LogEntry.paginate(:page => params[:page], :per_page => 30,
|
||||||
:conditions => [ "course_id not in (select id from courses where hidden = ?)", true],
|
:conditions => [ "course_id not in (select id from courses where hidden = ?)", true],
|
||||||
:order => "created_at desc")
|
:order => "created_at desc")
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
@@ -41,10 +45,10 @@ class LogController < ApplicationController
|
|||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html do
|
format.html do
|
||||||
redirect_to course_event_url(@log_entry.course, @log_entry.target_id) if @log_entry.kind_of?(EventDeleteLogEntry)
|
redirect_to course_event_url(@log_entry.course, @log_entry.target_id) if @log_entry.kind_of?(EventDeleteLogEntry)
|
||||||
redirect_to course_attachment_url(@log_entry.course, @log_entry.target_id) if @log_entry.kind_of?(AttachmentDeleteLogEntry)
|
redirect_to course_attachment_url(@log_entry.course, @log_entry.target_id) if @log_entry.kind_of?(AttachmentDeleteLogEntry)
|
||||||
redirect_to course_news_instance_url(@log_entry.course, @log_entry.target_id) if @log_entry.kind_of?(NewsDeleteLogEntry)
|
redirect_to course_news_instance_url(@log_entry.course, @log_entry.target_id) if @log_entry.kind_of?(NewsDeleteLogEntry)
|
||||||
redirect_to course_wiki_instance_url(@log_entry.course, @log_entry.target_id) if @log_entry.kind_of?(WikiDeleteLogEntry)
|
redirect_to course_wiki_instance_url(@log_entry.course, @log_entry.target_id) if @log_entry.kind_of?(WikiDeleteLogEntry)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -36,7 +40,7 @@ class UsersController < ApplicationController
|
|||||||
format.xml { render :xml => @user }
|
format.xml { render :xml => @user }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -116,7 +120,7 @@ class UsersController < ApplicationController
|
|||||||
def dashboard
|
def dashboard
|
||||||
@news = []
|
@news = []
|
||||||
@events = []
|
@events = []
|
||||||
|
|
||||||
if params[:secret]
|
if params[:secret]
|
||||||
@user = User.find_by_secret(params[:secret])
|
@user = User.find_by_secret(params[:secret])
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -27,7 +31,7 @@ module ApplicationHelper
|
|||||||
time_at
|
time_at
|
||||||
end
|
end
|
||||||
|
|
||||||
FLASH_NAMES = [:notice, :warning, :message]
|
FLASH_NAMES = [:notice, :warning, :message]
|
||||||
|
|
||||||
def flash_div
|
def flash_div
|
||||||
output = ""
|
output = ""
|
||||||
@@ -58,7 +62,7 @@ module ApplicationHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def highlight(name)
|
def highlight(name)
|
||||||
return {:class => 'highlight'} if (flash[:highlight] == name)
|
return {:class => 'highlight'} if (flash[:highlight] == name)
|
||||||
return {}
|
return {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -21,7 +25,7 @@ module AttachmentsHelper
|
|||||||
paths = atts.collect { |item| item.path.nil? ? [] : item.path.split("/") }
|
paths = atts.collect { |item| item.path.nil? ? [] : item.path.split("/") }
|
||||||
return nest_path(atts, paths, 0, paths.size-1, 0)
|
return nest_path(atts, paths, 0, paths.size-1, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
def nest_path(items, paths, from, to, level)
|
def nest_path(items, paths, from, to, level)
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
@@ -54,7 +58,7 @@ module AttachmentsHelper
|
|||||||
def nested_attachments_to_html(atts, level=0)
|
def nested_attachments_to_html(atts, level=0)
|
||||||
out = (level > 0 ? "<ul class='nested' style='display: none'>" : "<ul>")
|
out = (level > 0 ? "<ul class='nested' style='display: none'>" : "<ul>")
|
||||||
keys = atts.keys.sort
|
keys = atts.keys.sort
|
||||||
|
|
||||||
for att in atts['/'] do
|
for att in atts['/'] do
|
||||||
out = out + "<li class='#{mime_class(att.content_type)}'>#{link_to h(att.file_name), course_attachment_url(@course, att)}</li>"
|
out = out + "<li class='#{mime_class(att.content_type)}'>#{link_to h(att.file_name), course_attachment_url(@course, att)}</li>"
|
||||||
end if atts['/']
|
end if atts['/']
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -27,7 +31,7 @@ module CoursesHelper
|
|||||||
"application/postscript",
|
"application/postscript",
|
||||||
"application/msword"
|
"application/msword"
|
||||||
return "mime_document"
|
return "mime_document"
|
||||||
|
|
||||||
when "application/pdf"
|
when "application/pdf"
|
||||||
return "mime_document"
|
return "mime_document"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -23,7 +27,7 @@ module StylesheetsHelper
|
|||||||
return true if name == 'mozilla' && browser_name == 'gecko'
|
return true if name == 'mozilla' && browser_name == 'gecko'
|
||||||
return true if name == 'ie' && browser_name.index('ie')
|
return true if name == 'ie' && browser_name.index('ie')
|
||||||
return true if name == 'webkit' && browser_name == 'safari'
|
return true if name == 'webkit' && browser_name == 'safari'
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def browser_name
|
def browser_name
|
||||||
@@ -31,11 +35,11 @@ module StylesheetsHelper
|
|||||||
ua = request.env['HTTP_USER_AGENT'].downcase
|
ua = request.env['HTTP_USER_AGENT'].downcase
|
||||||
if ua.index('msie') && !ua.index('opera') && !ua.index('webtv')
|
if ua.index('msie') && !ua.index('opera') && !ua.index('webtv')
|
||||||
'ie'+ua[ua.index('msie')+5].chr
|
'ie'+ua[ua.index('msie')+5].chr
|
||||||
elsif ua.index('gecko/')
|
elsif ua.index('gecko/')
|
||||||
'gecko'
|
'gecko'
|
||||||
elsif ua.index('opera')
|
elsif ua.index('opera')
|
||||||
'opera'
|
'opera'
|
||||||
elsif ua.index('konqueror')
|
elsif ua.index('konqueror')
|
||||||
'konqueror'
|
'konqueror'
|
||||||
elsif ua.index('applewebkit/')
|
elsif ua.index('applewebkit/')
|
||||||
'safari'
|
'safari'
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -55,7 +59,7 @@ module WikiHelper
|
|||||||
" #{line[1..-1]} </td></td>"
|
" #{line[1..-1]} </td></td>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return "<table class='diff'>#{result}</table>"
|
return "<table class='diff'>#{result}</table>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -16,11 +20,11 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
class Event < ActiveRecord::Base
|
class Event < ActiveRecord::Base
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
acts_as_paranoid
|
acts_as_paranoid
|
||||||
acts_as_versioned :if_changed => [ :title, :description, :time ]
|
acts_as_versioned :if_changed => [ :title, :description, :time ]
|
||||||
|
|
||||||
#acts_as_paranoid_versioned
|
#acts_as_paranoid_versioned
|
||||||
self.versioned_class.class_eval do
|
self.versioned_class.class_eval do
|
||||||
def self.delete_all(conditions = nil); return; end
|
def self.delete_all(conditions = nil); return; end
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -38,4 +42,3 @@ end
|
|||||||
|
|
||||||
class WikiCreateLogEntry < WikiLogEntry; end
|
class WikiCreateLogEntry < WikiLogEntry; end
|
||||||
class WikiRestoreLogEntry < WikiLogEntry; end
|
class WikiRestoreLogEntry < WikiLogEntry; end
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -46,7 +50,7 @@ class User < ActiveRecord::Base
|
|||||||
def User.find_by_login_and_pass(login, pass)
|
def User.find_by_login_and_pass(login, pass)
|
||||||
user = find(:first, :conditions => [ "login = ?", login ])
|
user = find(:first, :conditions => [ "login = ?", login ])
|
||||||
return (!user.nil? and User.encrypt(pass, user.salt) == user.hashed_password) ? user : nil
|
return (!user.nil? and User.encrypt(pass, user.salt) == user.hashed_password) ? user : nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_xml(options = {})
|
def to_xml(options = {})
|
||||||
options[:indent] ||= 2
|
options[:indent] ||= 2
|
||||||
@@ -73,7 +77,7 @@ class User < ActiveRecord::Base
|
|||||||
def reset_login_key
|
def reset_login_key
|
||||||
self.login_key = Digest::SHA1.hexdigest(Time.now.to_s + password.to_s + rand(123456789).to_s).to_s
|
self.login_key = Digest::SHA1.hexdigest(Time.now.to_s + password.to_s + rand(123456789).to_s).to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
def reset_login_key!
|
def reset_login_key!
|
||||||
reset_login_key
|
reset_login_key
|
||||||
save!
|
save!
|
||||||
@@ -92,11 +96,11 @@ class User < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
if !@password.blank?
|
if !@password.blank?
|
||||||
errors.add(:password_confirmation) if @password_confirmation.blank? or @password != @password_confirmation
|
errors.add(:password_confirmation) if @password_confirmation.blank? or @password != @password_confirmation
|
||||||
errors.add(:password, 'é muito curta') if !(5..40).include?(@password.length)
|
errors.add(:password, 'é muito curta') if !(5..40).include?(@password.length)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def before_save
|
def before_save
|
||||||
self.salt = User.random_string(10) if !self.salt?
|
self.salt = User.random_string(10) if !self.salt?
|
||||||
self.secret = User.random_string(32) if !self.secret?
|
self.secret = User.random_string(32) if !self.secret?
|
||||||
@@ -106,7 +110,7 @@ class User < ActiveRecord::Base
|
|||||||
def self.encrypt(pass, salt)
|
def self.encrypt(pass, salt)
|
||||||
Digest::SHA1.hexdigest(pass + salt)
|
Digest::SHA1.hexdigest(pass + salt)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.random_string(len)
|
def self.random_string(len)
|
||||||
chars = ("a".."z").to_a + ("A".."Z").to_a + ("0".."9").to_a
|
chars = ("a".."z").to_a + ("A".."Z").to_a + ("0".."9").to_a
|
||||||
newpass = ""
|
newpass = ""
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -92,8 +96,7 @@ WikiUFC::Application.routes.draw do
|
|||||||
# Mudancas recentes global
|
# Mudancas recentes global
|
||||||
match 'log' => 'log#index', :as => :log, :format => 'html'
|
match 'log' => 'log#index', :as => :log, :format => 'html'
|
||||||
match 'log.:format' => 'log#index', :as => :formatted_log
|
match 'log.:format' => 'log#index', :as => :formatted_log
|
||||||
|
|
||||||
# Front page
|
# Front page
|
||||||
match '' => 'courses#index', :as => :index
|
match '' => 'courses#index', :as => :index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# Engenharia de Software 2007.1
|
# Engenharia de Software 2007.1
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007, # This file is part of Wiki UFC.
|
||||||
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
10
test/fixtures/attachments.yml
vendored
10
test/fixtures/attachments.yml
vendored
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
10
test/fixtures/courses.yml
vendored
10
test/fixtures/courses.yml
vendored
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
10
test/fixtures/events.yml
vendored
10
test/fixtures/events.yml
vendored
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
10
test/fixtures/log_entries.yml
vendored
10
test/fixtures/log_entries.yml
vendored
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
10
test/fixtures/messages.yml
vendored
10
test/fixtures/messages.yml
vendored
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
10
test/fixtures/users.yml
vendored
10
test/fixtures/users.yml
vendored
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -22,4 +26,4 @@
|
|||||||
# assert true
|
# assert true
|
||||||
# end
|
# end
|
||||||
#end
|
#end
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -34,4 +38,4 @@
|
|||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
#end
|
#end
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -52,4 +56,4 @@
|
|||||||
# #assert !File.exists?(file_path)
|
# #assert !File.exists?(file_path)
|
||||||
# end
|
# end
|
||||||
#end
|
#end
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -24,4 +28,4 @@
|
|||||||
# assert true
|
# assert true
|
||||||
# end
|
# end
|
||||||
#end
|
#end
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -22,4 +26,4 @@
|
|||||||
# assert true
|
# assert true
|
||||||
# end
|
# end
|
||||||
#end
|
#end
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -34,4 +38,4 @@
|
|||||||
# assert !news.save_version?
|
# assert !news.save_version?
|
||||||
# end
|
# end
|
||||||
#end
|
#end
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -49,4 +53,4 @@
|
|||||||
# quoted_printable(subject, CHARSET)
|
# quoted_printable(subject, CHARSET)
|
||||||
# end
|
# end
|
||||||
#end
|
#end
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -245,4 +249,4 @@
|
|||||||
# assert_nothing_raised { User.find_with_deleted(u.id) }
|
# assert_nothing_raised { User.find_with_deleted(u.id) }
|
||||||
# end
|
# end
|
||||||
#end
|
#end
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Wiki UFC
|
# This file is part of Wiki UFC.
|
||||||
# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
|
# Copyright (C) 2007-2015 by Álinson Xavier <isoron@gmail.com>
|
||||||
#
|
# Copyright (C) 2007-2008 by Adriano Freitas <adrianoblue@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by André Castro <aisushin@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Rafael Barbosa <86.rafael@gmail.com>
|
||||||
|
# Copyright (C) 2007-2008 by Henrique Bustamante <bustamante.rique@gmail.com>
|
||||||
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
@@ -44,4 +48,4 @@
|
|||||||
# assert !wp.save_version?
|
# assert !wp.save_version?
|
||||||
# end
|
# end
|
||||||
#end
|
#end
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user