Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: index is not working :-s  (Read 12091 times)

0 Members and 1 Guest are viewing this topic.

handsome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
index is not working :-s
« on: June 20, 2006, 08:19:31 am »

My gallery is OK every think is ok all pages are working

but index page is not opening :(

plz check

http://pakmale.awardspace.com/gallery/
Logged

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: index is not working :-s
« Reply #1 on: June 20, 2006, 08:22:50 am »

mayb i see the code of your index.php
what version are you using
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(http://img157.imageshack.us/img157/838/rangarang4xn.jpg)

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: index is not working :-s
« Reply #2 on: June 20, 2006, 08:31:46 am »

- everything is ok but index.php ( cpg ver is 1.4.8 )
- did you delete or edit your index.php
- may be your hosting add redirect or somthing to index.php
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: index is not working :-s
« Reply #3 on: June 20, 2006, 08:37:55 am »

hey i think you have a index.htm or html in ur directory too
but umm you mustve done something in ur index.php
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(http://img157.imageshack.us/img157/838/rangarang4xn.jpg)

handsome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: index is not working :-s
« Reply #4 on: June 20, 2006, 08:46:44 am »

mayb i see the code of your index.php
what version are you using


cpg ver is 1.4.8
Logged

handsome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: index is not working :-s
« Reply #5 on: June 20, 2006, 08:48:59 am »

- everything is ok but index.php ( cpg ver is 1.4.8 )
- did you delete or edit your index.php
- may be your hosting add redirect or somthing to index.php


hmmmmmm


i have no change any think in page index.php


so what did i do now ?
Logged

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: index is not working :-s
« Reply #6 on: June 20, 2006, 08:49:37 am »

yeah :)
i asked you to paste the code of your index.php with the insert code function :)
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(http://img157.imageshack.us/img157/838/rangarang4xn.jpg)

handsome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: index is not working :-s
« Reply #7 on: June 20, 2006, 08:52:31 am »

hey i think you have a index.htm or html in ur directory too
but umm you mustve done something in ur index.php


:-s

so now what can i do ?
Logged

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: index is not working :-s
« Reply #8 on: June 20, 2006, 08:53:18 am »

 ::) do as i suggested please  :)
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(http://img157.imageshack.us/img157/838/rangarang4xn.jpg)

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: index is not working :-s
« Reply #9 on: June 20, 2006, 09:02:32 am »

first try to copy your index.php again
Logged
‍I don't answer to PM with support question
Please post your issue to related board

handsome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: index is not working :-s
« Reply #10 on: June 20, 2006, 09:09:19 am »

::) do as i suggested please  :)


Quote
<?php
/*************************
  Coppermine Photo Gallery
  Coppermine version: 1.4.8
  $Date: 2006-06-08
**********************************************/
/*
Coppermine Photo Gallery index.php
This file is main display for categories and album, also displays thumbnails
*/

