Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: PHP Page Access & Edit

  1. #1
    Join Date
    May 2007
    Posts
    66
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default PHP Page Access & Edit

    Hello I am trying to determine how to access the Administration page to make changes. If you click on the home page link below you will see the Administration link to the right. All the files are php pages located on a cpanel hosting server and there are many folders with files inside them. Please let me know where the administration page would be located? Thanks

    http://skysquaresoccercamp.com/ - home page link

    http://www.skysquaresoccercamp.com/i...d=32&Itemid=58 - administration link

  2. #2
    Join Date
    Dec 2011
    Posts
    49
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default

    well since the administration page is located at
    Code:
    http://www.skysquaresoccercamp.com/index.php?option=com_content&task=view&id=32&Itemid=58
    i believe it's in a database. the
    Code:
     
    ?option=com_content&task=view&id=32&Itemid=58
    in the url shows that when you go to the administration page, the page content is actually being pulled from a database via a 'get' function.

    you'll have to access the database through phpMyAdmin or something similar, then overwrite the data in the correct row to change anything. looks like it would be the row with id equal to 32?(really not sure here)

    if you didn't setup the database and don't want to fiddle with posting new data to it i would recommend just going to the administration page, copying the source code, then creating a new page directly on the file system(instead of in the database), paste in the source code, and just edit whatever you want. i'm not entirely sure this would work but i would think so. anyone want to second me on this working?

    and actually you wouldn't have to change the links anywhere, you could just setup a redirect in the htaccess file so that whenever someone clicks on 'Administration' regardless of what page they're on, they will be redirected to your new edited page on the file system rather than the old one in the database.

    in your htaccess file you would just need to put something like:
    Code:
    RewriteEngine On
    RewriteRule ^index.php?option=com_content&task=view&id=32&Itemid=58$ /your_new_page_url.php [L]
    this is using mod rewrite though, which is a bit crazy. with this in your htaccess file, every time the administration link is put in the url, it will take them to your_new_page_url.php. it'd be easy to delete the old row in the database so that it's not crawled by spiders anymore. this is kind of a messy fix but it seems to me like it would be the easiest if you don't know how to mess around with the database directly. maybe someone will respond with a less messy way ^_^ honestly i don't see why an administration page has to be in a database unless you have a bunch of administration groups or something. maybe there's a cms in place to change it easily? i don't even know if a cms for the customer is common practice when someone makes your site like this.

    anyway hope this helps! i would wait for a second opinion hehe

    there might be an easier way, like just editing the content in the database directly, but i have no idea how your database is setup, and i have no experience doing that with entire page content.

  3. #3
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    is this your website, jcdesigns? Do you not have the username/password for it?
    if this is your site, and you've lost your admin password, you can reset it by editing the database manually - but be careful.

    BTW, baconDelta, this site uses Joomla. It's highly counter-productive to rewrite and redirect everything as static pages rather than simply signing in and editing the content.

  4. #4
    Join Date
    Dec 2011
    Posts
    49
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default

    oh i see.

    i just figured they hired someone to do their site for them a while back, and now need to edit something and don't know how to mess with a db. but i understand completely lol my bad. i'm glad you chimed in

    wow i didn't even see that it says joomla in the source right on the homepage. cue dunce hat.

  5. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    yeah, the <meta name="generator" ...> tag is the first thing I look for.
    Plus, Joomla has all that stupid, clumsy ?option=com_content&task=43h08123&T&*(^RGuh##! crap.

    no biggie.

  6. #6
    Join Date
    May 2007
    Posts
    66
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by traq View Post
    is this your website, jcdesigns? Do you not have the username/password for it?
    if this is your site, and you've lost your admin password, you can reset it by editing the database manually - but be careful.

    BTW, baconDelta, this site uses Joomla. It's highly counter-productive to rewrite and redirect everything as static pages rather than simply signing in and editing the content.
    Hello Adrian,

    Thanks for your response. I was able to login into the phpmyadmin database and found a slew of tables. I searched thru many of them but could not find the one that linked to the administration page I need to edit. I did a screen shot of the bak_menu so you could check out. I thought maybe its there. Can you please take a look at the tables and determine which one is for the administration page. Here is the link of the screen shot. Also once i determine the correct table do I edit that table which will in term edit the web page or how do I go about editing the web page. Thanks

    http://www.jenkinscreativedesigns.com/phpmyadmin.pdf

  7. #7
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Did you check out the link in my post? There's a step-by-step description of how you can reset you admin password there.

    and, to clarify, I am not suggesting that you edit any of your pages directly from the database - rather, reset your password so you can log in and edit them normally.

  8. #8
    Join Date
    May 2007
    Posts
    66
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Hello Andrian,

    I found the admin password from jos_users. From this point how do I login and edit them normally? Thanks

  9. #9
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Have you ever used Joomla before?
    Check out their beginner's resources.

  10. #10
    Join Date
    Dec 2011
    Posts
    49
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default

    jcdesigns,

    traq is referring to your joomla login, not your phpmyAdmin login. since your site uses joomla, it should have a control panel, usually accessible somewhere along the lines of www.mywebsite.com/joomla/administrator.

    although with your site i don't see such a page.

    traq do you know if it's possible to create the site with joomla but then remove the joomla control panel while still keeping the site intact?

    edit: the company hired to do the site could have edited just one line of code somewhere amongst the huge load of code that is joomla, and that one edit could keep the login from being accessible. at least it seems like that could be the problem. or worse they took off the joomla control panel all together once they were done.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •