Bar Mod: weisse Seite im ACP
Verfasst: 29.04.2008 15:54
hi bei mir ist das linke frame im ACP weiß nachdem ich shop-bar installiert habe... der fehler liegt an der functions.php. weil sobald ich die gänderte datei hochlade das frame weiß wird...
in der installation steht aber nur eine änderung zu der datei:
hier der dl-link:
http://www.zarath.com/mods/shop_bar_1.0.0.zip
in der installation steht aber nur eine änderung zu der datei:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( !(function_exists(duration)) )
{
function duration($seconds)
{
global $lang;
if ( $seconds > 86399 )
{
$days = floor($seconds / 86400);
$seconds = ($seconds - ($days * 86400));
$string .= ( $days > 1 ) ? $days .' ' . $lang['jobs_days'] . ', ' : $days .' ' . $lang['jobs_day'] . ', ';
}
if ( $seconds > 3599 )
{
$hours = floor($seconds / 3600);
if ( $seconds != 0 )
{
$string .= ( $hours > 1 ) ? $hours .' ' . $lang['jobs_hours'] . ', ' : $hours .' ' . $lang['jobs_hour'] . ', ';
}
$seconds = ( $days > 0 ) ? 0 : ( $seconds - ($hours * 3600) );
}
if ( $seconds > 59 )
{
$minutes = floor($seconds / 60);
if ( $seconds != 0 )
{
$string .= ( $minutes > 1) ? $minutes .' ' . $lang['jobs_minutes'] . ', ' : $minutes .' ' . $lang['jobs_minute'] . ', ';
}
$seconds = ( $hours > 0 ) ? 0 : ($seconds - ($minutes * 60));
}
if ( $seconds > 0 )
{
$string .= ( $seconds > 1 ) ? $seconds . ' ' . $lang['jobs_seconds'] . ', ' : $seconds . ' ' . $lang['jobs_second'] . ', ';
}
$string = substr($string, 0, -2);
return $string;
}
}
//
// Start drunk create functions...
//
function drunk_letters($rand, $higher)
{
$alpha = array_merge(range("a", "z"));
$return_alpha = array();
for ($i = 0; $i < 26; $i++)
{
if ( rand(1,$rand) > $higher ) { $return_alpha[] = $alpha[$i]; }
}
return $return_alpha;
}
function drunk_replace($alpha)
{
$alpha_count = count($alpha);
$replaces = array();
for ($i = 0; $i < $alpha_count; $i++)
{
$replaces[] = "/" . $alpha[$i] . "/";
}
return $replaces;
}
function drunk_replaces($alpha)
{
//
// Create drunk replacement vars!
//
$drunk_a = array('aa', 'ah', 'oa', 'aa', 'ah', 'oa', 'A', 'ahhh');
$drunk_b = array('B', 'vb', 'vb');
$drunk_c = array('C', 'cj', 'sj', 'zj', 'cj', 'sj', 'zj');
$drunk_d = array('D');
$drunk_e = array('E', 'eh', 'eh');
$drunk_f = array('F', 'fFf', 'fff', 'fFf', 'fff');
$drunk_g = array('G');
$drunk_h = array('H', 'hh', 'hhh', 'Hhh', 'HhH', 'hh', 'hhh', 'Hhh', 'HhH');
$drunk_i = array('I', 'Ii', 'ii', 'Iii', 'iI', 'Ii', 'ii', 'Iii', 'iI');
$drunk_j = array('J', 'jj', 'Jj', 'jj', 'Jj');
$drunk_k = array('K');
$drunk_l = array('L');
$drunk_m = array('M', 'mM', 'MmM', 'mm', 'mmm', 'mmmm', 'mmmmm', 'mM', 'MmM', 'mm', 'mmm', 'mmmm', 'mmmmm');
$drunk_n = array('N', 'Nn', 'nn', 'nnn', 'nNn', 'Nn', 'nn', 'nnn', 'nNn');
$drunk_o = array('ao', 'oo', 'aOoo', 'ooo', 'Ooo', 'ooOo');
$drunk_p = array('P', 'pah');
$drunk_q = array('Q', 'ku', 'kukeleku', 'ququ', 'ku', 'kukeleku', 'ququ');
$drunk_r = array('R', 'erR', 'Rr');
$drunk_s = array('ss', 'sSss', 'ZSssS', 'sSzzsss', 'zzZzssZ');
$drunk_t = array('T');
$drunk_u = array('U', 'Uh', 'uhhu', 'uhU', 'Uhuhhuh');
$drunk_v = array('V', 'vz');
$drunk_w = array('W', 'Ww');
$drunk_x = array('X', 'xz', 'kz', 'iks', 'xz', 'kz', 'iks');
$drunk_y = array('Y');
$drunk_z = array('Z', 'zZ', 'Zzz', 'ZSz', 'ZzzZz', 'szz', 'sZZz', 'Zsszzsz', 'zZ', 'Zzz', 'ZSz', 'ZzzZz', 'szz', 'sZZz', 'Zsszzsz');
//
// End drunk replacement vars!
//
$alpha_count = count($alpha);
$replaces = array();
for ($i = 0; $i < $alpha_count; $i++)
{
$temp_var = 'drunk_' . $alpha[$i];
$rand = rand(0, count(${$temp_var})-1);
$replaces[] = ${$temp_var}[$rand];
}
return $replaces;
}
//
// End drunk create functions...
//
http://www.zarath.com/mods/shop_bar_1.0.0.zip