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 | |
/* | |
Plugin Name: Lug Map | |
Plugin URI: http://softwareliber.ro/harta/ | |
Description: Create a map with lug locations, powered by Google Maps. | |
Version: 1.5 | |
Author: Stas Sushkov | |
Author URI: http://stas.nerd.ro/ | |
*/ | |
?> |
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
--- a/app/controllers/account_controller.rb | |
+++ b/app/controllers/account_controller.rb | |
@@ -178,9 +178,24 @@ class AccountController < ApplicationController | |
redirect_to(home_url) && return unless Setting.self_registration? | |
# Create on the fly | |
- user.login = registration['nickname'] unless registration['nickname'].nil? | |
- user.mail = registration['email'] unless registration['email'].nil? | |
- user.firstname, user.lastname = registration['fullname'].split(' ') unless registration['fullname'].nil? | |
+ if !registration['nickname'].nil? |
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 | |
var_dump($_GET); | |
?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>untitled</title> |
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
deb http://ro.archive.ubuntu.com/ubuntu/ karmic main restricted | |
deb http://ro.archive.ubuntu.com/ubuntu/ karmic-updates main restricted | |
deb http://ro.archive.ubuntu.com/ubuntu/ karmic universe | |
deb http://ro.archive.ubuntu.com/ubuntu/ karmic-updates universe | |
deb http://ro.archive.ubuntu.com/ubuntu/ karmic multiverse | |
deb http://ro.archive.ubuntu.com/ubuntu/ karmic-updates multiverse | |
# deb http://ro.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse | |
# deb-src http://ro.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse |
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: index.php | |
=================================================================== | |
--- index.php (revision 147359) | |
+++ index.php (working copy) | |
@@ -137,7 +137,7 @@ | |
$lm_org = $wpdb->escape($_POST['lm_org']); | |
$lm_email = $wpdb->escape($_POST['lm_email']); | |
$lm_web = $wpdb->escape(apply_filters("the_title",$_POST['lm_web'])); | |
- $lm_dsc = $wpdb->escape(apply_filters("comment_status_pre ",$_POST['lm_dsc'])); | |
+ $lm_dsc = $wpdb->escape(apply_filters("comment_status_pre ",nl2br($_POST['lm_dsc']))); |
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
#/bin/bash | |
FILE='/tmp/redmin_projects' | |
MAILHANDLR='/var/www/redmine/extra/mail_handler/rdm-mailhandler.rb' | |
URL='http://host.tld' | |
KEY='yourkey' | |
OPTS='priority,status' | |
wget -q $URL/projects.yaml -O - | grep 'identifier: ' | cut -d ':' -f2 > $FILE | |
exec<$FILE | |
while read p | |
do |
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
clear: aliases.db | |
rm -f /tmp/aliases.tmp | |
aliases.db: aliases | |
postalias /etc/aliases | |
postfix reload | |
aliases.tmp: /etc/aliases.original | |
cat /etc/aliases.original > /tmp/aliases.tmp | |
/var/www/redmine/extra/mail_handler/create_aliases.sh >> /tmp/aliases.tmp |
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
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb | |
index f3280cc..856290f 100755 | |
--- a/app/controllers/projects_controller.rb | |
+++ b/app/controllers/projects_controller.rb | |
@@ -59,6 +59,12 @@ class ProjectsController < ApplicationController | |
:limit => Setting.feeds_limit.to_i) | |
render_feed(projects, :title => "#{Setting.app_title}: #{l(:label_project_latest)}") | |
} | |
+ format.xml { | |
+ render :xml => Project.visible.all |
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
OpenVZ partitioning, 2 x HDD 70G | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
------------------------------------------------------------------------------------------------------------------------------------ | |
(RAID LEVEL) | LVM LEVEL VOLUME GROUPS | FS LEVEL | |
------------------------------------------------------------------------------------------------------------------------------------ | |
1HDD 2HDD Volume groups logical volumes Mount points and filesystems | |
==== ==== ============= =============== ============================ | |
1G 1G RAID1 skip skip /boot ext(2,3)/reiserfs |
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 | |
#include("../config.php"); | |
function epayment_updates($url, $post)#, $save_to, $cookie) | |
{ | |
$th = curl_init($url); | |
#$fp=fopen($save_to, "w"); | |
curl_setopt($th, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($th, CURLOPT_BINARYTRANSFER, true); |
OlderNewer