Witam. Mam problem że tak powiem bardzo prosty, aż za prosty. Na swojej stronie dodałem i zainstalowałem Gallery3 do dodawania i edytowania zdjęć. Wszystko ładnie poszło bez problemu, wszystko jest w php stworzone. I bez problemu jak klikam w odnośnik do galerii na swojej stronie to przekierowuję mnie na galerię , gdzie mogę dodawać i edytować zdjęcia. Problem w tym że chcę stworzyć odnośnik , który już jest na stronie galerri(strona główna) , który przekierowuje mnie po kliknięciu do mojego indexu.html głównego mojej strony internetowej . Za cholerę nie mogę znaleść strony w której mógłbym zmienić przekierowanie na moją strone internetową. W pliku galerri index.php nie ma takiej możliwości.
index.php galerii:
  1. <?php
  2. /**
  3.  * Gallery - a web based photo album viewer and editor
  4.  * Copyright (C) 2000-2013 Bharat Mediratta
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or (at
  9.  * your option) any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful, but
  12.  * WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14.  * General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
  19.  */
  20. // Set this to true to disable demo/debugging controllers
  21. define("IN_PRODUCTION", true);
  22.  
  23. // Gallery requires PHP 5.2+
  24. version_compare(PHP_VERSION, "5.2.3", "<") and
  25. exit("Gallery requires PHP 5.2.3 or newer (you're using " . PHP_VERSION . ")");
  26.  
  27. // Gallery is not supported on Windows.
  28. //if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
  29. // exit("Gallery is not supported on Windows (PHP reports that you're using: " . PHP_OS . ")");
  30. //}
  31.  
  32. // PHP 5.4 requires a timezone - if one isn't set date functions aren't going to work properly.
  33. // We'll log this once the logging system is initialized (in the gallery_event::gallery_ready).
  34. if (!ini_get("date.timezone")) {
  35. ini_set("date.timezone", "UTC");
  36. }
  37.  
  38. // Gallery requires short_tags to be on
  39. !ini_get("short_open_tag") and exit("Gallery requires short_open_tag to be on.");
  40.  
  41. // Suppress errors. For information on how to debug Gallery 3, see:
  42. // <a href="http://codex.galleryproject.org/Gallery3:FAQ#How_do_I_see_debug_information.3F" target="_blank">http://codex.galleryproject.org/Gallery3:F..._information.3F</a>
  43.  
  44. // Disabling display_errors will effectively disable Kohana error display
  45. // and logging. You can turn off Kohana errors in application/config/config.php
  46. ini_set("display_errors", false);
  47.  
  48. // Turn off session.use_trans_sid -- that feature attempts to inject session ids
  49. // into generated URLs and forms, but it doesn't interoperate will with Gallery's
  50. // Ajax code.
  51. ini_set("session.use_trans_sid", false);
  52.  
  53. // Restrict all response frames to the same origin for security
  54. header("X-Frame-Options: SAMEORIGIN");
  55.  
  56. define("EXT", ".php");
  57. define("DOCROOT", getcwd() . "/");
  58. define("KOHANA", "index.php");
  59.  
  60. // If the front controller is a symlink, change to the real docroot
  61. is_link(basename(__FILE__)) and chdir(dirname(realpath(__FILE__)));
  62.  
  63. // Define application and system paths
  64. define("APPPATH", realpath("application") . "/");
  65. define("MODPATH", realpath("modules") . "/");
  66. define("THEMEPATH", realpath("themes") . "/");
  67. define("SYSPATH", realpath("system") . "/");
  68.  
  69. // We only accept a few controllers on the command line
  70. if (PHP_SAPI == "cli") {
  71. switch ($arg_1 = $_SERVER["argv"][1]) {
  72. case "install":
  73. include("installer/index.php");
  74. exit(0);
  75. case "upgrade":
  76. case "package":
  77. $_SERVER["argv"] = array("index.php", "{$arg_1}r/$arg_1");
  78. define("TEST_MODE", 0);
  79. define("VARPATH", realpath("var") . "/");
  80. break;
  81.  
  82. case "test":
  83. array_splice($_SERVER["argv"], 1, 1, "gallery_unit_test");
  84. define("TEST_MODE", 1);
  85. if (!is_dir("test/var")) {
  86. @mkdir("test/var", 0777, true);
  87. @mkdir("test/var/logs", 0777, true);
  88. }
  89. @copy("var/database.php", "test/var/database.php");
  90. define("VARPATH", realpath("test/var") . "/");
  91. break;
  92.  
  93. default:
  94. print "To install:\n";
  95. print " php index.php install -d database -h host -u user -p password -x table_prefix \n\n";
  96. print "To upgrade:\n";
  97. print " php index.php upgrade\n\n";
  98. print "Developer-only features:\n";
  99. print " ** CAUTION! THESE FEATURES -WILL- DAMAGE YOUR INSTALL **\n";
  100. print " php index.php package # create new installer files\n";
  101. print " php index.php test # run unit tests\n";
  102. exit(1);
  103. }
  104. } else {
  105. define("TEST_MODE", 0);
  106. define("VARPATH", realpath("var") . "/");
  107. }
  108. define("TMPPATH", VARPATH . "tmp/");
  109.  
  110. if (file_exists("local.php")) {
  111. include("local.php");
  112. }
  113.  
  114. // Initialize.
  115. require APPPATH . "Bootstrap" . EXT;

jak wchodzę na stronę główną index.php , to po kliknięciu prawoklik "pokaż zródło strony" pokazuje mi się zrodło tej strony:
Podaję część , która mnie interesuje:
  1. <div id="doc4" class="yui-t5 g-view">
  2. <div id="g-header" class="ui-helper-clearfix">
  3. <div id="g-banner">
  4. <a id="g-logo" class="g-left" href="/%7Eklient_test/gallery3/index.php/" title="START Galerii">
  5. <img width="107" height="48" alt="Logo Galerii: Twoje zdjęcia na Twojej stronie" src="/%7Eklient_test/gallery3/lib/images/logo.png" />
  6. </a>
  7. <ul id='g-login-menu' class="g-inline ui-helper-clear-fix">
  8. <li>
  9. 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>
  10. <li>
  11. <a id='g-logout-link' class="g-menu-link "
  12. href="/%7Eklient_test/gallery3/index.php/logout?csrf=fb764ec6d2821899e49a441f9e96705b&amp;continue_url=http%3A%2F%2Flocalhost%2F%257Eklient_test%2Fgallery3%2Findex.php%2F"
  13. title="Wyloguj">
  14. Wyloguj </a>
  15. </li>
  16. </ul>
  17.  
  18.  
  19. <!-- hide the menu until after the page has loaded, to minimize menu flicker -->
  20. <div id="g-site-menu" style="visibility: hidden">
  21. <ul class="g-menu">
  22. <li>
  23. <a class="g-menu-link "
  24. href="/%7Eklient_test/gallery3/index.php/"
  25. title="Strona główna">
  26. Strona główna </a>
. Wiem ze php nie działa po stronie przeglądarki, przejrzałem wszystkie pliki php w katalogu gallery3 i nie znalazłem pliku php, w którym mógłbym modyfikować linki... Czy ktoś korzystał i używał gallery na swojej stronie i w jaki sposów mogę to rozwiązać. Siedzę nad tym od 3 godzin....
Podaję img:
Ogolnie chcę zrobić przekierowanie ze strony głównej do mojej strony internetowej. Niby banał, ale tu jestem chwilowo w kropce...Pozdrawiam