Tifker hat geschrieben:Ich denke ich habe zur Zeit die phpbb Galerie 0.3.0 im Forum am laufen, weiß es aber nicht ganz genau?! Wo kann ich auslesen welche Version ich zur Zeit habe?
Wenn du Handyman's MOD Versioncheck nicht installiert hast, dann über die Datenbank.
Oder du bastelst dir ein kleines Script sowas wie:
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$gallery_root_path = GALLERY_ROOT_PATH;
include($phpbb_root_path . $gallery_root_path . 'includes/common.' . $phpEx);
if (!isset($album_config['phpbb_gallery_version']))
{
$album_config['phpbb_gallery_version'] = (isset($album_config['album_version'])) ? $album_config['album_version'] : '0.0.0';
if ($album_config['phpbb_gallery_version'] = '0.1.2')
{
$album_config['phpbb_gallery_version'] = '0.1.2';
}
if (in_array($album_config['phpbb_gallery_version'], array('0.1.3', '0.2.0', '0.2.1', '0.2.2')))
{
$album_config['phpbb_gallery_version'] = '0.2.2';
}
if (in_array($album_config['phpbb_gallery_version'], array('0.2.3', '0.3.0', '0.3.1')))
{
$album_config['phpbb_gallery_version'] = '0.3.1';
}
else
{
// No version-number problems since 0.4.0-RC1
$album_config['phpbb_gallery_version'] = $album_config['album_version'];
}
}
$version = $album_config['phpbb_gallery_version'];
echo "Your have phpBB Gallery $version installed.";
?>
Dann wird dir über des Echo angezeigt welche Version installiert ist.
EDIT: Code angepasst, sorry sollte
$album_config['phpbb_gallery_version'] heißen und nicht
$gallery_config['phpbb_gallery_version'].
EDIT2: Falls
$album_config['phpbb_gallery_version'] nicht funktioniert also falls das Echo nur "Your have phpBB Gallery installed." ausgibt, dann versuch es mit
$album_config['album_version'] dies war mal in einer ältere Version so.
EDIT3: Session hinzugefügt...