Jump to content
MakeWebGames

Recommended Posts

Posted

call this file filedata.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Change localhost to the web address your game is on

call this file illusions.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Again change the localhost to your addy

Posted

Re: [MCCODES V2] File Creator and Editor ingame

add these links to smenu.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

This system will allow the admin to create Files of which are sent straight to the FTP and named as chosen by the person creating it.

The filedata.php will allow you to EDIT any files on your server the format can be of any type from html to javascript.......

*FOOTNOTE*

Think carefully when using this editor as in the wrong hands it CAN do fatal damage to your site...

  • 3 weeks later...
Posted

Re: [MCCODES V2] File Creator and Editor ingame

oO0 SECURITY NOTICE 0Oo

PLEASE CHANGE THE NAMES OF BOTH FILES AND ANYLINKS THAT ARE IN THEM EVEN THE STAFF LINKS WILL NEED TO BE CHANGED

This is purely so other users that see this script dont decide to randomly type illusions.php or filedata.php im aware both are setup only for admin access but a little more security wont harm it.....

OOPS forgot to mention on script post also make a txt file called filedata.txt this is for the inview of the filedata.php file which will allow you to change the link of the file you want to edit to a new one so you dont have to keep uploading filedata.php all the time.

Posted

Re: [MCCODES V2] File Creator and Editor ingame

Already made. :) With secuirty on it. I get to give staff/coders permissons on what files they can add/edit/delete :)

Posted

Re: [MCCODES V2] File Creator and Editor ingame

Note: This is not a flame, just personal opinion.

I personally feel this mod is a bad idea, just think.. If they get hold of it, they can do serious damage to your site. Also you annoy one of your coders, and he decides to turn against you? Your quite literally fuxed. Why not give them a limited ftp account? :roll:

Anyway.. Here's a couple of ideas..

Make it accessible to only a few admins, not all?

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Make them have to enter a special pass before they can access the add/edit/delete screen..

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: [MCCODES V2] File Creator and Editor ingame

as noted from above

 

*FOOTNOTE*

Think carefully when using this editor as in the wrong hands it CAN do fatal damage to your site...

Posted

Re: [MCCODES V2] File Creator and Editor ingame

There is no safe feature to this mod.. its only safe if one person uses it and that person is the game owner and doesnt tell anyone wat the files are called.

  • 1 month later...
  • 2 years later...
Posted

this is good, on your filedata on a few lines down its is default to

$file = 'preferences.php';

is tehre a way to create a new page and to be able to choose the file you want to edit instead of a preslected one,

the idea of this mod is to make life easier but i still have to go into the file manager to be able to select which page to edit.

Posted (edited)

Making this mod safe would be very simple. Are you the only one that intends to use it? Why not just program it in, if its you by user id, or if your like me and super paranoid, sort it by your ip address, browser md5hash, only accept only port 80, and a password. For an even greater safety precaution, when the password is entered correctly, make it say "Incorrect Password" and hang for a second or 5. A few years back when i was making an mccodes game, i made it to where the admin account had 2 passwords, and a phrase that needed matching as well as locked it to my IP so only my home computer could access it

Edited by runthis

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...