Script I Am Looking For - Kind of like a content management system

Pages: 1, 2, 3, 4, 5
free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Script I Am Looking For - Kind of like a content management system

shadowx
Fair enough, well i'l give it a go when i get home at the moment because here at my dads i have none of the script i wrote the other day or the development software i need, but i should have it ready by 9:30pm GMT (in about 5 and a half hours as i wont be home for another 4 and a bit sad.gif )

Hopefully it suits what you want smile.gif


Hey AD sorry but im not going to be able to make that script tonight ive got a cracking headache and the computer makes it worse (not really surprising, probably the reason i got it in the first place lol) So ill makew it when i get in from college tomorrow evening and post it tomorrow. Sorry for the delay, if you find something in the meantime let me know but if you still want it ill post it tomorrow for you.

smile.gif

 

 

 


Reply

Albus Dumbledore
It's all good shadowx, there is no rush laugh.gif sorry bout the headache >_< i hate it when those happen.

Reply

midnightvamp
Hmmm.... interestingly enough, I'm working on a content management system of my own right now. I'm just in the very beginning stages of it though at the moment, so I don't know enough about all of that sort of stuff yet to be of much help to you, I'm afraid...

But I'll definately be keeping an eye on this thread in hopes that I can pick up a thing or two myself in here. From what I'm reading already, I'm happy to see that it shouldn't be all that hard. My hardest part is that I don't know much about coding, so I'm sort of trying to learn that at the same time.

Oh, and shadowx... I really hope your headache is better. I had a killer one the other night, so I can almost feel your pain...

Reply

shadowx
Hey thanks guys, its much better today, went to bed early last night so feeling mkuch better smile.gif

Still at college at the moment though, fun! should be home in a couple hours though.

AD you will need to set the permissions of the directory in which this file will be made to be 777, if you use the cpanel its easy as clicking the directory and changing the numbers to all 7's or clicking all the check boxes, otherwise the script wont be allowed to make any new files as was the case with what truefusion said. Royal pain in the.. that error.

Well my lesson is about to start so the next post i make should hopefully be the code smile.gif

*EDIT*

AD do you plan on having security on this file? Unless its going into a protected directory or something any old user could find this script and write files to your server to do all manner of things. If you've got security planned and ready then fair enough, if not i can add a simple login page which i wont guarantee is 100% secure but its better than nothing!

Let me know if you want me to include it, it will only be another script used to check for a session and then either forward you to the page im currently making or, if not logged in, will ask you to log in. smile.gif

 

 

 


Reply

shadowx
Well ive got the scripts finished now. Its three files, one is the php file which is used to take the input (filename and its contents) and save them. It also checks to see if a file exists already with that filename and wont let you save over it so you wont accidentally delete files! And there are two HTML files, one is the top half of the html code and one is the bottom half. Its obvious which is which from the filenames! They are included by the php script and added to the content you input in the form and the whole lot is saved. This way if you even need to change the top or bottom of the HTML code its much easier to do by editing the relevant HTML page smile.gif

Ive added the scripts in a ZIP as an attachment, i can post them as code if you'd prefer but i thought its easier this way. And like i said in te above post if you want i can add a little security and you will need to chmod the directory to 777.

If you have any problems let me know and if possible ill sort it out smile.gif


Click to view attachment

Reply

Albus Dumbledore
hmm, i dont know if i would need the security.. because even if they found that page they would not be able to do any damage unless they link porn through that page and google lists it...... so yeah maybe a small login page would be good biggrin.gif hehe

I also have a quick question, how much of a code change would it take to change the directory in which the file is written to? so i could put all of the flle editor.zip in for say a folder called 'FiLE-EdiTor' and in the PHP code, have it direct all the written files to '/home/albus/public_html'

Reply

shadowx
I shall add the security then. Already got a script for that tongue.gif

and as for writing to a different file it shouldn't be anything difficult. I shall write a variable into the php code and add comments to show you what to change and show how it should be written and that way you can change the directory yourself to any folder you want. And if you're going to have the php file in a directory like "/editor" or something then you can use the cpanel directory protection tool to add a password t that folder so that only you can access it.

*gets to work*

Ill post back once ive sorted out the login thing and changing the folder


The security has been added, remember its probably not 100% fool proof but if you do put this into a folder of its own you can definately use the cpanel/htaccess methods of securing that folder. Inside the check.php and login.php files is a bit with a big line of "/////"'s in those lines is instructions for how to change the username and password used to login. You have to change both values in both files for it to work properly. Also in the file_edit.php file is another similar block of slashes with instructions about how to change the directory.

Its a little messy and complicated so ill explain again here.

Basically if you put these files (and they need to go into the same folder together) into a folder like var/www/file_edit/ and you want to create files in the folder var/www then the $var_directry value you will need is "..//" Note there are two slashes on the end instead of one. This is because php will automatically remove one slash so putting two makes sure that a slash is left. In any directory containing a slash eg www/files/" or any other folder you will need to add an extra slash so it would be something like "..//files//" I hope that makes sense. Any problems let me know smile.gif

Click to view attachment

Reply

Albus Dumbledore
sweet!! thanks a whole bunch!! it works, it's awsome, and it's secure biggrin.gif all thing to look for in a good script and a good script writer!

Reply

shadowx
Thanks smile.gif Glad to know it can help. If you get problems with it then message me and hopefully we can sort it out smile.gif

Reply

Albus Dumbledore
so far so good, biggrin.gif i have it installed in three of my directories and they are working great biggrin.gif this is going to be so much easier than my traditional way of making a page/switching layouts if i need to..

I'll be sure to message you if i have any problems or questions.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2, 3, 4, 5
Similar Topics

Keywords : script content management

  1. Guessing Php Script - (2)
    I am looking for: freeware php quess the person in the photo game script...
  2. Php Downloads Script - (4)
    I've been looking all over the net for a PHP script which can provide an interface to browse a
    downloads database. The database could be powered by MySQL. If you know a script like this, please
    post it here. Thanks in advance, Ironchicken....
  3. Php Guest Online Script - (3)
    make an index.php copy and paste this code CODE <?php $db_host = "localhost";
    $db_user = "root"; $db_pass = ""; $db_name = "test";
    $dbc = mysql_connect($db_host, $db_user, $db_pass); $dbs =
    mysql_select_db($db_name); $tm = time(); $timeout = $tm -
    (30*60);
    if($_SERVER["REMOTE_ADDR"]){$ip=$_SERVER["REMOTE_ADDR
    "];} else{$ip=$_SERVER["HTTP_X_FORWARDED_FOR"];}...
  4. Watermark Your Image With Simple Php Script - found it on the net (35)
    This script was found on the net http://tips-scripts.com/?tip=watermark#tip B&T's Tips &
    Scripts site. Just in case the site may not show, I will include the code here: List of things
    needed: 1. your image in any format 2. watermark image--in gif format with transparent background 3.
    script below with name (i.e. watermark.php) CODE <?php // this script creates a watermarked
    image from an image file - can be a .jpg .gif or .png file // where watermark.gif is a mostly
    transparent gif image with the watermark - goes in the same directory as this script // ...
  5. How To Make Php Newsletter Script - (3)
  6. How To Make A View New Post Script? - (5)
    Ok so i'm still working on the forum software i posted about a while back, but I have no idea
    how to do this. I want to make a view new post script, as this is one of the main things that my
    forum software dose not have that all other forums have. so does any body have an idea on how i
    would do this? Thanks....
  7. Html Code Tester. Online Script - (15)
    Yes, yes. I have another script that I have written and I am distributing. I am not entirely sure if
    this works. I have not tested it yet, but I will later and post back with a demo and fix it up.
    Current script: CODE <?php //Save this as something like htmltest.php function
    CheckForm() { $html_unsafe=$_POST['code']; //Gives us our user
    input $html_safe=str_replace("<?php"," ",$html_unsafe);
    //Starts security measures $html_safe=str_replace("?>","
    ",$html_sa...
  8. Need Help Installing Dolphin Community Script! - (5)
    I'm not sure if this is the right place to post this but I really need help in installing the
    dolphin community script. I have absolutely no previous experience of scripts or programming. I
    would really appreciate if someone could walk me through it step-by-step, or even do it for me by
    logging into my cpanel. I have tried to install it my self but I'm a little confused. I'm
    sure it won't take very long at all for someone who has done this before....
  9. Parse: Error Unexpected T_lnumber - php parse error when running script (4)
    Hi. I've just created a php script. The main object of the script is to delete some old files
    and replace it with a new file with some new content, effectively moving the contents from one file
    to another. These are the first 50 lines of the file: /* Calculate For The "A" Group - The
    Latest Games ID */ $a_B = 002; while(file_exists("a_" . $a_B . ".dat")) {
    $a_B++; } $new_page_contents = " " . $_POST . " " . $_POST . "
    include \"/home/cmatcme/public_html/footer.php\"; ?> "; $a_stream = fopen(&...
  10. Script: Php Jukebox - A one file script! (4)
    This scripts is so simple, you dont need to edit ANY of it! All you have to do is make a folder
    called 'songs' and put some audio files in it. Here is the whole page, I named it index.php
    and put it in a folder called 'music': CODE <!DOCTYPE HTML PUBLIC
    "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd"> <html> <head>
    <title>PHP jukebox</title> </head> <body> <!-- ©2005 Craig
    lloyd. All rights reserved. Visit cragllo.com for more sc...
  11. What Kind Of Script Do You Need ? - post here and get free script (15)
    Hi everybody sorry if i posting here , i know I want design free PHP script and i dont know
    webmasters what kind of scripts want i think its better to aks here becuase trap17 is very nice
    webmasters forum So , Plz post here what kind of script with details you need ! sorry may en
    is not very well for example you need "upload center" : write "upload center" with upload center
    options ( like Ajax , Fast , multi lan and ... ) with this post we can give script details and
    webmasters idea /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile....
  12. Script Help Required: Undefined Variable - A fault I cannot spot in PHP (3)
    Hi, when running a PHP script I keep getting the error: QUOTE Notice: Undefined variable: bret
    in c:\program files\easyphp1-8\home\poll.php on line 294 Notice: Undefined
    variable: bret in c:\program files\easyphp1-8\home\poll.php on line 294 (And,
    yes, I get it twice). The code related to the variable is as follows: CODE function
    LogString($string,$type)     {         $t_log = "\n";
            $t_log .=
    $this->globaldata->server_vars['REMOTE_ADDR']."...
  13. Creatting A Playlist Through Php - script help needed (5)
    Hi I am trying to make a script so that i can insert songs into a playlist, but i need a script in
    which it opens the playlist file and removes the closing tag at the end, so before i can add more
    entrys. e.g CODE <atx> <entry>Location 5</entry> <entry>Location
    4</entry> <entry>Location 3</entry> <entry>Location
    2</entry> <entry>Location 1</entry> <atx> But to add more entrys
    i would have to get rid of the atx, then use the fputs to place the new entry into the file. ...
  14. Free Auction Script - Any Suggestions? (6)
    Any free auction script suggested? I want it to be as many practical functions as possible, yet
    easy to manage. And more importantly, it is free! Appreciate your kind suggestions!...
  15. How Do I Connect To Live Database With Php Script? - while being hosted with ComputingHost (6)
    I am not new to programming. I want to create a form to add some values into my tables, the code
    are all working. But I am not sure what is the URL to connect to my site's database. All along,
    I have been testing through MAMP, which provides a local copy of mySQL. Can anyone lend me a hand?
    My site's URL is http://limetouch.com/ ...
  16. Php Rediret Script - (12)
    Ok, what I am trying to do is this. Re-direct a domain name called: avalon.asn.au to
    preschool.stmarksavalon.org.au I have created a script that will re-direct within the a folder.
    However, the avalon.asn.au and stmarksavalon.org.au are PARKED Domains. Any ideas on how to create
    this PHP Redirect Script please?...
  17. Download Script For Mp3 Files - (0)
    Hello, I'm looking for a download script for sound files (e.g. mp3, avi, wma, and other ones).
    i have found a few download scripts but they would not work for sound files for some reason. also
    this will not be used for allowing downloading of illegal or riped music, what i will be using this
    script for is i'm making a site for my church and the pastor wants to be able to recored the
    services and then have me upload them to the site so that the church members can download them for
    what ever reason. If some one could tell me how to make one or could show me a plac...
  18. Library Script - Where? (6)
    Hello, everyone. Anyone knows where I can get a library script that acts like CMS script software,
    you can add books or delete them. I want to build virtual online library which can be accessible to
    everyone. Or just give me some advices how to make it build. I'm a novice in programming....
  19. Wappy Buddy V1.10 - Tibia Gold Edition By Wappy & Jon Roig - the official wap download script (3)
    By downloading this script you are agreeing to the license and terms outlined below /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> QUOTE /** * *
    @package: wappyBUDDY - Tibia Gold Edition * @version: 1.10 2006/10/01 00:00:01 wappy * @copyright:
    ©2003, 2006 jon roig, wappy * @release notes: this is the first official release of my download
    script despite pirate and incomplete copies floating around that were stolen from one of my previous
    servers. The next release will follow very shortly * @terms: wappyBUDDY is free softw...
  20. Forum Script - (3)
    Hello, i'm wanting to start making my own forum software but i dont know where to start or what
    i need to know in order to do this. I know i will need php and mysql but what else, and could some
    one point me to a good site were i could learn php and mysql. Thanks ...
  21. How Would I Go About Making A Simple "counting" Script? - (3)
    I plan on making a script for basic voting between different options, and I'd like to know what
    PHP coding I would require. Basically, each choice will be as simple as this: CODE <form
    method="post" action="process.php"> Best falsetto?<br><br>
    <input type="radio" name="1"> Person A<br> <input
    type="radio" name="2"> Person B<br> <input type="submit"
    value="Submit"> </form> What PHP would be used to basically add 1 value to a...
  22. Wappychat_oldskool - old version of my wap chat script :-) (15)
    here is a very old version of my wap chat script, its not very advanced but has privates, smileys
    etc. I will post some further versions (with owner, admin, mod status and profiles) when i have time
    to write the readme/install instructions for them. You will find instructions inside the zip. If you
    have any problems post here but i know it don't work on all servers for some reason but it does
    work on the trap server so will be cool ok /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" /> ...
  23. Script Not Working - I don't know why. (6)
    For some reason my random string script is not working. I got a fatal error when I tried it under
    XAMPP. I do not know why. It looks syntatically correct. Could someone help me? Here is the script:
    (Warning its over 100 lines long) //This PHP script will generate a random array and turn it into
    a string consisting of 0-9 and A-Z. // This is the first developmental version. //Create 10 item
    array for string $string = array(0,0,0,0,0,0,0,0,0,0); //Create function to replace 10-36 with
    A-Z function conToStr() { for ($a = 0;$a switch($string ) { ...
  24. Will This Code Work - php linking script ?p= (5)
    hi i'm not that great at php so i'm not to sure if this will work or not. but what i want to
    do is be able to use ?p=staff or what ever page name, with out the php extion, and i would like to
    no if this simple script i made would work. the code is: CODE <?php $p =
    $_GET['p']; if ( !empty($p) &&
    file_exists('./' . $p . '.php') && stristr( $p, '.'
    ) == False ) { // pages = directory where you store your pages    $file = './'
    . $p . '...
  25. Transfer Variables To Another Php Script - (8)
    Hello, I've one registration page where the users fills in their information, is it possible to
    trasnfer the things the fill in on the registration page to another script that does someting and
    returnes something to the first page like true/false and then the registration gives an error
    messange if the other php script returned false? Something like the script "activates" another
    script that does something and returnes the result back to the original script. Best Regards ...
  26. Script That Tracks The User Status - how can I track on or offline users? (4)
    long explaination: hey, I'm building a user profile site right now. And, I kinda know how to
    make a online/offline detector, but not totally sure. I know I can make a mysql database to track
    them, but how does it entrer the information? I could easily put in a field where when they login it
    sets them to online, but if they don't sign out, and just exit the browser, how can I tell.
    short: I want someone to tell me how to make a online/offline status detector, like they have here
    on trap17. I'd be thrilled if you can post to this, thanks, arcticsnpr...
  27. Php Sessions And Post Variables Issues - My script dosent seem to work as intended (1)
    You can test it out for yourself at http://sonesay.trap17.com/application.php I've been
    working on this page locally and it seems to be working fine but when I upload it to my trap17
    account the post variables dont get saved properly. Fill in some fields and submit it, the form
    will come up as a empty field yet when you resubmit it without any modifications and the data you
    entered in orginally will now magically appear, resubmit it again and it will be gone. This is
    really annoying as I have no clue why it would be doing this when it seems to work fine locally....
  28. Is This A Good Script? - A login script (9)
    Okay, I am trying to password one page of my website. I need confirmation if this is a safe code or
    not. The whole code is on the page I'm protecting. CODE <?php
    include('header.php') ?> <?php // Define your username and password
    $username = "THE_USERNAME"; $password = "THE_PASSWORD"; if
    ($_POST['txtUsername'] != $username ||
    $_POST['txtPassword'] != $password) { ?>
    <h1>Login</h1> <form name="form" method=&...
  29. Php Search Engine Script For Mysql Database - (11)
    A search engine is provided to facilitate the user with undemanding and clear-cut search options.
    The search facility includes simple search, search by title, search by word/phrase, ect… Thus, the
    user is at a safe distance from the risk of selecting files/folders ambiguously. In addition, a
    history of recent searches can be preserved for future perusal. Now
    day’s visitors have a large option for his needs on internet and so visitors are not vesting their
    time by following the dead links on your site. So a search engine is essential for your...
  30. Awesome Source Code Viewer Script - (7)
    Hello! I have just came up with a sweet script to show the source code of any website and it
    only requires one file. This is the basis of the script and can be customized with CSS and other
    things and can be instituted as a public resource. Well I will provide the code and a step-by-step
    tutorial on each of its parts. This code has been tested by me. Enjoy! CODE <?php
    //This little tag starts our php script and is easily the most important part of the script. //We
    will start our base script here. //You can change some of the styles used here to your des...



Looking for script, kind, content, management, system

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for script, kind, content, management, system

*MORE FROM TRAP17.COM*
advertisement



Script I Am Looking For - Kind of like a content management system



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE