Posted by arijitsinha on March 3, 2010 at 1:11pm
Hi, is it possible in drupal to have custom php pages?
I want a custom php page which would use the security system of drupal i.e. only the User #1 have access to the page.
Now, if this can be done various other things can be done.
edited by silverwing - moved to appropriate forum
Comments
possible
create a page or node, add a tpl file for it, use some drupal code to check the user and add the custom code:
global $user;
if($user->uid==1){
//add custom code
}
Senior Drupal Web Developer
Wellcome Trust Sanger Institute
Hello, Actually I have built
Hello,
Actually I have built a drupal block where I have written a some html ( Ifarme). When this block loads it calls an external html file. ( I have implemented a vertical scroller). Now I want to make it dynamic. I shall build a form, which would save the records in a database table and when some one access the drupal page that means that block dynamic data would be displayed in the scroller which is now a static one.
Create a module then.
Your code will be better organized and secure if you make it a Drupal module.