Full service web hosting, great prices and support. Starts at $1.99/month!
Page 2 of 2 First 12
Results 11 to 17 of 17

Thread: Check Permissions v1.3 for osCmax

  1. #11
    tnier
    Guest


    Default Re: Check Permissions v1.3 for osCmax

    Quote Originally Posted by ridexbuilder View Post
    ...then, a better explanation as to what the issue is, may help.
    heres what my tools.php says

    <?php
    /*
    $Id: tools.php 3 2006-05-27 04:59:07Z user $

    osCMax Power E-Commerce
    osCommerce Documentation by OSCdox :: osCommerce and osCMax documentation

    Copyright 2006 osCMax2005 osCMax, 2002 osCommerce

    Released under the GNU General Public License
    */
    ?>
    <!-- tools //-->
    <tr>
    <td>
    <?php
    $heading = array();
    $contents = array();

    $heading[] = array('text' => BOX_HEADING_TOOLS,
    'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'));

    if ($selected_box == 'tools') {
    // BOF: MOD - Admin w/access levels
    // $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_BACKUP) . '" class="menuBoxContentLink">' . BOX_TOOLS_BACKUP . '</a><br>' .
    // '<a href="' . tep_href_link(FILENAME_BANNER_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_BANNER_MANAGER . '</a><br>' .
    // '<a href="' . tep_href_link(FILENAME_CACHE) . '" class="menuBoxContentLink">' . BOX_TOOLS_CACHE . '</a><br>' .
    // '<a href="' . tep_href_link(FILENAME_DEFINE_LANGUAGE) . '" class="menuBoxContentLink">' . BOX_TOOLS_DEFINE_LANGUAGE . '</a><br>' .
    // '<a href="' . tep_href_link(FILENAME_FILE_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>' .
    // '<a href="' . tep_href_link(FILENAME_MAIL) . '" class="menuBoxContentLink">' . BOX_TOOLS_MAIL . '</a><br>' .
    // '<a href="' . tep_href_link(FILENAME_NEWSLETTERS) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>' .
    // '<a href="' . tep_href_link(FILENAME_SERVER_INFO) . '" class="menuBoxContentLink">' . BOX_TOOLS_SERVER_INFO . '</a><br>' .
    // '<a href="' . tep_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a>');
    $contents[] = array('text' => tep_admin_files_boxes(FILENAME_BACKUP, BOX_TOOLS_BACKUP, TOP) .
    tep_admin_files_boxes(FILENAME_RECOVER_CART_SALES, BOX_TOOLS_RECOVER_CART, TOP) .
    tep_admin_files_boxes(FILENAME_BANNER_MANAGER, BOX_TOOLS_BANNER_MANAGER, TOP) .
    tep_admin_files_boxes(FILENAME_BATCH_PRINT, BOX_TOOLS_BATCH_CENTER, TOP) .
    tep_admin_files_boxes(FILENAME_MAIL, BOX_TOOLS_MAIL, TOP) .
    tep_admin_files_boxes(FILENAME_NEWSLETTERS, BOX_TOOLS_NEWSLETTER_MANAGER, TOP) .
    tep_admin_files_boxes(FILENAME_PACKAGING, BOX_TOOLS_PACKAGING, TOP) .
    tep_admin_files_boxes(FILENAME_UPS_BOXES_USED, BOX_TOOLS_UPS_BOXES_USED, TOP) .
    tep_admin_files_boxes(FILENAME_QTPRODOCTOR, BOX_TOOLS_QTPRODOCTOR, TOP) .
    tep_admin_files_boxes(FILENAME_CACHE, BOX_TOOLS_CACHE, TOP) .
    tep_admin_files_boxes(FILENAME_SERVER_INFO, BOX_TOOLS_SERVER_INFO, TOP) .
    tep_admin_files_boxes(FILENAME_WHOS_ONLINE, BOX_TOOLS_WHOS_ONLINE, TOP));
    // EOF: MOD - Admin w/access levels
    }

    $box = new box;
    echo $box->menuBox($heading, $contents);
    ?>
    </td>
    </tr>
    <!-- tools_eof //-->


    The directions say

    3. Add this line to admin/includes/boxes/tools.php - [edit pgm]

    tep_admin_files_boxes(FILENAME_CHECK_PERMISSIONS, BOX_TOOLS_CHECK_PERMISSIONS) .

    after

    tep_admin_files_boxes(FILENAME_FILE_MANAGER, BOX_TOOLS_FILE_MANAGER) .

    there is no
    tep_admin_files_boxes(FILENAME_FILE_MANAGER, BOX_TOOLS_FILE_MANAGER) .
    to put
    tep_admin_files_boxes(FILENAME_CHECK_PERMISSIONS, BOX_TOOLS_CHECK_PERMISSIONS) .
    after

    when i put both
    tep_admin_files_boxes(FILENAME_FILE_MANAGER, BOX_TOOLS_FILE_MANAGER) .
    tep_admin_files_boxes(FILENAME_CHECK_PERMISSIONS, BOX_TOOLS_CHECK_PERMISSIONS) .
    in the tools.php
    it says cant find file_manager.php

  2. #12
    blackhawk
    Guest


    Default Re: Check Permissions v1.3 for osCmax

    hey peeps its really not that bad - all that line a code is trying to do is pull the information into a box function (i.e. the box lines you see on your information.php page. its really not rocket science.

  3. #13
    osCMax Development Team

    Check Permissions v1.3 for osCmax

    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    3,517
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    pgmarshall     $ 35.00
    Rep Power
    77


    Smile Re: Check Permissions v1.3 for osCmax

    Hi there,

    The filemanager code was removed from osCMax v.2.0.4 due to security issues!

    Therefore this line was removed
    Code:
    tep_admin_files_boxes(FILENAME_FILE_MANAGER, BOX_TOOLS_FILE_MANAGER) .
    DO NOT REPLACE IT!

    Therefore the line should read ...

    put

    Code:
    tep_admin_files_boxes(FILENAME_CHECK_PERMISSIONS,   BOX_TOOLS_CHECK_PERMISSIONS) .
    after one of the other lines ... for example ...

    Code:
    tep_admin_files_boxes(FILENAME_BATCH_PRINT, BOX_TOOLS_BATCH_CENTER, TOP)  .
    But you can put it anywhere in the string depending where you want it to appear in the menu.

    Hope this clears this up for you.

    Regards,
    pgmarshall
    _______________________________

  4. #14
    onlyme
    Guest


    Default Re: Check Permissions v1.3 for osCmax

    Having struggled with this problem myself, here is what I hope is a a clear solution for others like me, who have no prior experience of PHP coding etc.

    The instructions say to do this:

    ********************

    3. Add this line to admin/includes/boxes/tools.php - [edit pgm]

    tep_admin_files_boxes(FILENAME_CHECK_PERMISSIONS, BOX_TOOLS_CHECK_PERMISSIONS) .

    after

    tep_admin_files_boxes(FILENAME_FILE_MANAGER, BOX_TOOLS_FILE_MANAGER) .

    ********************

    This line: tep_admin_files_boxes(FILENAME_FILE_MANAGER, BOX_TOOLS_FILE_MANAGER) does not exist and that is OK. You should not add this line in because it is not supposed to be there. The instructions could do with updating, that's all.

    You should continue with adding in the line: tep_admin_files_boxes(FILENAME_CHECK_PERMISSIONS, BOX_TOOLS_CHECK_PERMISSIONS) .

    You must make sure that you include the full stop at the end of the line. What you also must do is ensure you add the line before this one: tep_admin_files_boxes(FILENAME_WHOS_ONLINE, BOX_TOOLS_WHOS_ONLINE, TOP));

    You will notice that the line shown above ends with a semi-colon, whereas the lines of code above it all end with a full stop. I hadn't noticed this and had added the new line right at the end, after the one with the semi-colon and I couldn't get anything to work. As soon as I noticed that the final line ended differently to those above it and I relocated the new line, it all worked.
    Last edited by onlyme; 08-13-2010 at 09:30 AM.

  5. #15
    osCMax Development Team

    Check Permissions v1.3 for osCmax

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    96


    Talking Re: Check Permissions v1.3 for osCmax

    Good of you to spell things out in such a hand-holding manner but reads like something for a young teenagers school lesson, IMO.

    If I was being real nasty:

    No prior experience of PHP programming is required. Only a capability of using the grey matter between ones ears, to compare existing lines in the file. If you look at the list of items does it not correspond to what you see in the Admin menus? Is it a real leap of thought to see the similarity?

    For the anally retentive let's get really down to the nitty gritty...
    PHP Code:
    tep_admin_files_boxes(FILENAME_CHECK_PERMISSIONSBOX_TOOLS_CHECK_PERMISSIONS) . 
    tep_admin_files_boxes - a function to add boxes (menu item in Tools) to the admin console.
    FILENAME_CHECK_PERMISSIONS - use the file that checks permission....
    etc.
    The reason for the Caps. is that these are variables, to account for different languages and/or changes to filenames.
    'Developers'/'Webmasters' (what a wide bunch of skill sets that covers!) might want to try out adding contributions. This implies having a modicum of experience in coding matters.
    Shop owners should stick with 'officially' released packages.
    Things would be so much easier.
    As Met00's sig. shows...
    Last edited by ridexbuilder; 08-13-2010 at 10:17 AM.

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  6. #16
    onlyme
    Guest


    Default Re: Check Permissions v1.3 for osCmax

    Sorry, I thought a forum was for users having difficulties who might benefit from straightforward responses especially if, like me, they have never touched PHP files before. I only joined this forum because I was trying to help, so it's a shame I've been met with such unnecessary sarcasm.

  7. #17
    osCMax Development Team

    Check Permissions v1.3 for osCmax

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    96


    Default Re: Check Permissions v1.3 for osCmax

    Easily upset, then?
    You didn't notice the hints of tongue-in-cheek (in addition to the little dots at the end of menu items, apart from the last one ).

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

Page 2 of 2 First 12

Similar Threads

  1. download link for: Releases for Check Permissions v1.3 for osCmax is missing
    By silverping in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 11-02-2009, 02:09 PM
  2. Check Permissions 1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-28-2009, 02:50 PM
  3. Check Permissions 1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-01-2009, 02:12 AM
  4. Check Permissions 1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-09-2008, 02:00 PM
  5. Check Permissions 1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-06-2008, 03:13 PM

Bookmarks

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
  •