За последние 24 часа нас посетили 19478 программистов и 1610 роботов. Сейчас ищут 836 программистов ...

Простой вопрос о линке

Тема в разделе "PHP для новичков", создана пользователем stardel, 6 янв 2010.

  1. stardel

    stardel Активный пользователь

    С нами с:
    26 июн 2008
    Сообщения:
    67
    Симпатии:
    0
    Есть сайтик с галереей на php,там в самом верху есть кнопка контакты.Я тупо не могу найти где поменять линку....подскажите плизз) вот сайт: http://batikgallery.ru/gallery/main.php

    Вот половина кода(думаю там эта линка):

    PHP:
    1.  
    2. <?php
    3.  
    4. include(dirname(__FILE__) . '/bootstrap.inc');
    5.  
    6. /*
    7.  * If they don't have a setup password, we assume that the config.php is empty and this is an
    8.  * initial install
    9.  */
    10. if (!@$gallery->getConfig('setup.password')) {
    11.     /* May be invalid if a multisite install lost its config.php; galleryBaseUrl unknown */
    12.     header('Location: install/');
    13.     return;
    14. }
    15.  
    16. if ($gallery->isEmbedded()) {
    17.     require_once(dirname(__FILE__) . '/init.inc');
    18. } else {
    19.     /* If this is a request for a public data file, give it to the user immediately */
    20.     $unsanitizedView = isset($_GET[GALLERY_FORM_VARIABLE_PREFIX . 'view']) ?
    21.     $_GET[GALLERY_FORM_VARIABLE_PREFIX . 'view'] : null;
    22.     $itemId = (int)(isset($_GET[GALLERY_FORM_VARIABLE_PREFIX . 'itemId']) ?
    23.             $_GET[GALLERY_FORM_VARIABLE_PREFIX . 'itemId'] : null);
    24.     if ($unsanitizedView == 'core.DownloadItem' && !empty($itemId)) {
    25.     /*
    26.      * Our URLs are immutable because they have the serial numbers embedded.  If the browser
    27.      * presents us with an If-Modified-Since then it has the latest version of the file already.
    28.      */
    29.     if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])
    30.         || (function_exists('getallheaders')
    31.             && ($headers = getallheaders())
    32.             && (isset($headers['If-Modified-Since'])
    33.             || isset($headers['If-modified-since'])))) {
    34.         header('HTTP/1.0 304 Not Modified');
    35.         return;
    36.     }
    37.  
    38.     /*
    39.      * Fast download depends on having data.gallery.cache set, so set it now.  If for some
    40.      * reason we fail, we'll reset it in init.inc (but that's OK).
    41.      */
    42.     $gallery->setConfig(
    43.         'data.gallery.cache', $gallery->getConfig('data.gallery.base') . 'cache/');
    44.  
    45.     $path = GalleryDataCache::getCachePath(
    46.         array('type' => 'fast-download', 'itemId' => $itemId));
    47.     /* We don't have a platform yet so we have to use the raw file_exists */
    48.     /* Disable fast-download in maintenance mode, admins still get via core.DownloadItem */
    49.     if (file_exists($path) && !$gallery->getConfig('mode.maintenance')) {
    50.         include($path);
    51.         if (GalleryFastDownload()) {
    52.         return;
    53.         }
    54.     }
    55.     }
    56.  
    57.     /* Otherwise, proceed with our regular process */
    58.     require_once(dirname(__FILE__) . '/init.inc');
    59.     $ret = GalleryInitFirstPass();
    60.     if ($ret) {
    61.     _GalleryMain_errorHandler($ret, null, false);
    62.     return;
    63.     }
    64.  
    65.     /* Process the request */
    66.     GalleryMain();
    67. }
    68.  
    69. /**
    70.  * Main handler for all Gallery pages/requests.
    71.  * @package Gallery
    72.  */
    73. function GalleryMain($embedded=false) {
    74.     global $gallery;
    75.  
    76.     /* Process the request */
    77.     list ($ret, $g2Data) = _GalleryMain($embedded);
    78.     if (!$ret) {
    79.     $gallery->performShutdownActions();
    80.  
    81.     /* Write out our session data */
    82.     $session =& $gallery->getSession();
    83.     $ret = $session->save();
    84.     }
    85.  
    86.     /* Complete our transaction */
    87.     if (!$ret && $gallery->isStorageInitialized()) {
    88.     $storage =& $gallery->getStorage();
    89.     $ret = $storage->commitTransaction();
    90.     }
    91.  
    92.     /* Error handling (or redirect info in debug mode) */
    93.     if ($ret) {
    94.     _GalleryMain_errorHandler($ret, $g2Data);
    95.     $g2Data['isDone'] = true;
    96.  
    97.     if ($ret && $gallery->isStorageInitialized()) {
    98.         /* Nuke our transaction, too */
    99.         $storage =& $gallery->getStorage();
    100.         $storage->rollbackTransaction();
    101.  
    102.         /* Reset the auth token */
    103.         if ($ret->getErrorCode() & ERROR_REQUEST_FORGED) {
    104.         $session =& $gallery->getSession();
    105.         $ret2 = $storage->beginTransaction();
    106.         if (!$ret2) {
    107.             $ret2 = $session->save();
    108.         }
    109.         if (!$ret2) {
    110.             $storage->commitTransaction();
    111.         }
    112.         }
    113.     }
    114.     } else if (isset($g2Data['redirectUrl'])) {
    115.     /* If we're in debug mode, show a redirect page */
    116.     print '<h1> Debug Redirect </h1> ' .
    117.         'Not automatically redirecting you to the next page because we\'re in debug mode<br/>';
    118.     printf('<a href="%s">Continue to the next page</a>', $g2Data['redirectUrl']);
    119.     print '<hr/>';
    120.     print '<pre>';
    121.     print $gallery->getDebugBuffer();
    122.     print '</pre>';
    123.     }
    124.  
    125.     return $g2Data;
    126. }
    127.  
     
  2. stardel

    stardel Активный пользователь

    С нами с:
    26 июн 2008
    Сообщения:
    67
    Симпатии:
    0
    Решение найдено)