Exemplo n.º 1
0
    $location = $row['City'];
} else {
    $location = '';
}
//	echo $location;
$result2 = mysql_query("SELECT * FROM {$table1} WHERE id = '{$Owner}'");
$row = mysql_fetch_array($result2);
$vorname = $row['vorname'];
$name = $row['name'];
$result1 = mysql_query("SELECT language FROM {$table1} WHERE id = '{$uid}' AND aktiv = '1'");
$lang = mysql_result($result1, isset($i1), 'language');
//echo "<BR>".$lang."<BR>";
//############   Erstellung der Histogramme, falls nicht bereits vorhanden:   #######################
// Histogramme werden im Ordner /images/histogramme als XXXXX_hist_f.jpg abgelegt,
// wobei XXXXX fuer pic_id steht und f fuer die Farbe (rot, gruen, blau oder weiss -> rgbw)
generateHistogram($pic_id, $FileNameHQ, $sr);
//############   Histogramm-Erstellung beendet   ####################################################
$hist_file_r = $pic_id . '_hist_0.gif';
$hist_file_g = $pic_id . '_hist_1.gif';
$hist_file_b = $pic_id . '_hist_2.gif';
$hist_file = $pic_id . '_hist.gif';
//echo $hist_file;
//es wird ermittelt, ob der Original-Dateityp Meta-Daten-Speicherung unterstuetzt:
$file = strtolower($pic_path . "/" . restoreOriFilename($pic_id, $sr));
$ed = trim(shell_exec($exiftool . " " . $file));
//$ed = exifdaten, leer oder nicht
echo "<TABLE border = '0' style='width:450px;background-color:#FFFFFF' align = 'center'>\n\t<TR class='normal' style='height:3px;'>\n\t\t<TD class='normal' bgcolor='#FF9900' colspan = '2'>\n\t\t</TD>\n\t</TR>";
if ($view == 'kompact') {
    if ($ed !== '') {
        $link_text = " >>> <a href=\"details.php?pic_id={$pic_id}&view=all\">alle</a> Details";
    } else {
function generateHistogramOutbox($histtype, $uid)
{
    global $uid;
    $db = DB_DataObject::factory('playsms_tblSMSOutgoing');
    switch ($histtype) {
        case EXPORT_HISTOGRAM_MSG:
            $callback = 'histOutboxMsg';
            break;
        case EXPORT_HISTOGRAM_DAY:
            $callback = 'histOutboxDay';
            break;
        case EXPORT_HISTOGRAM_MONTH:
            $callback = 'histOutboxMonth';
            break;
    }
    $db->p_uid = $uid;
    $db->p_hidden = '0';
    return generateHistogram($db, $callback);
}