Problem z linkowaniem do swojej strony

Forum poświęcone skryptom, językom programowania, serwerom i hostingowi, domenom itp.
piotrinoo
Posty: 3
Rejestracja: 11 marca 2013, 21:36

Problem z linkowaniem do swojej strony

Post autor: piotrinoo » 11 marca 2013, 21:55

Witam wszystkich i pozdrawiam serdecznie. Mam mały problem z linkowaniem z gallery na swoją stronę internetową. Zacznę od początku. Mam utworzoną swoją stronę internetową. Do tego ściągnąłem i zainstalowałem na serverze gallery pobraną ze strony: http://galleryproject.org/. Wszystko ładnie się zainstalowało i po kliknięciu na odnośnik galeria na swojej stronie internetowej przekierowuje mnie na galerie. Problem w tym ze mam problem z utworzeniem ( zmianą linku na galerii , na powrót do mojej strony internetowej. Link działa na stronie gallery, ale po kliknięciu dalej jestem na stronie głównej galerii. A chcę zeby mnie przekierowało na moją stronę internetową. Problem niby błachy. Na stronie głównej gallerii jak wchodzę w zródło strony(index.php) to pokazuje mi html strony , i tam mogę zmienić (zaznaczone w screanie kółkiem czarnym) żeby mnie przekierowywało na moją stronę internetową.Podaję dane pliku index.php - zródło strony;http://imageshack.us/photo/my-images/694/indexphpa.jpg/
, wszystko byłoby pięknie gdyby w pliku index.php , który edytuję Notepad'em pokazywało mi html co w podglądzie zródłowym index.php z poziomu przeglądarki. Podaję cały plik index.php , który edytowałem programem Notepad:

Kod: Zaznacz cały

<?php
/**
 * Gallery - a web based photo album viewer and editor
 * Copyright (C) 2000-2013 Bharat Mediratta
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 */
// Set this to true to disable demo/debugging controllers
define("IN_PRODUCTION", true);

// Gallery requires PHP 5.2+
version_compare(PHP_VERSION, "5.2.3", "<") and
  exit("Gallery requires PHP 5.2.3 or newer (you're using " . PHP_VERSION  . ")");

// Gallery is not supported on Windows.
//if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
  //exit("Gallery is not supported on Windows (PHP reports that you're using: " . PHP_OS . ")");
//}

// PHP 5.4 requires a timezone - if one isn't set date functions aren't going to work properly.
// We'll log this once the logging system is initialized (in the gallery_event::gallery_ready).
if (!ini_get("date.timezone")) {
  ini_set("date.timezone", "UTC");
}

// Gallery requires short_tags to be on
!ini_get("short_open_tag") and exit("Gallery requires short_open_tag to be on.");

// Suppress errors.  For information on how to debug Gallery 3, see:
// http://codex.galleryproject.org/Gallery3:FAQ#How_do_I_see_debug_information.3F
error_reporting(0);

// Disabling display_errors will  effectively disable Kohana error display
// and logging. You can turn off Kohana errors in application/config/config.php
ini_set("display_errors", false);

// Turn off session.use_trans_sid -- that feature attempts to inject session ids
// into generated URLs and forms, but it doesn't interoperate will with Gallery's
// Ajax code.
ini_set("session.use_trans_sid", false);

// Restrict all response frames to the same origin for security
header("X-Frame-Options: SAMEORIGIN");

define("EXT", ".php");
define("DOCROOT", getcwd() . "/");
define("KOHANA",  "index.php");

// If the front controller is a symlink, change to the real docroot
is_link(basename(__FILE__)) and chdir(dirname(realpath(__FILE__)));

// Define application and system paths
define("APPPATH", realpath("application") . "/");
define("MODPATH", realpath("modules") . "/");
define("THEMEPATH", realpath("themes") . "/");
define("SYSPATH", realpath("system") . "/");

// We only accept a few controllers on the command line
if (PHP_SAPI == "cli") {
  switch ($arg_1 = $_SERVER["argv"][1]) {
  case "install":
    include("installer/index.php");
    exit(0);
  case "upgrade":
  case "package":
    $_SERVER["argv"] = array("index.php", "{$arg_1}r/$arg_1");
    define("TEST_MODE", 0);
    define("VARPATH", realpath("var") . "/");
    break;

  case "test":
    array_splice($_SERVER["argv"], 1, 1, "gallery_unit_test");
    define("TEST_MODE", 1);
    if (!is_dir("test/var")) {
      @mkdir("test/var", 0777, true);
      @mkdir("test/var/logs", 0777, true);
    }
    @copy("var/database.php", "test/var/database.php");
    define("VARPATH", realpath("test/var") . "/");
    break;

  default:
    print "To install:\n";
    print "  php index.php install -d database -h host -u user -p password -x table_prefix \n\n";
    print "To upgrade:\n";
    print "  php index.php upgrade\n\n";
    print "Developer-only features:\n";
    print "  ** CAUTION! THESE FEATURES -WILL- DAMAGE YOUR INSTALL **\n";
    print "  php index.php package  # create new installer files\n";
    print "  php index.php test     # run unit tests\n";
    exit(1);
  }
} else {
  define("TEST_MODE", 0);
  define("VARPATH", realpath("var") . "/");
}
define("TMPPATH", VARPATH . "tmp/");

if (file_exists("local.php")) {
  include("local.php");
}

// Initialize.
require APPPATH . "Bootstrap" . EXT;
Szukałem we wszystkich plikach tego kodu co mam w podglądzie zródłowym, ale nie mogę znalezc. Męczę się z tym od paru godzin. Chodzi mi po prostu o edycję, czy link do mojej strony internetowej z powrotem z galerii...Mam nadzieję że dobrze wytłumaczyłem mój problem, i ktoś mi pomoże...Pozdrawiam serdecznie

Aviator
Administrator
Posty: 2089
Rejestracja: 07 czerwca 2011, 22:14
Lokalizacja: ZS

Re: Problem z linkowaniem do swojej strony

Post autor: Aviator » 11 marca 2013, 22:09

Nie jest tu przypadkiem winny ten plik .htaccess od tej galerii?
Ten obrazek co wkleiłeś jest za mały, nic na nim nie widać.
Możesz podać adres swojej strony?
-=Jeżeli w moim poście brakuje znaków diakrytycznych, oznacza to, że posta wyklepałem przez telefon=-

piotrinoo
Posty: 3
Rejestracja: 11 marca 2013, 21:36

Re: Problem z linkowaniem do swojej strony

Post autor: piotrinoo » 11 marca 2013, 22:27

Psikus pisze:Nie jest tu przypadkiem winny ten plik .htaccess od tej galerii?
Ten obrazek co wkleiłeś jest za mały, nic na nim nie widać.
Możesz podać adres swojej strony?
Witam, dzięki za odpowiedz. Po wejściu na stronę z obrazkiem, kliknij w niego jeszcze raz, to się powiększy i będzie widać co i jak. Na razie stronę mam na webserv'ie a na serwer dam pózniej... W jaki sposób mogę dostać się do edycji pliku zeby zmienić scieżkę na moją strone internetowa powrotną?

Aviator
Administrator
Posty: 2089
Rejestracja: 07 czerwca 2011, 22:14
Lokalizacja: ZS

Re: Problem z linkowaniem do swojej strony

Post autor: Aviator » 11 marca 2013, 22:34

piotrinoo pisze:kliknij w niego jeszcze raz, to się powiększy i będzie widać co i jak.
kliknięcie ponownie w obrazek przekierowuje na stronę główną (przynajmniej u mnie)
piotrinoo pisze:W jaki sposób mogę dostać się do edycji pliku
Jeżeli chodzi Ci o program to Notepad++
-=Jeżeli w moim poście brakuje znaków diakrytycznych, oznacza to, że posta wyklepałem przez telefon=-

piotrinoo
Posty: 3
Rejestracja: 11 marca 2013, 21:36

Re: Problem z linkowaniem do swojej strony

Post autor: piotrinoo » 11 marca 2013, 23:10

Psikus pisze:
piotrinoo pisze:kliknij w niego jeszcze raz, to się powiększy i będzie widać co i jak.
kliknięcie ponownie w obrazek przekierowuje na stronę główną (przynajmniej u mnie)
piotrinoo pisze:W jaki sposób mogę dostać się do edycji pliku
Jeżeli chodzi Ci o program to Notepad++
Spróbuję dać jutro stronę na serwer i podam link do strony, mam program Notepad++ i tym edytuję ten plik index.php ale nie ma w nim html , który pokazuje mi w zrodle strony (i nie wiem dlaczego nie mam tego w edycji pliku index.php tego htmlu....) Wkleiłem w poprzednim poście cały plik index.php edytowany własnie w Notepad++...Bardzo mi zależy na pomocy w tej kwestii...Dziwne to że w pliku index.php nie mam html, a w zrodle strony index.html mam caly html... Wiem że pliki .php nie pokazują kodu php przez przeglądarkę, tylko html. Pozdrawiam

