Is it a good idea to lock the database for more security ?

Hi again,

The site will be mostly static and I was thinking maybe to lock or remove write permissions from the database,
While online.

Is that a good idea?

SA-CONTRIB-2013-092 - Misery - Denial of Service (DOS) vulnerability.

  • Advisory ID: DRUPAL-SA-CONTRIB-2013-092
  • Project: Misery (third-party module)
  • Version: 6.x, 7.x
  • Date: 2013-November-13
  • Security risk: Not critical
  • Exploitable from: Remote
  • Vulnerability: Multiple vulnerabilities

Get a nid from a URL alias

I need to get the NID from the ‘middle’ of a URL alias. Let’s say that I have http://example.com/world/usa/virginia/richmond. I would like to get the NID that corresponds to http://example.com/world/usa.

I'm trying to do this in Views > Arguments > Node:nid > Provide default argument > PHP code.

I’m not very fluent in PHP and was hoping that someone might be able to assist me with this.

How to make rotating ad-banners? Two banners displaying 50/50

Hi, maybe it's something very simple.
I have two banners from my advertiser. They asked me to display them rotating 50/50. Meaning each banner displays every second view of a page. Is there any simple module which would do that? I just want to load there two banners and set them for 50-50 display.
I tried Advertisment module but its a huge tool with hundreds options which I don't need.
Will really apreciate any hint.
regards
migajos

mixed multisites install

I have been running mutlisites on linux for many years.

I'm not an expert on linux or apache. I made it work mostly by trial and errors without fully understanding what is beneath it. Now I attempt to do something very unique. Couldn't make it work so far. Any suggestion is greatly appreciated.

Create a Drupal 6 user programatically

i was trying to create a new user Programmatically in drupal 6.22 but i can't seem to get it working.
I need to make a web service that can do a few things, one being create a new user.
This webservice is going to be consumed by a mobile device.
I was just trying to test the user_save from outside drupal in just a simple php file and the user never shows up in the database.
I just need to know what i'm doing wrong.

Here is my code

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x