PDA

View Full Version : Editing pages



мϊкэ
05-08-2005, 01:08 PM
Is there a way, like in cpanel, to make a page so you can edit certain files, because in the admin area i made i want to be able to edit the navigation edit the stats, edit all of the boxes throgh the admin area, im going to slice the page up into .inc files were all of the boxes are, so is there a way?

Axlilxbitxflirt
05-08-2005, 01:10 PM
I Have No Clue Of What You're Ta;king About. 1st Comment so I Don;t think Anyone Does.

мϊкэ
05-08-2005, 01:13 PM
you have no clue because you seem to be a noob, have you ever used cpanel becuase if you did you probably would!

:Blob
05-08-2005, 01:15 PM
In CPAnel, before you go to public_html, serach for cpanel.datastore, have a look in there?

splintercell!
05-08-2005, 01:18 PM
you mean you go on a webpage and can edit a file from there.

мϊкэ
05-08-2005, 01:19 PM
yer thats exactly wat i mean

:Blob
05-08-2005, 03:08 PM
This one looks cool :


http://www.webinsta.com/fm.php

splintercell!
05-08-2005, 03:22 PM
I know you can do it with text files but im not sure with php "/

мϊкэ
05-08-2005, 03:33 PM
.inc files are text files, used for slicing html

i could get that webinsta and learn from the files, but i would rather not,

Tomm
05-08-2005, 03:56 PM
I can tell you :) Just use a MySQL database then read the whole page from the database (or just parts of the page) and then you can edit it in some kind of Admin CP. I can make you 1 if you want.

мϊкэ
05-08-2005, 04:03 PM
im in the process of making my own admincp cms, so far i can add news with the news system i made, add affiliates, and beacause ive just found a file editing script i can edit all of the content boxes :D heres the script i think it can be changed to edit any page :D


<?php

if ($submit) {
$fp = fopen("data.txt", "w");
fwrite($fp, stripslashes($newdata));
fclose($fp);
}

$fp = fopen("data.txt", "r");
while (!feof($fp)) {
$data .= fgets($fp, 4096);
}
fclose($fp);

?>

<html>
<head>
<title>Untitled</title>
</head>

<body>
<form action="<? print $PHP_SELF; ?>" method="post">
<textarea name="newdata" rows="10" cols="40">
<?
print $data;
?>
</textarea>

<input type="submit" name="submit" value="Submit">
</form>

</body>
</html>

мϊкэ
05-08-2005, 04:34 PM
:O:O:O:O and it works aswell !! with any type of file !

Want to hide these adverts? Register an account for free!