P.S Na chwilę obecną podaję kod strony zrodłowej index.php

Kod: Zaznacz cały

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="en" lang="en">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <title>
                        Gallery                  </title>
    <link rel="shortcut icon"
          href="/%7Eklient_test/gallery3/lib/images/favicon.ico"
          type="image/x-icon" />
    <link rel="apple-touch-icon-precomposed"
          href="/%7Eklient_test/gallery3/lib/images/apple-touch-icon.png" />
            
                            <script type="text/javascript">
    var MSG_CANCEL = "Anuluj";
    </script>
                
        
    <link rel="alternate" type="application/rss+xml" href="/%7Eklient_test/gallery3/index.php/rss/feed/gallery/album/1" />



                                <!--[if lte IE 8]>
    <link rel="stylesheet" type="text/css" href="/%7Eklient_test/gallery3/themes/wind/css/fix-ie.css"
          media="screen,print,projection" />
    <![endif]-->

    <!-- LOOKING FOR YOUR CSS? It's all been combined into the link below -->
    <link rel="stylesheet" type="text/css" href="/%7Eklient_test/gallery3/index.php/combined/css/7817802a15c2a68059b5f6937634d84c" media="screen,print,projection" />

    <!-- LOOKING FOR YOUR JAVASCRIPT? It's all been combined into the link below -->
    <script type="text/javascript" src="/%7Eklient_test/gallery3/index.php/combined/javascript/4417af4a13b1db1603e704c4df7d9b12"></script>
  </head>

  <body >
        <div id="doc4" class="yui-t5 g-view">
            <div id="g-header" class="ui-helper-clearfix">
        <div id="g-banner">
                    <a id="g-logo" class="g-left" href="/%7Eklient_test/gallery3/index.php/" title="START Galerii">
            <img width="107" height="48" alt="Logo Galerii: Twoje zdjęcia na Twojej stronie" src="/%7Eklient_test/gallery3/lib/images/logo.png" />
          </a>
                    <ul id='g-login-menu' class="g-inline ui-helper-clear-fix">
    <li>
      Zalogowany jako <a href='/%7Eklient_test/gallery3/index.php/user_profile/show/2' title='Twój profil' id='user_menu_edit_profile'>Gallery Administrator</a></li>
    <li>
  <a id='g-logout-link'     class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/logout?csrf=5b99d344ebaba389fcc5d64221cee359&continue_url=http%3A%2F%2Flocalhost%2F%257Eklient_test%2Fgallery3%2Findex.php%2F"
     title="Wyloguj">
    Wyloguj  </a>
</li>
  </ul>

          <form action="/%7Eklient_test/gallery3/index.php/search" id="g-quick-search-form" class="g-short-form">
          <ul>
    <li>
              <label for="g-search">Przeszukaj galerię</label>
            <input type="hidden" name="album" value="1" />
      <input type="text" name="q" id="g-search" class="text" />
    </li>
    <li>
      <input type="submit" value="Szukaj" class="submit" />
    </li>
  </ul>
</form>

          <!-- hide the menu until after the page has loaded, to minimize menu flicker -->
          <div id="g-site-menu" style="visibility: hidden">
            <ul  class="g-menu">
    <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/"
     title="Strona główna">
    Strona główna  </a>
</li>
    
<li title="Dodaj">
  <a href="#">
    Dodaj  </a>
  <ul>
        <li>
  <a      class="g-dialog-link "
     href="/%7Eklient_test/gallery3/index.php/uploader/index/1"
     title="Dodaj zdjęcia">
    Dodaj zdjęcia  </a>
</li>
        <li>
  <a      class="g-dialog-link "
     href="/%7Eklient_test/gallery3/index.php/form/add/albums/1?type=album"
     title="Dodaj album">
    Dodaj album  </a>
</li>
      </ul>
