diff options
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/public/index.php b/public/index.php index fecf624..3540692 100644 --- a/public/index.php +++ b/public/index.php @@ -1,16 +1,6 @@ <!DOCTYPE html> <?php require "../lib/db.php"; ?> -<?php -function promobuff2str($price_buff, $count_buff) { - if ($count_buff == 1) return ((1-$price_buff)*100)."% korting"; - if ($count_buff <= 4) { - for ($i = $count_buff-1; $i > 0; $i--) - if (abs((($i/$count_buff)-$price_buff)/$price_buff) < 0.001) - return $i."+".($count_buff - $i)." gratis"; - } - return ((1-$price_buff)*100)."% korting per ".$count_buff."-pack"; -} -?> +<?php require "../lib/promo.php"; ?> <html> <head> <?php include 'head.php' ?> |