DrupalBin
Submit Code
About
Recent Posts
message i get when running openssl s_client -connect 150.203.86.21:443
Fix for Code
Code
add_to_cart_by_sku_contents()
Fix for page.tpl.php
Page.tpl
foreach is beeing disregarded dispite variable is array. Please help. Outside Drupal it works as standalone.php file
foreach is beeing disregarded dispite variable is array inside drupal. Please help. Outside Drupal it works as standalone.php
Fix for filefield implementation in an admin page. "An HTTP error 0 occurred. /drupal/?q=filefield/ahah///"
PHP Code custom.module
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
›
litwol
›
Recent Posts
litwol
View
Posts
Code
July 23, 2009 - 6:53pm —
litwol
server
{
listen
80
;
server_name example.com;
log_subrequest on;
access_log
/
var
/
log
/
nginx
/
speed.access.
log
;
error_log
/
var
/
log
/
nginx
/
speed.error.
log
;
root
/
var
/
www
/
speed;
index
example
example config
nginx
Read more
Code
July 23, 2009 - 6:28pm —
litwol
function
warpd_form_whitelist
(
$form_id
)
{
$whitelist
=
array
(
'search_theme_form'
,
'search_block_form'
,
'search_form'
,
)
;
return
in_array
(
$form_id
,
$whitelist
)
;
}
litw
Read more
Fix for Fix for Code
July 23, 2009 - 6:27pm —
litwol
diff --git a/includes/form.inc b/includes/form.inc
index be9da38..2e1ca16 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -
67
,
7
+
67
,
7
@@
* The rendered form.
*/
function drupal
Read more
Fix for Code
July 23, 2009 - 6:27pm —
litwol
diff --git a/includes/form.inc b/includes/form.inc
index be9da38..2e1ca16 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -
67
,
7
+
67
,
7
@@
* The rendered form.
*/
function drupal
Read more
Code
July 23, 2009 - 6:26pm —
litwol
diff --git a/includes/form.inc b/includes/form.inc
index be9da38..2e1ca16 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -
67
,
7
+
67
,
7
@@
* The rendered form.
*/
function drupal
Read more
Code
July 17, 2009 - 2:10am —
litwol
server
{
listen
80
;
server_name example.com
*
.example.com;
if
(
$host
~
"^(.*).example.com"
)
{
set
$sub
$
1
;
}
if
(
$sub
=
""
)
{
set
$sub
"6"
;
}
if
(
!
-d
example.com
nginx
Read more
Code
July 14, 2009 - 12:31am —
litwol
server
{
listen
80
;
server_name example.com
*
.example.com;
if
(
$host
~
"^(.*).example.com"
)
{
set
$sub
$
1
;
}
if
(
$sub
=
""
)
{
set
$sub
"6"
;
}
if
(
!
-d
Read more
Code
July 13, 2009 - 9:40pm —
litwol
location ^~
/
nginx-ssi
/
{
access_log
/
var
/
log
/
nginx
/
1.access.
log
cookie;
if
(
$uri
~
*
"/nginx-ssi/(.*)$"
)
{
set
$region
$
1
;
}
}
if
(
!
-e
$request_filename
)
{
rewrite ^
Read more
Fix for Fix for Creating a simple menu entry
July 12, 2009 - 3:29pm —
litwol
/*
* I'm trying to create a menu item that links to 'author/<username>', where username is the name of the logged in user.
* The menu has no callback associated, it's just a simple menu item, poin
hook_menu
menu
Read more
HDD serial numbers
July 12, 2009 - 3:19pm —
litwol
cache 32MB
1
)
WCASY4002482
(
MDL: WD6401AALS-00L3B2
)
2
)
WCASY3710960
(
MDL: WD6401AALS-00L3B2
)
cache 16MB
1
)
WMASY3815692
(
MDL: WD6400AAKS-00A7B0
)
2
)
WCASY0256469
(
MDL: WD6400AAKS-00A7B0
)
Code
July 11, 2009 - 1:50pm —
litwol
localhost:privatemsg litwol$ .
/
cvs-release-notes.php DRUPAL-
6
--
1
-
0
-RC2 DRUPAL-
6
--
1
-
0
-RC3
<
p
>
Changes since DRUPAL-
6
--
1
-
0
-RC2:
</
p
>
Read more
Code
July 9, 2009 - 8:34pm —
litwol
Directories layout
>>>>>>>>>>>>>>
litwol
@
mail
:
/
var
/
www
/
nginx-
default
/
nginx-ssi$ pwd
/
var
/
www
/
nginx-
default
/
nginx-ssi
>
.
..
na -
>
..
/
..
/
opensourcerpg.org
>>>>>
/
var
/
www
/
opensourcerpg.org
Read more
Code
July 8, 2009 - 5:58pm —
litwol
function
views_fastsearch_views_tables
(
)
{
$tables
[
'search_index'
]
=
array
(
'name'
=
>
'search_index'
,
'provider'
=
>
'internal'
,
'fields'
=
>
array
(
'score'
=
>
array
(
Read more
Fix for Code
July 2, 2009 - 3:15pm —
litwol
localhost:test litwol$ ll
total
144
drwxr-xr-x
20
litwol staff 680B Jul
2
15
:08 .
drwxr-xr-x+
62
litwol staff 2.1K Jul
2
14
:
51
..
-rw-r--r--
1
litwol staff 1.3K Jul
2
15
:08
1
-
1001
-
8
Read more
Code
July 2, 2009 - 3:08pm —
litwol
localhost:test litwol$ ll
total
144
drwxr-xr-x
20
litwol staff 680B Jul
2
15
:08 .
drwxr-xr-x+
62
litwol staff 2.1K Jul
2
14
:
51
..
-rw-r--r--
1
litwol staff 1.3K Jul
2
15
:08
1
-
1001
-
8
Read more
Code
July 2, 2009 - 2:10am —
litwol
..
.
..
.
.
location
/
{
default_type text
/
html;
if
(
$request_method
=
'GET'
)
{
access_log
/
var
/
log
/
nginx
/
litwol.access.
log
foobar;
set
$memcached_key
$s
Read more
Code
July 2, 2009 - 2:04am —
litwol
server
{
log_format memca
"memcached $scheme://$host$request_uri $request_method '$time_local'"
;
log_format filesys
"fileys $scheme://$host$request_uri $request_method '$time_local'"
;
Read more
Code
June 30, 2009 - 12:25pm —
litwol
localhost:mydir litwol$ svn diff ^
/
d5
/
branches
/
fc
/
.htaccess ^
/
d5
/
trunk
/
.htaccess
Property changes on: .htaccess
___________________________________________________________________
Modified: svn:
Read more
Fix for Code
June 28, 2009 - 1:01am —
litwol
<?php
// Assumption: We have an API that registers existence
// of js library and corresponding version.
Read more
Code
June 28, 2009 - 12:32am —
litwol
<?php
// Assumption: We have an API that registers existence
// of js library and corresponding version.
Read more
1
2
3
4
5
6
next ›
last »