Results 1 to 15 of 15

Thread: admin log in redirects to ip and does not allow log in?

  1. #1
    thatmtnman is offline Registered User
    Join Date
    Mar 2008
    Posts
    13

    Default admin log in redirects to ip and does not allow log in?

    I just did my first and a fresh install of indexu. When I try to log into admin, the site redirects me to the ip number then throws a 404 error? So I go to myurl.com/admin, enter admin and admin as credentials, and the page redirects to this 123.12.123.12/admin (not the literal ip number)

    Is that weird or what?

    Can someone help me?

    Cheers

    Frank

  2. #2
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    That's how you set it up. Edit application.php and enter the domain name instead of an IP address beside $site_url.

    Also make sure $base_path is set correctly as well.

  3. #3
    thatmtnman is offline Registered User
    Join Date
    Mar 2008
    Posts
    13

    Default Hi Brucper...

    thank you so much for your help!!...I will try your solution immediately...what do you mean by correct base path? And where is that?

    Frank

    Ok...I just did as you asked...not sure but...when I log in with default admin log in credentials, am I not supposed to see some sort of control panel? All I see is a white page and a few icons that ask things like favorites and so on? As well..the path seems to want to include the db password...that can't be a good thing?

    Frank
    Last edited by thatmtnman; 03-27-2008 at 04:25 PM.

  4. #4
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    It sounds like you've seriously messed up application.php

    The basepath is in application.php, right below $siteurl

    Did you move this site from another location? And if I remember right this is for IndexU Lite is it not?

  5. #5
    thatmtnman is offline Registered User
    Join Date
    Mar 2008
    Posts
    13

    Default Hi again!

    yes this is for index u...if you would not mind, I can pm you with the credentials and you could probably take a look faster than us emailing back and forth?

    Thank you for your help btw! Very strong community! Let me know on the pm.

    Frank

  6. #6
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I know it's for IndexU. Is this for the paid version or IndexU lite?

  7. #7
    thatmtnman is offline Registered User
    Join Date
    Mar 2008
    Posts
    13

    Default the admin problem

    It's a free version I think its a one domain license with a free license. I didn't realize there was a difference.

    BTW while you are helping me, do you mind if I ask you other questions...for example...I was reading that someone installed a CMS...I wanted to ask if that would be some sort of module or a custom job? Those kinds of questions...

    Thanks!

    Frank
    ps-are you part of the dev/support team?

  8. #8
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    The free version is limited, both in what it can do and the support for it. That's why it's free.

    Yes I am part of the support team if you want to call it that. More like "I" am support and then there are the developers.

    Since this is an IndexU Lite issue I'm going to move this to the IndexU Lite forum.

    You can send me what you have in the application.php but that may not be too much help because I won't know what your paths are. I'll do my best but remember, IndexU Lite is officially unsupported.

  9. #9
    thatmtnman is offline Registered User
    Join Date
    Mar 2008
    Posts
    13

    Default Hi again!

    Is the indexu light a different program? I thought the only difference was the number of links it would support (limited to 100) ?

    If its ok with you, I will just pm you the credentials so you can look at what ever you need to look at..I have no clue what I am doing I won't be on the light version long as long as I can take a look at the thing and see what it does).

    BTW.is there CMS functionality for this?

    Cheers

    Frank

  10. #10
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    It will only support 100 links, but it's files are also encoded which is another huge difference. The paid version of IndexU does not have encoded files and is not limited in number of links.

    As for a CMS, what exactly are you looking for? IndexU in itself can be considered a CMS so you need to explain exactly what you want.

    I'm not going to log into your server, that's what "unsupported" means. I'll take a look at what you have for $siteurl and $base_path and those could be posted right here in the forum.

  11. #11
    thatmtnman is offline Registered User
    Join Date
    Mar 2008
    Posts
    13

    Default admin issues

    Hi again...

    Right now I don't care about the encoding or the link limitation, I just want to see what the app is capable of and play with it for a week or so before I bet the farm on it.

    As for CMS...there are a few sites mentioned in the forum that say they have added a CMS, and a few that seem to have very CMS like capabilities. That is to say, they are posting text and media content to pages in various locations, either as stand alones in the traditional newspaper sense or under links. I'd like to point those out to you actually to find out if those are standard apps just customized with the existing sets of options that come with the package, or if they are custom coded. Do you mind?

    Here is the application.php page...

    <?php

    /**
    *
    * INDEXU
    * Copyright(C), Nicecoder, 2000-2006, All Rights Reserved.
    *
    * INDEXU(tm) is protected by Indonesia and International copyright laws.
    * Unauthorized use or distribution of INDEXU(tm) is strictly prohibited,
    * violators will be prosecuted. To obtain a license for using INDEXU(tm),
    * please register at Nicecoder home page at http://www.nicecoder.com
    *
    * Author:
    * Dody Rachmat Wicaksono (dody@nicecoder.com)
    * M. Zuber (zubby@nicecoder.com)
    *
    */


    define('INDEXU', 1);

    /*================================================= ==
    register_globals & magic_quotes_gpc = on
    ================================================== =*/
    function safe_extract($var) {
    static $forbidden = array('_FILES', '_ENV', '_GET', '_POST', '_COOKIE', '_SERVER', '_SESSION', 'GLOBALS');
    while (list($k, $v) = @each($var)) {
    if (!in_array($k, $forbidden)) {
    $GLOBALS[$k] = $v;
    }
    else {
    exit;
    }
    }
    }
    function addslashes_deep($value) {
    $value = is_array($value) ? array_map('addslashes_deep', $value) : addslashes($value);
    return $value;
    }
    if (!get_magic_quotes_gpc()) {
    if (!empty($_GET)) {
    $_GET = addslashes_deep($_GET);
    safe_extract($_GET);
    }
    if (!empty($_POST)) {
    $_POST = addslashes_deep($_POST);
    safe_extract($_POST);
    }
    if (!empty($_COOKIE)) {
    $_COOKIE = addslashes_deep($_COOKIE);
    safe_extract($_COOKIE);
    }
    }
    elseif (!ini_get('register_globals')) {
    if (!empty($_GET)) safe_extract($_GET);
    if (!empty($_POST)) safe_extract($_POST);
    if (!empty($_COOKIE)) safe_extract($_COOKIE);
    }


    /*================================================= ==
    config
    ================================================== =*/

    $dbServer = "mysql";
    $dbHostname = "localhost";
    $dbUsername = "dbusername";
    $dbPassword = "password";
    $dbName = "db name";

    $site_url = "http://theaimstockexchange.com/~theaimst";
    $base_path = "/home/theaimst/public_html/";
    $theme_path = $base_path . "themes/";
    $admin_template_path = $base_path . "admin_tpl/";

    $site_name = "The Aim Stock Exchange";

    $active_theme = 'kosmos';

    $email_address = "MyWebsite <myname@hotmail.com>";

    $spam_proof = 1;
    $enable_user_validation = 1;

    $allowed_file_extension = "gif,jpg,png,pdf,zip,doc";
    $google_key = "";
    $whosonline = "600";
    $reciprocal_check = 0;
    $urlcheck_limit = 1; // days for re-check url
    $pagerank_cache = 30; // days for caching pagerank

    $max_image_width = 1024; // in pixel
    $max_image_height = 756; // in pixel
    $max_file_size = 500; // in KB

    $only_registered_can_add_link = 0;
    $only_registered_can_add_review = 0;
    $db_use_persistent = 0;

    $paid_link_day_period = "30,60,90,180";
    $paid_link_price_factor = "1,1.5,2,3";

    $enable_html_tag = 1;
    $allowed_html_tag = "<b>,<strong>,<i>,<em>,<u>,<pre>,<blockquote>,<ol> ,<ul>,<li>";

    $enable_page_compression = 0;
    $enable_category_ajax = 0;
    $require_visit_category = 0;
    $additional_category_price = 0.5;


    /*================================================= ==
    include
    ================================================== =*/

    include $base_path . "lib/db.class.php";
    include $base_path . "lib/users.class.php";
    include $base_path . "lib/category.class.php";
    include $base_path . "lib/link.class.php";
    include $base_path . "lib/mailing_list.class.php";
    include $base_path . "lib/pagination.class.php";
    include $base_path . "lib/auth/auth.class.php";
    include $base_path . "lib/template.lib.php";
    include $base_path . "lib/form_validation.lib.php";
    include $base_path . "lib/mod-rewrite.lib.php";
    include $base_path . "lib/http.lib.php";
    include $base_path . "lib/filter.lib.php";
    include $base_path . "lib/payment.lib.php";
    include $base_path . "lib/misc.lib.php";
    include $base_path . "init.php";


    /*================================================= ==
    php configuration
    ================================================== =*/

    ini_set("max_execution_time", "60");
    ini_set('session.use_trans_sid', false);
    ini_set('session.use_only_cookies', true);
    ini_set('url_rewriter.tags', '');

    $indexu_version = "5.4.0";

    ?>

  12. #12
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    There are numerous mods available to add content to a site. As well as the ability to integrate wordpress. Many of them can be found from this site.

    $site_url = "http://theaimstockexchange.com/~theaimst";
    $base_path = "/home/theaimst/public_html/";

    Those two paths appear to be conflicting. Change the $site_url to

    $site_url = "http://theaimstockexchange.com/";

  13. #13
    thatmtnman is offline Registered User
    Join Date
    Mar 2008
    Posts
    13

    Default ok

    will try and get right back to you...

    Frank

  14. #14
    thatmtnman is offline Registered User
    Join Date
    Mar 2008
    Posts
    13

    Default

    ok...I made the change and logged in using username/password admn, and admin-there doesn't seem to be any difference really between the page I am seeing as admin and the front page except some of the content is missing...I am of course presuming there is an admin type of control panel for the application...maybe what I am seeing is what I am supposed to see?

  15. #15
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Do NOT use the URL http://theaimstockexchange.com/~theaimst

    Use http://theaimstockexchange.com/ to view the site and to get to the admin visit http://theaimstockexchange.com/admin/

Similar Threads

  1. use sneaky redirects with javascript mouseovers
    By bugsdirectory in forum Website development, hosting and promotion
    Replies: 0
    Last Post: 02-13-2006, 04:54 PM

Posting Permissions

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