</li>

    
<li title="Opcje albumu">
  <a href="#">
    Opcje albumu  </a>
  <ul>
        <li>
  <a      class="g-dialog-link "
     href="/%7Eklient_test/gallery3/index.php/form/edit/albums/1?from_id=1"
     title="Edytuj album">
    Edytuj album  </a>
</li>
        <li>
  <a      class="g-dialog-link "
     href="/%7Eklient_test/gallery3/index.php/permissions/browse/1"
     title="Edytuj uprawnienia">
    Edytuj uprawnienia  </a>
</li>
        <li>
  <a id='g-organize-link'     class="g-dialog-link "
     href="/%7Eklient_test/gallery3/index.php/organize/dialog/1"
     title="Organizuj album">
    Organizuj album  </a>
</li>
      </ul>
</li>

    
<li title="Admin">
  <a href="#">
    Admin  </a>
  <ul>
        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin"
     title="Administracja">
    Administracja  </a>
</li>
        
<li title="Ustawienia">
  <a href="#">
    Ustawienia  </a>
  <ul>
        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/graphics"
     title="Grafika">
    Grafika  </a>
</li>
        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/languages"
     title="Języki">
    Języki  </a>
</li>
        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/comments"
     title="Komentarze">
    Komentarze  </a>
</li>
        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/movies"
     title="Movies">
    Movies  </a>
</li>
        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/advanced_settings"
     title="Zaawansowane">
    Zaawansowane  </a>
</li>
      </ul>
</li>

        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/modules"
     title="Moduły">
    Moduły  </a>
</li>
        
<li title="Zawartość">
  <a href="#">
    Zawartość  </a>
  <ul>
        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/manage_comments"
     title="Komentarze">
    Komentarze  </a>
</li>
        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/tags"
     title="Tagi">
    Tagi  </a>
</li>
      </ul>
</li>

        
<li title="Wygląd">
  <a href="#">
    Wygląd  </a>
  <ul>
        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/themes"
     title="Wybór motywu">
    Wybór motywu  </a>
</li>
        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/theme_options"
     title="Opcje motywu">
    Opcje motywu  </a>
</li>
        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/sidebar"
     title="Panel boczny">
    Panel boczny  </a>
</li>
      </ul>
</li>

        <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/users"
     title="Użytkownicy/Grupy">
    Użytkownicy/Grupy  </a>
</li>
                <li>
  <a      class="g-menu-link "
     href="/%7Eklient_test/gallery3/index.php/admin/maintenance"
     title="Konserwacja">
    Konserwacja  </a>
</li>
      </ul>
</li>

  </ul>

          </div>
          <script type="text/javascript"> $(document).ready(function() { $("#g-site-menu").css("visibility", "visible"); }) </script>

                  </div>

              </div>
      <div id="bd">
        <div id="yui-main">
          <div class="yui-b">
            <div id="g-content" class="yui-g">
                            <div id="g-info">
    <h1>Gallery</h1>
  <div class="g-description"></div>
</div>

<ul id="g-album-grid" class="ui-helper-clearfix">
      <li>Nie ma jeszcze żadnych zdjęć! <a href="/%7Eklient_test/gallery3/index.php/uploader/index/1" class="g-dialog-link">Dodaj jakieś</a>.</li>
  </ul>


<ul class="g-paginator ui-helper-clearfix">
  <li class="g-first">
            <a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
        <span class="ui-icon ui-icon-seek-first"></span>Pierwsza</a>
      
      <a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
      <span class="ui-icon ui-icon-seek-prev"></span>Poprzednia</a>
    </li>

  <li class="g-info">
          Brak zdjęć      </li>

  <li class="g-text-right">
      <a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
      <span class="ui-icon ui-icon-seek-next"></span>Następna</a>
  
            <a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
        <span class="ui-icon ui-icon-seek-end"></span>Ostatnia</a>
        </li>
</ul>
            </div>
          </div>
        </div>
        <div id="g-sidebar" class="yui-b">
                    <div id="g-view-menu" class="g-buttonset ui-helper-clearfix">
        </div>

<div id="g-user-language-block" class="g-block">
  <h2>Ustawienia języka</h2>
  <div class="g-block-content">
    <select name="g-select-session-locale" >