if (!$file) {
    /**
    * Sets the flag for lang file
    */
    define('INDEX_PHP', true);

    require('include/init.inc.php');

    if (!USER_ID && $CONFIG['allow_unlogged_access'] == 0) {
        $redirect = $redirect . "login.php";
        header("Location: $redirect");
        exit();
    }

    if ($CONFIG['enable_smilies']) include("include/smilies.inc.php");

///////////////////////////////////////////////
// Main code
//
if (!$file) {

    /**
    * See if $page has been passed in GET
    */
    if (isset($_GET['page'])) {
        $PAGE = max((int)$_GET['page'], 1);
        $USER['lap'] = $PAGE;
    } elseif (isset($USER['lap'])) {
        $PAGE = max((int)$USER['lap'], 1);
    } else {
        $PAGE = 1;
    }

    /**
    * Loop through the $elements array to build the page using the parameters
    * set in the config
    */


    /**
    * See if $cat has been passed in GET
    */

    if (isset($_GET['cat'])) {
        $cat = (int)$_GET['cat'];
    }
    // Gather data for categories
    $breadcrumb = '';
    $cat_data = array();
    $statistics = '';
    $STATS_IN_ALB_LIST = false;

    $cpg_show_private_album = ($CONFIG['allow_private_albums'])?($CONFIG['show_private']):(true);

    if (isset($cat)) {
        get_meta_album_set($cat,$META_ALBUM_SET);
    } else {
        get_meta_album_set(0,$META_ALBUM_SET);
    }

    get_cat_list($breadcrumb, $cat_data, $statistics);

    pageheader($BREADCRUMB_TEXT ? $BREADCRUMB_TEXT : $lang_index_php['welcome']);

    $elements = preg_split("|/|", $CONFIG['main_page_layout'], -1, PREG_SPLIT_NO_EMPTY);

    foreach ($elements as $element) {
        if (preg_match("/(\w+),*(\d+)*/", $element, $matches)){
            if (!isset($matches[2])) { // added to fix notice about undefined index
                $matches[2] = 0;
            }

            $matches = CPGPluginAPI::filter('plugin_block', $matches);

            if (is_array($matches)) {
                switch ($matches[1]) {
                    case 'breadcrumb':
                        // Added breadcrumb as a separate listable block from config
                        if (($breadcrumb != '' || count($cat_data) > 0) && $cat != 0) theme_display_breadcrumb($breadcrumb, $cat_data);
                        break;

                    case 'catlist':
                        if ($breadcrumb != '' || count($cat_data) > 0) theme_display_cat_list($breadcrumb, $cat_data, $statistics);
                        if (isset($cat) && $cat == USER_GAL_CAT) {
                            list_users();
                        }
                        flush();
                        break;

                    case 'alblist':
                        list_albums();
                        flush();
                        break;

                    case 'random':
                        display_thumbnails('random', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lastup':
                        display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lastalb':
                        display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        break;

                    case 'topn':
                        display_thumbnails('topn', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'toprated':
                        display_thumbnails('toprated', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lastcom':
                        display_thumbnails('lastcom', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lasthits':
                        display_thumbnails('lasthits', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'anycontent':
                        if ($cat == 0) {
                            ob_start();
                            /**
                             * Any php code or HTML can be put in this file and will be displayed
                             */
                            include('anycontent.php');
                            $anycontent = CPGPluginAPI::filter('anycontent',ob_get_contents());
                            ob_end_clean();
                            echo ($anycontent);
                        }
                        flush();
                        break;
                }
            }
        }
    }

    pagefooter();
}

ob_end_flush();
Logged

handsome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: index is not working :-s
« Reply #11 on: June 20, 2006, 09:17:28 am »

first try to copy your index.php again


i have done it

but still not working :(
Logged

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: index is not working :-s
« Reply #12 on: June 20, 2006, 09:18:46 am »

ur index.php has problems
wait actually u didnt copy the whole code did u  ???
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(http://img157.imageshack.us/img157/838/rangarang4xn.jpg)

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: index is not working :-s
« Reply #13 on: June 20, 2006, 09:20:11 am »

this is not regular index.php !
- are you using any auto installer, somthing like fantastico ?
- the solution (as I said before) is to copy orginal index.php that comes with 1.4.8 package.
Logged
‍I don't answer to PM with support question
Please post your issue to related board

handsome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: index is not working :-s
« Reply #14 on: June 20, 2006, 09:33:34 am »

ur index.php has problems
wait actually u didnt copy the whole code did u  ???


yes it is the whole cod
Logged

handsome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: index is not working :-s
« Reply #15 on: June 20, 2006, 09:36:01 am »

this is not regular index.php !
- are you using any auto installer, somthing like fantastico ?
- the solution (as I said before) is to copy orginal index.php that comes with 1.4.8 package.


hmm ok itry it again
Logged

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: index is not working :-s
« Reply #16 on: June 20, 2006, 09:39:13 am »

look if it didnt work delete your index.php and use the one i attached
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(http://img157.imageshack.us/img157/838/rangarang4xn.jpg)

handsome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: index is not working :-s
« Reply #17 on: June 20, 2006, 09:44:18 am »

look if it didnt work delete your index.php and use the one i attached


can u plz send me this code at handsomeprince1@gmail.com ?


i can not attach the file due to some server problem
Logged

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: index is not working :-s
« Reply #18 on: June 20, 2006, 09:53:23 am »

Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(http://img157.imageshack.us/img157/838/rangarang4xn.jpg)

handsome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: index is not working :-s
« Reply #19 on: June 20, 2006, 09:59:26 am »

if u look i have attached it 4u
its here
http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=32887.0;attach=4223

yeah thanks for it

but dear i can not download it due to server problem plz send me at handsomeprince1@gmail.com
Logged
Pages: [1] 2   Go Up
 

Page created in 0.025 seconds with 21 queries.