<option value="" selected="selected">« none »</option>
<option value="en_US">English (US)</option>
<option value="pl_PL">Polski</option>
</select><script type="text/javascript">
  $("select[name=g-select-session-locale]").change(function() {
    var old_locale_preference = "";
    var locale = $(this).val();
    if (old_locale_preference == locale) {
      return;
    }

    var expires = -1;
    if (locale) {
      expires = 365;
    }
    $.cookie("g_locale", locale, {"expires": expires, "path": "/"});
    window.location.reload(true);
  });
</script>

  </div>
</div>
<div id="g-metadata" class="g-block">
  <h2>Informacje o albumie</h2>
  <div class="g-block-content">
    <ul class="g-metadata">
    <li>
    <strong class="caption">Tytuł:</strong> Gallery  </li>
    <li>
    <strong class="caption">Właściciel:</strong> Gallery Administrator  </li>
  </ul>
  </div>
</div>
<div id="g-rss" class="g-block">
  <h2>Dostępne kanały RSS</h2>
  <div class="g-block-content">
    <ul id="g-feeds">
  <li style="clear: both;">
    <span class="ui-icon-left">
    <a href="/%7Eklient_test/gallery3/index.php/rss/feed/comment/newest">
      <span class="ui-icon ui-icon-signal-diag"></span>
      Wszystkie nowe komentarze    </a>
    </span>
  </li>
  <li style="clear: both;">
    <span class="ui-icon-left">
    <a href="/%7Eklient_test/gallery3/index.php/rss/feed/comment/per_item/1">
      <span class="ui-icon ui-icon-signal-diag"></span>
      Komentarze do Gallery    </a>
    </span>
  </li>
  <li style="clear: both;">
    <span class="ui-icon-left">
    <a href="/%7Eklient_test/gallery3/index.php/rss/feed/gallery/latest">
      <span class="ui-icon ui-icon-signal-diag"></span>
      Najnowsze zdjęcia i filmy    </a>
    </span>
  </li>
  <li style="clear: both;">
    <span class="ui-icon-left">
    <a href="/%7Eklient_test/gallery3/index.php/rss/feed/gallery/album/1">
      <span class="ui-icon ui-icon-signal-diag"></span>
      Gallery    </a>
    </span>
  </li>
</ul>
  </div>
</div>
<div id="g-tag" class="g-block">
  <h2>Popularne tagi</h2>
  <div class="g-block-content">
    <script type="text/javascript">
  $("#g-add-tag-form").ready(function() {
    var url = $("#g-tag-cloud-autocomplete-url").attr("href");
    $("#g-add-tag-form input:text").gallery_autocomplete(
      url, {
        max: 30,
        multiple: true,
        multipleSeparator: ',',
        cacheLength: 1,
        selectFirst: false
      }
    );
    $("#g-add-tag-form").ajaxForm({
      dataType: "json",
      success: function(data) {
        if (data.result == "success") {
          $("#g-tag-cloud").html(data.cloud);
        }
        $("#g-add-tag-form").resetForm();
      }
    });
  });
</script>
<div id="g-tag-cloud">
   <a id="g-tag-cloud-autocomplete-url" style="display: none"
      href="/%7Eklient_test/gallery3/index.php/tags/autocomplete"></a>
  </div>
<form action="/%7Eklient_test/gallery3/index.php/tags/create/1" method="post" id="g-add-tag-form" class="g-short-form">
<input type="hidden" name="csrf" value="5b99d344ebaba389fcc5d64221cee359"  />  <fieldset>
    <legend>Add Tag</legend>
    <ul>
      <li>
        <label for="name" >Dodaj opis do albumu</label>
        <input type="text" id="name" name="name" value="" class="textbox"  />
      </li>
      <li>
        <input type="submit" value="Dodaj tag" class="submit"  />
      </li>
    </ul>
    <input type="hidden" name="item_id" value="1"  />
  </fieldset>
</form>  </div>
</div>
                  </div>
      </div>
      <div id="g-footer" class="ui-helper-clearfix">
                
                <ul id="g-credits" class="g-inline">
          <li class="g-first">Powstało dzięki: <a href="http://galleryproject.org"><bdo dir="ltr">Gallery 3.0.5 (Daydreaming)</bdo></a></li>        </ul>
              </div>
    </div>
    
<script src="http://e.cooliris.com/slideshow/v/37732/go.js" type="text/javascript"></script>  </body>
</html>

ODPOWIEDZ

Wróć do „Webmastering”