diff --git a/admin/#config.php b/admin/#config.php deleted file mode 100644 index 8c477c9..0000000 --- a/admin/#config.php +++ /dev/null @@ -1,14 +0,0 @@ -connect_error) { - die("Connection failed: " . $db->connect_error); -} -?> \ No newline at end of file diff --git a/admin/2022-01-12_unzugeordnet.php b/admin/2022-01-12_unzugeordnet.php deleted file mode 100644 index a0dda3e..0000000 --- a/admin/2022-01-12_unzugeordnet.php +++ /dev/null @@ -1,77 +0,0 @@ -query($query1) or die("Cannot execute query1"); - - - while ($row1 = $result1->fetch_array()) { - $value2 = ''; - $mehrfachbelegung = trim(get_parameter(6)); - if($mehrfachbelegung == 0){ - $query2 = "SELECT reihe, platz - FROM gd_verfplaetze - WHERE concat(reihe,platz) not in (select concat(reihe,platz) from gd_buchung where tid=$termin and lfd_haushalt!=$row1[lfd_haushalt]) - AND reihe not in ('Sonntagschule', 'Vorsonntagschule') - order by reihe, platz - "; - }else{ - $query2 = "SELECT reihe, platz - FROM gd_verfplaetze - WHERE reihe not in ('Sonntagschule', 'Vorsonntagschule') - order by reihe, platz - "; - } - $result2 = $db->query( $query2) - or die ("Cannot execute query2"); - - $ln2 = 0; - while ($row2 = $result2->fetch_array()){ - $inner1[$ln2]['reihe'] = $row2['reihe']; - $inner1[$ln2]['platz'] = $row2['platz']; - $value2 = $inner1; - $ln2++; - } - - - $query_name = $db->query("SELECT bid, vorname, nachname - FROM gd_buchung - WHERE reihe = '' - AND lfd_haushalt= $row1[lfd_haushalt] - AND tid = $termin - ORDER BY bid - LIMIT 1"); - $row_name = $query_name->fetch_array(); - - $row1['inner'] = $value2; - $row1['tid'] = $termin; - $row1['vorname'] = $row_name['vorname']; - $row1['nachname'] = $row_name['nachname']; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); -} -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> diff --git a/admin/administration_frame.php b/admin/administration_frame.php deleted file mode 100644 index d5b323a..0000000 --- a/admin/administration_frame.php +++ /dev/null @@ -1,9 +0,0 @@ -display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/fill_qr.php b/admin/fill_qr.php deleted file mode 100644 index edd650e..0000000 --- a/admin/fill_qr.php +++ /dev/null @@ -1,26 +0,0 @@ -query($query3) or die("Cannot execute query3"); - - while ($row3 = $result3->fetch_array()) { - $result1 = $db->query("SELECT mail - FROM jumi_buchung - WHERE nachname='$row3[nachname]' - AND vorname='$row3[vorname]' - AND mail != '' - ORDER BY bid DESC - LIMIT 1"); - $row1 = $result1->fetch_array(); - $update = $db->query("UPDATE jumi_qr_fellbach - SET mail ='$row1[mail]' - WHERE id = $row3[id] - "); - } -?> diff --git a/admin/gd_verwaltung.php b/admin/gd_verwaltung.php deleted file mode 100644 index 2dee45c..0000000 --- a/admin/gd_verwaltung.php +++ /dev/null @@ -1,565 +0,0 @@ -query("SELECT COUNT(*) Anz - FROM jumi_buchung - WHERE tid=$termin"); - $row1 = $result1->fetch_array(); - $smarty->assign('verwaltung_anzges', $row1['Anz']); - - $result2 = $db->query("SELECT COUNT(distinct lfd_haushalt) Anz - FROM jumi_buchung - WHERE tid=$termin"); - $row2 = $result2->fetch_array(); - $smarty->assign('verwaltung_lfd_haushalte', $row2['Anz']); - $smarty->assign('verwaltung_kritischemarke', get_parameter(2)); - - # Gesperrt? - $result3 = $db->query("SELECT loginstop, date_format(loginstop, '%d.%m.%Y - %H:%i') dateform - FROM jumi_termine - WHERE tid=$termin"); - $row3 = $result3->fetch_array(); - if($row3['loginstop'] != '0000-00-00 00:00:00'){ - $sperrung = "1"; - $smarty->assign('verwaltung_sperrdat', $row3['dateform']); - }else{ - $sperrung = "0"; - } - $smarty->assign('verwaltung_sperrung', $sperrung); - - - - $query3 = "SELECT bid, nachname, vorname - FROM jumi_buchung - WHERE tid = $termin - ORDER BY nachname, vorname"; - - $result3 = $db->query($query3) or die("Cannot execute query3"); - - while ($row3 = $result3->fetch_array()) { - $table_data1[] = $row3; - } - $smarty->assign('table_data1', $table_data1); - - ## Fehlerhandling - $error1 = $_GET['error1']; - - $smarty->assign('verwaltung_value_nachname1', $_SESSION["nachname1"]); - $smarty->assign('verwaltung_value_vorname1', $_SESSION["vorname1"]); - $smarty->assign('verwaltung_value_nachname2', $_SESSION["nachname2"]); - $smarty->assign('verwaltung_value_vorname2', $_SESSION["vorname2"]); - $smarty->assign('verwaltung_value_nachname3', $_SESSION["nachname3"]); - $smarty->assign('verwaltung_value_vorname3', $_SESSION["vorname3"]); - $smarty->assign('verwaltung_value_nachname4', $_SESSION["nachname4"]); - $smarty->assign('verwaltung_value_vorname4', $_SESSION["vorname4"]); - $smarty->assign('verwaltung_value_nachname5', $_SESSION["nachname5"]); - $smarty->assign('verwaltung_value_mail', $_SESSION["mail"]); - $smarty->assign('verwaltung_value_vorname5', $_SESSION["vorname5"]); - - if($error1 == 1){ - $smarty->assign('verwaltung_error', 1); - $smarty->assign('verwaltung_error_text', 'Sie müssen zumindest eine Person erfassen.'); - } -} - -if ($action == 'del') { - - $bid = $_POST['del']; - $termin = $_SESSION["termin"]; - $_SESSION["sabmelde_bid"] = $bid; - - $result = $db->query("SELECT count(*) Anz - FROM jumi_buchung - WHERE bid = $bid - AND tid = $termin"); - $row = $result->fetch_array(); - - if($row['Anz'] == 0 or $row['Anz'] >1){ - $smarty->assign('abmelde_error', 1); - }else{ - $smarty->assign('abmelde_error', 0); - - - $query_termin = $db->query("SELECT date_format(datum, '%d.%m.%Y - %H:%i') beginn, hinweis - FROM jumi_termine - WHERE tid = $termin - LIMIT 1 - "); - $row_termin = $query_termin->fetch_array(); - $smarty->assign('abmelde_termin', $row_termin['beginn']); - $_SESSION["sabmelde_termin"] = $row_termin['beginn']; - - $result_name = $db->query("SELECT nachname, vorname - FROM jumi_buchung - WHERE bid = $bid"); - $row_name = $result_name->fetch_array(); - $smarty->assign('abmelde_vorname', $row_name['vorname']); - $smarty->assign('abmelde_nachname', $row_name['nachname']); - $_SESSION["sabmelde_vorname"] = $row_name['vorname']; - $_SESSION["sabmelde_nachname"] = $row_name['nachname']; - } -} - -if ($action == 'del2') { - $bid = $_SESSION["sabmelde_bid"]; - $antwort = $_GET['antwort']; - $termin = $_SESSION["sabmelde_termin"]; - $tid = $_SESSION["termin"]; - $vorname = $_SESSION["sabmelde_vorname"]; - $nachname = $_SESSION["sabmelde_nachname"]; - - # Platz herausfinden, für automatischen reload - $result_name = $db->query("SELECT concat(reihe,platz) iframe - FROM jumi_buchung - WHERE bid = $bid - AND vorname = '$vorname' - AND nachname = '$nachname'"); - $row_name = $result_name->fetch_array(); - - if($row_name['iframe'] == ''){ - $iframe = "unzugeordnet"; - }else{ - $iframe = $row_name['iframe']; - } - $smarty->assign('iframe', "$iframe"); - - if($antwort == 'Y'){ - $sql1 = $db->query("DELETE FROM jumi_buchung WHERE bid = $bid"); - $ausgabe = "Sie haben $vorname $nachname vom Gottesdienst am $termin Uhr abgemeldet"; - }else{ - $ausgabe = "Sie haben $vorname $nachname vom Gottesdienst am $termin Uhr NICHT abgemeldet"; - } - - echo ""; - - $smarty->assign('abmelde_ausgabe', $ausgabe); - -} - - -if ($action == 'save') { - - if(isset($_POST['nachname1'])){ - $nachname1 = trim($_POST['nachname1']); - }else{ - $nachname1 = $_SESSION["nachname1"]; - } - - if(isset($_POST['vorname1'])){ - $vorname1 = trim($_POST['vorname1']); - }else{ - $vorname1 = $_SESSION["vorname1"]; - } - - if(isset($_POST['nachname2'])){ - $nachname2 = trim($_POST['nachname2']); - }else{ - $nachname2 = $_SESSION["nachname2"]; - } - - if(isset($_POST['vorname2'])){ - $vorname2 = trim($_POST['vorname2']); - }else{ - $vorname2 = $_SESSION["vorname2"]; - } - - if(isset($_POST['nachname3'])){ - $nachname3 = trim($_POST['nachname3']); - }else{ - $nachname3 = $_SESSION["nachname3"]; - } - - if(isset($_POST['vorname3'])){ - $vorname3 = trim($_POST['vorname3']); - }else{ - $vorname3 = $_SESSION["vorname3"]; - } - - if(isset($_POST['nachname4'])){ - $nachname4 = trim($_POST['nachname4']); - }else{ - $nachname4 = $_SESSION["nachname4"]; - } - - if(isset($_POST['vorname4'])){ - $vorname4 = trim($_POST['vorname4']); - }else{ - $vorname4 = $_SESSION["vorname4"]; - } - - if(isset($_POST['nachname5'])){ - $nachname5 = trim($_POST['nachname5']); - }else{ - $nachname5 = $_SESSION["nachname5"]; - } - - if(isset($_POST['vorname5'])){ - $vorname5 = trim($_POST['vorname5']); - }else{ - $vorname5 = $_SESSION["vorname5"]; - } - - if(isset($_POST['mail'])){ - $mail = trim($_POST['mail']); - }else{ - $mail = $_SESSION["mail"]; - } - $_SESSION["nachname1"] = $nachname1; - $_SESSION["vorname1"] = $vorname1; - $_SESSION["nachname2"] = $nachname2; - $_SESSION["vorname2"] = $vorname2; - $_SESSION["nachname3"] = $nachname3; - $_SESSION["vorname3"] = $vorname3; - $_SESSION["nachname4"] = $nachname4; - $_SESSION["vorname4"] = $vorname4; - $_SESSION["nachname5"] = $nachname5; - $_SESSION["vorname5"] = $vorname5; - $_SESSION["mail"] = $mail; - $termin = $_SESSION["termin"]; - - if ($nachname1 == '' AND $nachname2 == '' AND $nachname3 == '' AND $nachname4 == '' AND $nachname5 == '') { - $error1=1; - $error=true; - } - - if(isset($error)){ - echo ""; - exit; - } - -if(isset($termin)){ - $lfd_haushalt = get_lfd_haushalt($termin); - $datum=date("Y-m-d H:i:s"); - - if($nachname1 != ''){ - $sitzplatz1 = get_sitzplatz($nachname1, $vorname1); - $split1 = explode("|", $sitzplatz1); - $reihe1 = $split1[0]; - $platz1 = $split1[1]; - $sql1 = $db->query("insert into jumi_buchung (tid, nachname, vorname, reihe, platz, mail, lfd_haushalt, save_date) VALUES('$termin', '$nachname1', '$vorname1', '$reihe1', '$platz1', '$mail', '$lfd_haushalt', '$datum')"); - $bid1 = $db->insert_id; - $crypt1 = cryption("$bid1|$nachname1|$termin", 'e'); - if($reihe1!=''){ - $smarty->assign('iframe1', "$reihe1$platz1"); - }else{ - $smarty->assign('iframe1', "unzugeordnet"); - } - - } - if($nachname2 != ''){ - $sitzplatz2 = get_sitzplatz($nachname2, $vorname2); - $split2 = explode("|", $sitzplatz2); - $reihe2 = $split2[0]; - $platz2 = $split2[1]; - $sql1 = $db->query("insert into jumi_buchung (tid, nachname, vorname, reihe, platz, mail, lfd_haushalt, save_date) VALUES('$termin', '$nachname2', '$vorname2', '$reihe2', '$platz2', '$mail', '$lfd_haushalt', '$datum')"); - $bid2 = $db->insert_id; - $crypt2 = cryption("$bid2|$nachname2|$termin", 'e'); - if($reihe2!=''){ - $smarty->assign('iframe2', "$reihe2$platz2"); - }else{ - $smarty->assign('iframe2', "unzugeordnet"); - } - } - if($nachname3 != ''){ - $sitzplatz3 = get_sitzplatz($nachname3, $vorname3); - $split3 = explode("|", $sitzplatz3); - $reihe3 = $split3[0]; - $platz3 = $split3[1]; - $sql1 = $db->query("insert into jumi_buchung (tid, nachname, vorname, reihe, platz, mail, lfd_haushalt, save_date) VALUES('$termin', '$nachname3', '$vorname3', '$reihe3', '$platz3', '$mail', '$lfd_haushalt', '$datum')"); - $bid3 = $db->insert_id; - $crypt3 = cryption("$bid3|$nachname3|$termin", 'e'); - if($reihe3!=''){ - $smarty->assign('iframe3', "$reihe3$platz3"); - }else{ - $smarty->assign('iframe3', "unzugeordnet"); - } - } - if($nachname4 != ''){ - $sitzplatz4 = get_sitzplatz($nachname4, $vorname4); - $split4 = explode("|", $sitzplatz4); - $reihe4 = $split4[0]; - $platz4 = $split4[1]; - $sql1 = $db->query("insert into jumi_buchung (tid, nachname, vorname, reihe, platz, mail, lfd_haushalt, save_date) VALUES('$termin', '$nachname4', '$vorname4', '$reihe4', '$platz4', '$mail', '$lfd_haushalt', '$datum')"); - $bid4 = $db->insert_id; - $crypt4 = cryption("$bid4|$nachname4|$termin", 'e'); - if($reihe4!=''){ - $smarty->assign('iframe4', "$reihe4$platz4"); - }else{ - $smarty->assign('iframe4', "unzugeordnet"); - } - } - if($nachname5 != ''){ - $sitzplatz5 = get_sitzplatz($nachname5, $vorname5); - $split5 = explode("|", $sitzplatz5); - $reihe5 = $split5[0]; - $platz5 = $split5[1]; - $sql1 = $db->query("insert into jumi_buchung (tid, nachname, vorname, reihe, platz, mail, lfd_haushalt, save_date) VALUES('$termin', '$nachname5', '$vorname5', '$reihe5', '$platz5', '$mail', '$lfd_haushalt', '$datum')"); - $bid5 = $db->insert_id; - $crypt5 = cryption("$bid5|$nachname5|$termin", 'e'); - if($reihe5!=''){ - $smarty->assign('iframe5', "$reihe5$platz5"); - }else{ - $smarty->assign('iframe5', "unzugeordnet"); - } - } -#Anzahl der gemeldeten Haushalte überschritten? -kritische_haushalte($termin); - -} - - -if(isset($_SESSION["mail"]) AND $mail !=''){ - - - $query_termin = $db->query("SELECT date_format(datum, '%d.%m.%Y - %H:%i') beginn, hinweis - FROM jumi_termine - WHERE tid = $termin - LIMIT 1 - "); - $row_termin = $query_termin->fetch_array(); - - $empfaenger = "$mail"; - $betreff = "Registrierung zum Gottesdienst am $row_termin[beginn] Uhr"; - $text = " - - - Registrierung zum Gottesdienst - - - - Guten Tag!

- Sie haben sich zum Gottesdienst in der neuapostolischen Kirche Weinstadt-Beutelsbach registriert.
- Nachfolgend finden Sie die hinterlegten Daten: -
-
- - - - - - - - - - - "; - if($nachname1 != ''){ - $text .=" - - - - - "; - } - if($nachname2 != ''){ - $text .=" - - - - - "; - } - if($nachname3 != ''){ - $text .=" - - - - - "; - } - if($nachname4 != ''){ - $text .=" - - - - - "; - } - if($nachname5 != ''){ - $text .=" - - - - - "; - } - $text .=" - -
- - Datum: - - - - $row_termin[beginn]";if($row_termin['hinweis'] != ''){ $text .=" ($row_termin[hinweis])";} - $text.=" - -
-   - -   - -   -
- - Person 1: - - - - $nachname1, $vorname1 - - - Abmeldung -
- - Person 2: - - - - $nachname2, $vorname2 - - - Abmeldung -
- - Person 3: - - - - $nachname3, $vorname3 - - - Abmeldung -
- - Person 4: - - - - $nachname4, $vorname4 - - - Abmeldung -
- - Person 5: - - - - $nachname5, $vorname5 - - - Abmeldung -
-
- Link zur Registrierung: Registrierung zum Gottesdienst -

- Diese Mail wurde automatisch generiert!
- Antworten Sie daher nicht auf diese Mail
-
- Vielen Dank - - "; - - - $text = stripslashes($text); - $headers = "MIME-Version: 1.0\n"; - #$headers .= "Content-type: text/html; charset=iso-8859-1\n"; - $headers .= "Content-type: text/html; charset=utf-8\n"; - $headers .= "From: Gottesdienstregistrierung \n"; - #$headers .= "Bcc: \n"; - - $return = @mail($empfaenger, $betreff, $text, $headers); -} - - - echo ""; - -} - - -if ($action == 'sperrung') { - # 0 --> öffnen - # 1 --> sperren - $aktion = $_GET['aktion']; - $termin = $_SESSION["termin"]; - $datum = date("Y-m-d H:i:s"); - - if($aktion == 0){ - $update = $db->query("UPDATE jumi_termine - SET loginstop ='0000-00-00 00:00:00' - WHERE tid = $termin - "); - } - if($aktion == 1){ - $update = $db->query("UPDATE jumi_termine - SET loginstop ='$datum' - WHERE tid = $termin - "); - } - - echo ""; -} -if ($action == 'resetstandard') { - $termin = $_SESSION["termin"]; - # Alle löschen zum Termin, die einen Standardplatz haben laut Liste - $update = $db->query("UPDATE jumi_buchung - SET reihe='$reihe' - ,platz='$platz' - WHERE tid=$termin - "); - - $query3 = "SELECT bid, nachname, vorname - FROM jumi_buchung - WHERE tid = $termin - ORDER BY nachname, vorname"; - - $result3 = $db->query($query3) or die("Cannot execute query3"); - - while ($row3 = $result3->fetch_array()) { - $reihe = ""; - $platz = ""; - $vorname = $row3['vorname']; - $nachname = $row3['nachname']; - $sitzplatz = get_sitzplatz($nachname, $vorname); - $split = explode("|", $sitzplatz); - $reihe = $split[0]; - $platz = $split[1]; - if ($reihe != ''){ - $update = $db->query("UPDATE jumi_buchung - SET reihe='$reihe' - ,platz='$platz' - WHERE bid = $row3[bid] - AND tid=$termin - "); - } - } - # Refresh der Ansicht - echo ""; -} -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> diff --git a/admin/hauptframe.php b/admin/hauptframe.php deleted file mode 100644 index d5b323a..0000000 --- a/admin/hauptframe.php +++ /dev/null @@ -1,9 +0,0 @@ -display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/index.php b/admin/index.php deleted file mode 100644 index 12aaa65..0000000 --- a/admin/index.php +++ /dev/null @@ -1,86 +0,0 @@ -assign('index_error', 1); - - if($errorno == 1){ - $smarty->assign('index_error_text', "Es müssen alle Felder ausgefüllt werden"); - } - - if($errorno == 2){ - $smarty->assign('index_error_text', "Der Benutzername ist im System nicht vorhanden"); - } - - if($errorno == 3){ - $smarty->assign('index_error_text', "Der Benutzername oder das Passwort ist nicht korrekt."); - } - - # Daten aufbereiten bei Fehler - if(isset($_SESSION["global_username"])){ - $smarty->assign('index_user', $_SESSION["global_username"]); - } - } - - -} - -if($action == 'anmeld'){ - $username=strtoupper($_POST["user"]); //remove case sensitivity on the username - $password=$_POST["password"]; - - if($_POST["user"] != ""){ - $_SESSION["global_username"]=$username; - } - - if($username == "" OR $password == ""){ - echo ""; - }else{ - - - $db = dbconnect(); - $result = $db->query("SELECT bpmuid, uid, passwort FROM jumi_admin WHERE UPPER(uid)='$username'"); - $row = $result->fetch_array(); - - - if ($username != strtoupper($row['uid'])) { - echo ""; - } - // Passwort falsch - elseif (md5($password) != $row['passwort']){ //verschlüsseltes Passwort überprüfen - # Cookies werden bereits gesetzt, falls sich jemand ein passwort zusenden lässt. - $_SESSION["global_uid"] = $row['bpmuid']; - $_SESSION["global_username"] = $row['uid']; - echo ""; - }else{ - $db = dbconnect(); - $datum=date("Y-m-d H:i:s"); - $ip=getenv("REMOTE_ADDR"); - $agent=getenv("HTTP_USER_AGENT"); - $user_admin = $row['bpmuid']; - $_SESSION["global_uid"] = $user_admin; - $_SESSION["global_username"] = $row['uid']; - $result_1 = $db->query("INSERT INTO jumi_adminlog (Datum, IP, user_agent, bpmuid) VALUES ('$datum', '$ip', '$agent', '$user_admin')"); - $smarty->assign('index_login', "1"); - } - } - -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/indexframe.php b/admin/indexframe.php deleted file mode 100644 index ced4e83..0000000 --- a/admin/indexframe.php +++ /dev/null @@ -1,8 +0,0 @@ -display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/liste_qr_name.php b/admin/liste_qr_name.php deleted file mode 100644 index 4ca52df..0000000 --- a/admin/liste_qr_name.php +++ /dev/null @@ -1,252 +0,0 @@ -query("SET lc_time_names = 'de_DE';"); - - $query1 = "SELECT id, vorname, nachname, qr - FROM jumi_qr_fellbach - ORDER BY nachname ASC, vorname ASC - "; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - - while ($row1 = $result1->fetch_array()) { - $filename = $PNG_TEMP_DIR.$row1['qr'].'.png'; - QRcode::png($row1['qr'], $filename, H, 10, 2); - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); -} - -if ($action == 'ausgabe') { -require_once("../mpdf/vendor/autoload.php"); -$name = $_POST["name"]; - - #echo "Mailsend: ".$_POST['mailsend']; - #exit; - // Output a PDF file directly to the browser - if($_POST['mailsend'] != '1'){ - $smarty->assign('mailwindow', '0'); - $mpdf = new \Mpdf\Mpdf([ - 'mode' => 'utf-8', - 'format' => 'A4', - 'orientation' => 'P', - 'margin_top' => 10, - 'margin_bottom' => 20, - 'margin_left' => 10, - 'margin_right' => 16, - 'default_font' => 'arial', - - ]); - - - $buffer = ''; - $buffer.=" - "; - $cnt=0; - for($i=0;$iquery("SELECT id, nachname, vorname, qr, mail - FROM jumi_qr_fellbach - WHERE id = $name[$i]"); - $row_qr = $result_qr->fetch_array(); - $buffer.=" - "; - if($cnt == 3){ - #$buffer.=""; - $cnt = 0; - } - - $cnt++; - } - $buffer.=" - -
- QR-Code zur Erfassung der Gottesdienstteilnehmer in der Neuapostolischen Kirche Fellbach
-
-
- $row_qr[qr] -

$row_qr[vorname] $row_qr[nachname]


- Dieser QR-Code dient lediglich zur Einlasskontrolle in die KircheFellbach und enthält keine persönlichen Daten.

- Neuapostolische Kirche Fellbach
- Kastanienweg 5
- 70734 Fellbach -
-
"; - $mpdf->WriteHTML($buffer); - $mpdf->Output('QR_Codes_Fellbach.pdf', D); - }else{ - $smarty->assign('mailwindow', '1'); - - - for($i=0;$i 'utf-8', - 'format' => 'A6', - 'orientation' => 'P', - 'margin_top' => 10, - 'margin_bottom' => 20, - 'margin_left' => 10, - 'margin_right' => 16, - 'default_font' => 'arial', - - ]); - - $result_qr = $db->query("SELECT id, nachname, vorname, qr, mail - FROM jumi_qr_fellbach - WHERE id = $name[$i]"); - $row_qr = $result_qr->fetch_array(); - if($row_qr['mail'] != ''){ - $buffer = ''; - $buffer.=" - "; - $buffer.=" - "; - - $buffer.=" - -
- QR-Code zur Erfassung der Gottesdienstteilnehmer in der Neuapostolischen Kirche Fellbach
-
-
- $row_qr[qr] -

$row_qr[vorname] $row_qr[nachname]


- Dieser QR-Code dient lediglich zur Einlasskontrolle in die KircheFellbach und enthält keine persönlichen Daten.

- Neuapostolische Kirche Fellbach
- Kastanienweg 5
- 70734 Fellbach -
-
"; - $mpdf->WriteHTML($buffer); - $mpdf->Output("./pdfs/QR-Code_Fellbach_$row_qr[nachname]_$row_qr[vorname].pdf", F); - - /* leere Mail ausgeben */ - $to = $row_qr['mail']; // addresses to email pdf to - $from = "NAK Beutelsbach "; // address message is sent from - $subject = "CR Code Fellbach: $row_qr[nachname], $row_qr[vorname] Nr. $row_qr[qr]"; // email subject - $body = " - - QR Code Fellbach - - - - Guten Tag!

- im Anhang finden Sie Ihren QR Code für den Einlass in die Gemeinde Fellbach. -
-
-

- Diese Mail wurde automatisch generiert!
- Antworten Sie daher nicht auf diese Mail
-
- Vielen Dank - - "; - $pdfLocation = "./pdfs/QR-Code_Fellbach_$row_qr[nachname]_$row_qr[vorname].pdf"; // file location - $pdfName = "QR-Code_Fellbach_$row_qr[nachname]_$row_qr[vorname].pdf"; // pdf file name recipient will get - $filetype = "application/pdf"; // type - - // create headers and mime boundry - $eol = PHP_EOL; - $semi_rand = md5(time()); - $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; - $headers = "From: $from$eol" . - "MIME-Version: 1.0$eol" . - "Content-Type: multipart/mixed;$eol" . - " boundary=\"$mime_boundary\""; - - // add html message body - $message = "--$mime_boundary$eol" . - "Content-Type: text/html; charset=\"utf-8\"$eol" . - "Content-Transfer-Encoding: 7bit$eol$eol" . - $body . $eol; - - // fetch pdf - $file = fopen($pdfLocation, 'rb'); - $data = fread($file, filesize($pdfLocation)); - fclose($file); - $pdf = chunk_split(base64_encode($data)); - - // attach pdf to email - $message .= "--$mime_boundary$eol" . - "Content-Type: $filetype;$eol" . - " name=\"$pdfName\"$eol" . - "Content-Disposition: attachment;$eol" . - " filename=\"$pdfName\"$eol" . - "Content-Transfer-Encoding: base64$eol$eol" . - $pdf . $eol . - "--$mime_boundary--"; - - // Send the email - if(mail($to, $subject, $message, $headers)) { - $smarty->assign('message', 'Die Mails wurden versendet!'); - }else { - $smarty->assign('message', 'Die Mails wurde nicht alle versendet!'); - $name_kein_mailversand .= "$row_qr[vorname] $row_qr[nachname]
"; - } - }else{ - # Keine Mailadresse hinterlegt - $name_keine_mailadresse .= "$row_qr[vorname] $row_qr[nachname]
"; - } - unlink($pdfLocation); - } - - $smarty->assign('kein_mailversand', "$name_kein_mailversand"); - $smarty->assign('keine_Mailadresse', "$name_keine_mailadresse"); - } # Ende Häkchen Mailversand - - - -#echo "

";
-#echo $buffer;
-#echo "
";
-#exit;
-}
-
-$smarty->assign('action', "$action");
-$smarty->display("$template/admin/$templatename");
-
-?>
diff --git a/admin/liste_tn.php b/admin/liste_tn.php
deleted file mode 100644
index 654cb3d..0000000
--- a/admin/liste_tn.php
+++ /dev/null
@@ -1,1549 +0,0 @@
-query("SET lc_time_names = 'de_DE';");
-  
-  $query1 = "SELECT a.tid, date_format(datum, '%a, %d.%m.%Y - %H:%i Uhr')datum_form
-               FROM jumi_termine a
-              WHERE a.datum > ADDDATE(now(), -7)
-              GROUP BY a.tid, datum_form
-              ORDER BY datum ASC";
-  
-  $result1 = $db->query($query1) or die("Cannot execute query1");
-  
-  
-  while ($row1 = $result1->fetch_array()) {
-   $termin = $row1['tid'];
-   $result2 = $db->query("SELECT COUNT(*) Anz 
-                            FROM jumi_buchung 
-                           WHERE tid=$termin");
-   $row2 = $result2->fetch_array();
-   
-   $result3 = $db->query("SELECT COUNT(distinct lfd_haushalt) Anz 
-                            FROM jumi_buchung 
-                           WHERE tid=$termin");
-   $row3 = $result3->fetch_array();
-
-    $row1['anz_ges']         = $row2['Anz'];
-    $row1['anz_fam']         = $row3['Anz'];
-    $table_data1[]           = $row1;
-  }
-  $smarty->assign('table_data1', $table_data1);
-}
-
-if ($action == 'ausgabe') {
-  $termin = $_POST["termin"];
-  $german = $db->query("SET lc_time_names = 'de_DE';");
-  $query_termin = $db->query("SELECT date_format(datum, '%a, %d.%m.%Y - %H:%i Uhr')datum_form, hinweis,date_format(datum, '%Y-%m-%d')datum_output
-                                FROM jumi_termine
-                               WHERE tid = $termin");
-  $row_get_termin = $query_termin->fetch_array();
-  
-
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
-   $A1A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $A1B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $A1C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $A1D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $A1E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $A1F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K1A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K1B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K1C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K1D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K1E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K1F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K2A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K2B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K2C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K2D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K2E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K2F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K3A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K3B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K3C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K3D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K3E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K3F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K4A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K4B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K4C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K4D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K4E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K4F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K5A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K5B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K5C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K5D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K5E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K5F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K6A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K6B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K6C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K6D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K6E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K6F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K7A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K7B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K7C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K7D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K7E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K7F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K8A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K8B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K8C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K8D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K8E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K8F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K9A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K9B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K9C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K9D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K9E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K9F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K10A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K10B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K10C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K10D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K10E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $K10F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'D1' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $D1E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'M1' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $M1A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'M1' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $M1B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'M1' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $M1C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'F1' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $F1A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'F2' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $F2B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'F3' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $F3C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E1A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E1B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E1C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E1D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E1E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E1F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E2A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E2B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E2C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E2D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E2E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E2F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E3A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E3B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E3C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E3D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E3E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E3F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E4A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E4B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E4C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E4D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E4E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E4F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E5A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E5B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E5C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E5D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E5E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $E5F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
"; - } - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'Sonntagschule' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $sonntagschule .= "$row_tn_koord[nachname], $row_tn_koord[vorname]; "; - } - $sonntagschule = substr($sonntagschule,0, -2); - - $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'Vorsonntagschule' AND tid = $termin ORDER BY nachname, vorname ASC"; - $result1x = $db->query($query1x) or die('Cannot execute query1'); - while ($row_tn_koord = $result1x->fetch_array()) { - $vorsonntagschule .= "$row_tn_koord[nachname], $row_tn_koord[vorname]; "; - } - $vorsonntagschule = substr($vorsonntagschule,0, -2); - - - - -$buffer = ''; -$buffer .= ""; - -$buffer.="

$row_get_termin[datum_form]

- - - - - - - - -"; - $query1 = "SELECT vorname, nachname, reihe, platz, lfd_haushalt - FROM jumi_buchung - WHERE tid = $termin - AND reihe != '' - ORDER BY nachname, lfd_haushalt, vorname - "; - - $result1 = $db->query($query1) or die("Cannot execute query1a"); - - $smarty->assign('termine_aktdat', date("d.m.Y H:i", time() ) ) ; - $lfdnr = 1; - while ($row1 = $result1->fetch_array()) { - if($row1['platz'] == ''){ - $platz = "$row1[reihe]"; - }else{ - $platz = "$row1[reihe] / $row1[platz]"; - } - - if($row1['lfd_haushalt'] != $haushalt_last){ - if($tdclass == "td1"){ - $tdclass = "td2"; - }else{ - $tdclass = "td1"; - } - } - - $buffer.=" - - - - - - "; - $lfdnr++; - $haushalt_last = $row1['lfd_haushalt']; - } - -$buffer.=" -
- Nr. - - Name - - Sitzplatz - - Anwesend -
- $lfdnr - - $row1[nachname], $row1[vorname] - - $platz - -
-
"; - -require_once("../mpdf/vendor/autoload.php"); -$mpdf = new \Mpdf\Mpdf([ - 'mode' => 'utf-8', - 'format' => 'A4', - 'orientation' => 'P', - 'margin_top' => 10, - 'margin_bottom' => 20, - 'margin_left' => 10, - 'margin_right' => 16, - 'default_font' => 'arial', - -]); - - - - $buffer.=" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ABCDEF
A1
- -
Klavier - $A1A -
- - $A1B - - - $A1C - - - $A1D - - - $A1E - - - $A1F -
K1 - - $K1A - - - $K1B - - - $K1C - - - $K1D - - - $K1E - - - $K1F - K1
K2 - - $K2A - - - $K2B - - - $K2C - - - $K2D - - - $K2E - - - $K2F - K2
K3 - - $K3A - - - $K3B - - - $K3C - - - $K3D - - - $K3E - - - $K3F - K3
K4 - - $K4A - - - $K4B - - - $K4C - - - $K4D - - - $K4E - - - $K4F - K4
K5 - - $K5A - - - $K5B - - - $K5C - - - $K5D - - - $K5E - - - $K5F - K5
K6 - - $K6A - - - $K6B - - - $K6C - - - $K6D - - - $K6E - - - $K6F - K6
K7 - - $K7A - - - $K7B - - - $K7C - - - $K7D - - - $K7E - - - $K7F - K7
K8 - - $K8A - - - $K8B - - - $K8C - - - $K8D - - - $K8E - - - $K8F - K8
K9 - - $K9A - - - $K9B - - - $K9C - - - $K9D - - - $K9E - - - $K9F - K9
- - $K10D - - - $K10E - - - $K10F - K10
K10 - - $K10A - - - $K10B - - - $K10C -
D1 - - $D1E - D1
M1 - - $M1A - - - $M1B - - - $M1C -
F1 - - $F1A - - - $F1B - - - $F1C -
E1 - - $E1A - - - $E1B - - - $E1C - - - $E1D - - - $E1E - - - $E1F - E1
E2 - - $E2A - - - $E2B - - - $E2C - - - $E2D - - - $E2E - - - $E2F - E2
E3 - - $E3A - - - $E3B - - - $E3C - - - $E3D - - - $E3E - - - $E3F - E3
E4 - - $E4A - - - $E4B - - - $E4C - - - $E4D - - - $E4E - - - $E4F - E4
E5 - - $E5A - - - $E5B - - - $E5C -
- - $E5D - - - $E5E - - - $E5F - E5
ABCDEF
-
- - - - -
- Sonntagschule
- $sonntagschule -
- Vorsonntagschule
- $vorsonntagschule -
-
- Legende: - - - - -
- A1 = Altarraum
- K1-10 = Kirchenschiffreihen
- D1 = Diakon
-
- M1 = Mutter/Kind
- F1 = Foyer
- E1-5 Empore
-
-
"; -$mpdf->setFooter("Gottesdienstteilnehmer|{PAGENO} /{nb}|$row_get_termin[datum_form]"); - -#echo "
";
-#echo $buffer;
-#echo "
";
-#exit;
-$mpdf->WriteHTML($buffer);
-
-#echo "Mailsend: ".$_POST['mailsend'];
-#exit;
-// Output a PDF file directly to the browser
-  if($_POST['mailsend'] != '1'){
-    $smarty->assign('mailwindow', '0');
-    $mpdf->Output($row_get_termin['datum_output'].'_Gottesdienstteilnehmer.pdf', D);
-  }else{
-    $smarty->assign('mailwindow', '1');
-    $mpdf->Output('./pdfs/'.$row_get_termin['datum_output'].'_Gottesdienstteilnehmer.pdf', F); 
-    $to          = get_parameter(5); // addresses to email pdf to
-    $from        = "NAK Beutelsbach "; // address message is sent from
-    $subject     = "Liste der Gottesdienstteilnehmer am ".$row_get_termin['datum_form']; // email subject
-    $body = "
-             
-             Liste der Gottesdienstteilnehmer
-             
-             
-             
-             Guten Tag!

- im Anhang finden Sie die Teilnehmerliste des Gottesdienstes am: $row_get_termin[datum_form] -
-
-

- Diese Mail wurde automatisch generiert!
- Antworten Sie daher nicht auf diese Mail
-
- Vielen Dank - - "; - $pdfLocation = "./pdfs/".$row_get_termin['datum_output']."_Gottesdienstteilnehmer.pdf"; // file location - $pdfName = $row_get_termin['datum_output']."_Gottesdienstteilnehmer.pdf"; // pdf file name recipient will get - $filetype = "application/pdf"; // type - - // create headers and mime boundry - $eol = PHP_EOL; - $semi_rand = md5(time()); - $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; - $headers = "From: $from$eol" . - "MIME-Version: 1.0$eol" . - "Content-Type: multipart/mixed;$eol" . - " boundary=\"$mime_boundary\""; - - // add html message body - $message = "--$mime_boundary$eol" . - "Content-Type: text/html; charset=\"iso-8859-1\"$eol" . - "Content-Transfer-Encoding: 7bit$eol$eol" . - $body . $eol; - - // fetch pdf - $file = fopen($pdfLocation, 'rb'); - $data = fread($file, filesize($pdfLocation)); - fclose($file); - $pdf = chunk_split(base64_encode($data)); - - // attach pdf to email - $message .= "--$mime_boundary$eol" . - "Content-Type: $filetype;$eol" . - " name=\"$pdfName\"$eol" . - "Content-Disposition: attachment;$eol" . - " filename=\"$pdfName\"$eol" . - "Content-Transfer-Encoding: base64$eol$eol" . - $pdf . $eol . - "--$mime_boundary--"; - - // Send the email - if(mail($to, $subject, $message, $headers)) { - $smarty->assign('message', 'Die Mail wurde versendet!'); - } - else { - $smarty->assign('message', 'Die Mail wurde nicht versendet!'); - } - unlink($pdfLocation); - } -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/logout.php b/admin/logout.php deleted file mode 100644 index c148555..0000000 --- a/admin/logout.php +++ /dev/null @@ -1,12 +0,0 @@ -display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/menu_administration.php b/admin/menu_administration.php deleted file mode 100644 index 68d5e91..0000000 --- a/admin/menu_administration.php +++ /dev/null @@ -1,16 +0,0 @@ -assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/menu_qr.php b/admin/menu_qr.php deleted file mode 100644 index 68d5e91..0000000 --- a/admin/menu_qr.php +++ /dev/null @@ -1,16 +0,0 @@ -assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/menu_survey.php b/admin/menu_survey.php deleted file mode 100644 index 69926f5..0000000 --- a/admin/menu_survey.php +++ /dev/null @@ -1,16 +0,0 @@ -assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/menu_verwaltung.php b/admin/menu_verwaltung.php deleted file mode 100644 index 68d5e91..0000000 --- a/admin/menu_verwaltung.php +++ /dev/null @@ -1,16 +0,0 @@ -assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/menu_youtube.php b/admin/menu_youtube.php deleted file mode 100644 index 68d5e91..0000000 --- a/admin/menu_youtube.php +++ /dev/null @@ -1,16 +0,0 @@ -assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/old/Import_CSV_Hogrefe.xlsx b/admin/old/Import_CSV_Hogrefe.xlsx deleted file mode 100644 index 3d5a1fe..0000000 Binary files a/admin/old/Import_CSV_Hogrefe.xlsx and /dev/null differ diff --git a/admin/old/bewerber_daten.php b/admin/old/bewerber_daten.php deleted file mode 100644 index 58c5e24..0000000 --- a/admin/old/bewerber_daten.php +++ /dev/null @@ -1,1221 +0,0 @@ -query("SET lc_time_names = 'de_DE';"); - -# Dropdown befüllen übernimmt ajax:fetch.php -# $query1 = "SELECT ka_id, vorname, nachname -# FROM bpm_kandidat -# ORDER BY nachname, vorname"; -# -# $result1 = $db->query($query1) or die("Cannot execute query1a"); -# -# -# while ($row1 = $result1->fetch_array()) { -# $table_data1[] = $row1; -# } -# $smarty->assign('table_data1', $table_data1); - - if (isset($_GET['error'])) { - - $errorno = $_GET['error']; - $smarty->assign('bewerber_error', 1); - if ($errorno == 1) { - $smarty->assign('bewerber_error_text', "Es muss ein Bewerber ausgewählt werden."); - } - - } -} - -if ($action == 'ausgabe') { - if (isset($_POST['user'])) { - $username = mb_strtoupper($_POST["user"]); //remove case sensitivity on the username - } elseif(isset($_GET['user'])) { - $username = mb_strtoupper($_GET["user"]); - } else { - $username = $_SESSION["username"]; - } - - $_SESSION["username"] = $username; - - - if ($username == "") { - echo ""; - exit; - } - - # Fehler beim Upload anzeigen - if (isset($_GET['error'])) { - - $errorno = $_GET['error']; - $smarty->assign('index_error', 1); - - if ($errorno == 1) { - $smarty->assign('index_error_text', "Es dürfen nur PDF Dateien hochgeladen werden."); - } - if ($errorno == 2) { - # Tabelle bpm_parameter - $size_mb = trim(get_parameter(12)); - $smarty->assign('index_error_text', "Die Datei ist zu groß. Die Dateigröße darf max. $size_mb MB betragen."); - } - if ($errorno == 3) { - $smarty->assign('index_error_text', "Die Datei mit diesem Namen wurde bereits hochgeladen."); - } - if ($errorno == 4) { - # Tabelle bpm_parameter - $anz_dok = trim(get_parameter(13)); - $smarty->assign('index_error_text', "Es dürfen maximal $anz_dok Dateien hochgeladen werden."); - } - } - - $result = $db->query("SELECT a.ka_id, anrede, vorname, nachname, str, plz, ort, date_format(tm_datum, '%d.%m.%Y - %H:%i Uhr') tm_datum_form, date_format(gebdat, '%d.%m.%Y') gebdat_form, a.id, c.tan, hochschule, date_format(login_dat, '%d.%m.%Y - %H:%i Uhr') login_dat_form, login_dat, a.mail, a.tel - FROM bpm_kandidat a, bpm_term_kand b, bpm_tanpool c, bpm_termine d - WHERE a.ka_id = b.ka_id - AND b.tp_id = c.tp_id - AND b.tm_id = d.tm_id - AND a.ka_id = '$username' - ORDER BY tk_id DESC - LIMIT 1"); - $row = $result->fetch_array(); - - #Aktuelle Tan ermitteln - - $result_tan = $db->query("SELECT tan - FROM bpm_tanpool a, bpm_term_kand b - WHERE a.tp_id = b.tp_id - AND b.ka_id = '$username' - order by b.tk_id DESC - LIMIT 1"); - $row_tan = $result_tan->fetch_array(); - $tan = $row_tan['tan']; - $_SESSION["tan"] = $tan; - - if ($row['anrede'] == 'M') { - $anrede = 'Herr'; - } else { - $anrede = 'Frau'; - } - if($row['login_dat'] == '0000-00-00 00:00:00'){ - $tm_datum_form = "-"; - }else{ - $tm_datum_form = $row['login_dat_form']; - } - - $smarty->assign('status_anrede', $anrede); - $smarty->assign('status_vorname', $row['vorname']); - $smarty->assign('status_nachname', $row['nachname']); - $smarty->assign('status_gebdat', $row['gebdat_form']); - $smarty->assign('status_str', $row['str']); - $smarty->assign('status_plz', $row['plz']); - $smarty->assign('status_ort', $row['ort']); - $smarty->assign('status_mail', $row['mail']); - $smarty->assign('status_tel', $row['tel']); - $smarty->assign('status_tm_datum_form', $row['tm_datum_form']); - $smarty->assign('status_login_dat_form', $tm_datum_form); - $smarty->assign('status_hochschule', $row['hochschule']); - $smarty->assign('status_login_id', $row['id']); - $smarty->assign('status_login_tan', $tan); - - $result_ct = $db->query("SELECT count(*) Anz - FROM bpm_ergebnisse - WHERE ka_id =$row[ka_id] - AND tan='$tan'"); - $row_ct = $result_ct->fetch_array(); - - if ($row_ct['Anz'] == 0) { - $smarty->assign('status_erg_vorhanden', 0); - $smarty->assign('status_erg_bestanden', '3'); - } else { - $smarty->assign('status_erg_vorhanden', 1); - $result_erg = $db->query("SELECT satzerg, gemeinsamkeiten, rechenaufgaben, zahlenreihen, rechenzeichen, matrizen, merkf, summe, bestanden, date_format(einsicht_dat, '%d.%m.%Y, %H:%i Uhr') einsicht_dat_form, einsicht_dat - FROM bpm_ergebnisse - WHERE ka_id =$row[ka_id] - AND tan='$tan'"); - $row_erg = $result_erg->fetch_array(); - if ($row_erg['einsicht_dat'] == '0000-00-00 00:00:00') { - $einsicht_dat = "bisher keine Einsicht"; - } else { - $einsicht_dat = $row_erg['einsicht_dat_form']; - } - $smarty->assign('status_erg_satzerg', $row_erg['satzerg']); - $smarty->assign('status_erg_gemeinsamkeiten', $row_erg['gemeinsamkeiten']); - $smarty->assign('status_erg_rechenaufgaben', $row_erg['rechenaufgaben']); - $smarty->assign('status_erg_zahlenreihen', $row_erg['zahlenreihen']); - $smarty->assign('status_erg_rechenzeichen', $row_erg['rechenzeichen']); - $smarty->assign('status_erg_matrizen', $row_erg['matrizen']); - $smarty->assign('status_erg_merkf', $row_erg['merkf']); - $smarty->assign('status_erg_summe', $row_erg['summe']); - $smarty->assign('status_erg_einsicht_dat', $einsicht_dat); - - if ($row_erg['bestanden'] == 0) { - $smarty->assign('status_erg_bestanden', 0); - $smarty->assign('status_erg_bestanden_text', "nicht bestanden"); - } - if ($row_erg['bestanden'] == 1) { - $smarty->assign('status_erg_bestanden', 1); - $smarty->assign('status_erg_bestanden_text', "bestanden"); - } - - } - - # Ältere Testergebnisse vorhanden? - $query4 = "SELECT tan - FROM bpm_ergebnisse - WHERE ka_id =$row[ka_id] - AND tan!='$tan'"; - $result4 = $db->query($query4) or die("Cannot execute query4"); - - while ($row4 = $result4->fetch_array()) { - - $result_erg = $db->query("SELECT satzerg, gemeinsamkeiten, rechenaufgaben, zahlenreihen, rechenzeichen, matrizen, merkf, summe, bestanden, date_format(einsicht_dat, '%d.%m.%Y, %H:%i Uhr') einsicht_dat_form, einsicht_dat - FROM bpm_ergebnisse - WHERE ka_id =$row[ka_id] - AND tan='$row4[tan]'"); - $row_erg = $result_erg->fetch_array(); - - $result_testdat = $db->query("SELECT date_format(tm_datum, '%d.%m.%Y - %H:%i') datum_form - , CASE tm_standort - WHEN 'L' THEN 'Ludwigsburg' - WHEN 'K' THEN 'Kehl' - ELSE '' END as tm_standort - FROM bpm_term_kand a, bpm_tanpool b, bpm_termine c - WHERE a.tp_id = b.tp_id - AND a.tm_id =c.tm_id - AND tan = '$row4[tan]'"); - $row_testdat = $result_testdat->fetch_array(); - - if ($row_erg['einsicht_dat'] == '0000-00-00 00:00:00') { - $einsicht_dat = "bisher keine Einsicht"; - } else { - $einsicht_dat = $row_erg['einsicht_dat_form']; - } - - if ($row_erg['bestanden'] == 0) { - $status_erg_bestanden = "0"; - $status_erg_bestanden_text = "nicht bestanden"; - } - if ($row_erg['bestanden'] == 1) { - $status_erg_bestanden = "1"; - $status_erg_bestanden_text = "bestanden"; - } - $row4['status_erg_testdat'] = $row_testdat['datum_form']; - $row4['status_erg_standort'] = $row_testdat['tm_standort']; - $row4['status_erg_satzerg'] = $row_erg['satzerg']; - $row4['status_erg_gemeinsamkeiten'] = $row_erg['gemeinsamkeiten']; - $row4['status_erg_rechenaufgaben'] = $row_erg['rechenaufgaben']; - $row4['status_erg_zahlenreihen'] = $row_erg['zahlenreihen']; - $row4['status_erg_rechenzeichen'] = $row_erg['rechenzeichen']; - $row4['status_erg_matrizen'] = $row_erg['matrizen']; - $row4['status_erg_merkf'] = $row_erg['merkf']; - $row4['status_erg_summe'] = $row_erg['summe']; - $row4['status_erg_bestanden'] = $status_erg_bestanden; - $row4['status_erg_bestanden_text'] = $status_erg_bestanden_text; - $row4['status_erg_einsicht_dat'] = $einsicht_dat; - $table_data4[] = $row4; - } - $smarty->assign('table_data4', $table_data4); - - - - $query1 = "SELECT up_id, ka_id, file, beschreibung, date_format(upload_dat, '%d.%m.%Y, %H:%i Uhr') upload_dat - FROM bpm_upload - WHERE ka_id = $row[ka_id] - AND upload_dat != '0000-00-00 00:00:00'"; - $result1 = $db->query($query1) or die("Cannot execute query1b"); - - $username = $_SESSION["username"]; - $result_id = $db->query("SELECT id - FROM bpm_kandidat - WHERE ka_id = '$username'"); - $row_id = $result_id->fetch_array(); - $id = $row_id['id']; - - while ($row1 = $result1->fetch_array()) { - if (file_exists($row1['file'])) { - $exists = 1; - } else { - $exists = 0; - } - $basename = basename($row1['file']); - $basename_link = basename($row1['file']); - $rep = $id."_"; - $row1['exists'] = $exists; - $row1['basename'] = str_replace($rep, '', $basename); - $row1['basename_link'] = urldecode($row1['file']); - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - - # Gespeicherte Werte Noten - $result_note = $db->query("SELECT erfdat_hzb, erfdat_schnitt, hzb, hzb_punkte, zeugnisschnitt, zeugnisschnitt_punkte - FROM bpm_note - WHERE ka_id ='$username' - ORDER BY no_id desc - LIMIT 1"); - $row_note = $result_note->fetch_array(); - $row_cnt = $result_note->num_rows; - - if($row_note['erfdat_hzb'] != '0000-00-00 00:00:00' AND $row_cnt > 0){ - # HZB erfasst - $smarty->assign('notenart', "HZB"); - if($row_note['hzb_punkte'] != '0.00'){ - $smarty->assign('skala_value', "Punkte"); - $smarty->assign('note', "$row_note[hzb_punkte]"); - # Bei hzb gibts keine Punkte - #$smarty->assign('note_schnitt', "$row_note[hzb]"); - }else{ - $smarty->assign('skala_value', "Noten"); - $smarty->assign('note', "$row_note[hzb]"); - } - }elseif($row_note['erfdat_schnitt'] != '0000-00-00 00:00:00' AND $row_cnt > 0){ - # Durchscnittsnote erfasst - $smarty->assign('notenart', "Durchschnitt"); - if($row_note['zeugnisschnitt_punkte'] != '0.00'){ - $smarty->assign('skala_value', "Punkte"); - $smarty->assign('note', "$row_note[zeugnisschnitt_punkte]"); - $smarty->assign('note_schnitt', "$row_note[zeugnisschnitt]"); - }else{ - $smarty->assign('skala_value', "Noten"); - $smarty->assign('note', "$row_note[zeugnisschnitt]"); - } - }else{ - # Keine Auswahl - $smarty->assign('notenart', "Keine"); - $smarty->assign('skala_value', "Noten"); - $smarty->assign('note', ""); - } - - # Gespeicherte Werte Praxisstellen - $query2 = "SELECT a.ka_id, a.wu_id, b.bez, b.str, b.plz, b.ort, b.mail, a.status, date_format(sendedat, '%d.%m.%Y, %H:%i Uhr') sendedat, b.dst_id - FROM bpm_dst_wunsch a, bpm_dienststellen b - WHERE a.dst_id = b.dst_id - AND a.ka_id = $row[ka_id]"; - - $result2 = $db->query($query2) or die("Cannot execute query2"); - - while ($row2 = $result2->fetch_array()) { - if ($row2['status'] == 'V') { - $status = "Versendet
$row2[sendedat]"; - } - if ($row2['status'] == 'F') { - $status = "Fehler"; - } - if ($row2['status'] == 'O') { - $status = "Vorgemerkt"; - } - $row2['status'] = $status; - $table_data2[] = $row2; - } - $smarty->assign('table_data2', $table_data2); - - # Gespeicherte Werte: Sonstige Mails - $query3 = "SELECT sm_id, sender, sendermail, empfaenger, mail_betreff, mail_text, status, date_format(sendedat, '%d.%m.%y, %H:%i Uhr') sendedat_form - FROM bpm_sonstige_mail - WHERE ka_id = $row[ka_id] - ORDER BY sendedat desc"; - - $result3 = $db->query($query3) or die("Cannot execute query2"); - - while ($row3 = $result3->fetch_array()) { - if ($row3['status'] == 'V') { - $status = "Versendet
$row3[sendedat]"; - } - if ($row3['status'] == 'F') { - $status = "Fehler"; - } - $row3['status'] = $status; - $table_data3[] = $row3; - } - $smarty->assign('table_data3', $table_data3); - -} - -if ($action == 'mail') { - $wu_id = $_GET['wu_id']; - $result_erg = $db->query("SELECT mail_text - FROM bpm_dst_wunsch - WHERE wu_id =$wu_id"); - $row_erg = $result_erg->fetch_array(); - $smarty->assign('mail_text', $row_erg['mail_text']); - -} - -if ($action == 'mail_sonst') { - $sm_id = $_GET['sm_id']; - $result_erg = $db->query("SELECT mail_text, mail_betreff - FROM bpm_sonstige_mail - WHERE sm_id =$sm_id"); - $row_erg = $result_erg->fetch_array(); - $smarty->assign('mail_text', $row_erg['mail_text']); - $smarty->assign('mail_betreff', $row_erg['mail_betreff']); - -} - - -if ($action == 'mailsenden') { - $wu_id = $_GET['wu_id']; - - $result_erg = $db->query("SELECT mail_text, mail_betreff, b.mail, b.bez - FROM bpm_dst_wunsch a, bpm_dienststellen b - WHERE a.dst_id = b.dst_id - AND wu_id =$wu_id"); - $row_erg = $result_erg->fetch_array(); - $smarty->assign('mail_text', $row_erg['mail_text']); - $smarty->assign('mail_betreff', $row_erg['mail_betreff']); - $smarty->assign('mail_mail', $row_erg['mail']); - $smarty->assign('mail_bez', $row_erg['bez']); - $smarty->assign('mail_wuid', $wu_id); -} - -if ($action == 'mailsenden_sonst') { - $sm_id = $_GET['sm_id']; - - $result_erg = $db->query("SELECT sender, sendermail, empfaenger, mail_betreff, mail_text - FROM bpm_sonstige_mail - WHERE sm_id =$sm_id"); - $row_erg = $result_erg->fetch_array(); - $smarty->assign('mail_sender', $row_erg['sender']); - $smarty->assign('mail_sendermail', $row_erg['sendermail']); - $smarty->assign('mail_text', $row_erg['mail_text']); - $smarty->assign('mail_betreff', $row_erg['mail_betreff']); - $smarty->assign('mail_mail', $row_erg['empfaenger']); - $smarty->assign('mail_smid', $sm_id); -} - -if ($action == 'mailsenden2') { - $wu_id = $_POST['wuid']; - - $result_erg = $db->query("SELECT a.ka_id, mail_text, mail_betreff, b.mail, b.bez - FROM bpm_dst_wunsch a, bpm_dienststellen b - WHERE a.dst_id = b.dst_id - AND wu_id =$wu_id"); - $row_erg = $result_erg->fetch_array(); - - $result_kand = $db->query("SELECT hochschule - FROM bpm_kandidat - WHERE ka_id =$row_erg[ka_id]"); - $row_kand = $result_kand->fetch_array(); - - $hochschule = "$row_kand[hochschule]"; - if ($hochschule == 'Ludwigsburg') { - $anschrift = 'Reuteallee 36
71634 Ludwigsburg'; - $sender = "Hochschule Ludwigsburg"; - $sendermail = get_parameter(8); - } elseif ($hochschule == 'Kehl') { - $anschrift = 'Kinzigallee 1
77694 Kehl'; - $sender = "Hochschule Kehl"; - $sendermail = get_parameter(7); - } - $empfaenger = $row_erg['mail']; - $betreff = $_POST['betreff']; - $text = $_POST['text']; - - #echo " - #From: $sender - $sendermail
- #$empfaenger
- #$betreff
- #$text
- #$hochschule
"; - #exit; - - #Beim CKEDITOR die

Tags mit Zeilenabstand 0 in der Mail - $style =" - - - "; - $text = $style.$text; - - ## Mailversand: - $headers = "From: $sender <$sendermail>\r\n"; - $headers .= "MIME-Version: 1.0\r\n"; - $headers .= "Content-type: text/html; charset=utf-8\r\n"; - $return = @mail($empfaenger, $betreff, $text, $headers); - $heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php - $datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll - $text_db = addslashes($text); - $betreff_db = addslashes($betreff); - if ($return) { - $sql1 = $db->query("UPDATE bpm_dst_wunsch - SET mail_text = '$text_db' - , mail_betreff = '$betreff_db' - , status = 'V' - , sendedat = '$datum_db' - WHERE wu_id = $wu_id - "); - $smarty->assign('mail_senderg', "Die Mail wurde verschickt!"); - } else { - $sql1 = $db->query("UPDATE bpm_dst_wunsch - SET mail_text = '$text_db' - , mail_betreff = '$betreff_db' - , status = 'F' - WHERE wu_id = $wu_id - "); - $smarty->assign('mail_senderg', "Die Mail konnte nicht verschickt werden!
Prüfen Sie die Mailadresse der Praxisstelle."); - } -} - - -if ($action == 'mailsenden2_sonst') { - $sm_id = $_POST['smid']; - $sender = $_POST['mail_sender']; - $sendermail = $_POST['mail_sendermail']; - $empfaenger = $_POST['mail_mail']; - $betreff = $_POST['betreff']; - $text = $_POST['text']; - - #Beim CKEDITOR die

Tags mit Zeilenabstand 0 in der Mail - $style =" - - - "; - $text = $style.$text; - - #echo " - #From: $sender - $sendermail
- #$empfaenger
- #$betreff
- #$text
"; - #exit; - - ## Mailversand: - $headers = "From: $sender <$sendermail>\r\n"; - $headers .= "MIME-Version: 1.0\r\n"; - $headers .= "Content-type: text/html; charset=utf-8\r\n"; - $return = @mail($empfaenger, $betreff, $text, $headers); - $heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php - $datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll - $text_db = addslashes($text); - $betreff_db = addslashes($betreff); - if ($return) { - $sql1 = $db->query("UPDATE bpm_sonstige_mail - SET mail_text = '$text_db' - , mail_betreff = '$betreff_db' - , empfaenger = '$empfaenger' - , status = 'V' - , sendedat = '$datum_db' - WHERE sm_id = $sm_id - "); - $smarty->assign('mail_senderg', "Die Mail wurde verschickt!"); - } else { - $sql1 = $db->query("UPDATE bpm_sonstige_mail - SET mail_text = '$text_db' - , mail_betreff = '$betreff_db' - , empfaenger = '$empfaenger' - , status = 'F' - WHERE sm_id = $sm_id - "); - $smarty->assign('mail_senderg', "Die Mail konnte nicht verschickt werden!
Prüfen Sie die Mailadresse das Kandidaten."); - } -} - - - - -if ($action == 'chhs') { - - $hochschule = $_POST['hs']; - $username = $_SESSION["username"]; - - $sql1 = $db->query("UPDATE bpm_kandidat - SET hochschule = '$hochschule' - WHERE ka_id = $username - "); - echo ""; -} - -if ($action == 'upload') { - $username = $_SESSION["username"]; - $result_id = $db->query("SELECT id - FROM bpm_kandidat - WHERE ka_id = '$username'"); - $row_id = $result_id->fetch_array(); - $id = $row_id['id']; - - // http://www.tutorials.de/tutorials65420.html - #echo '

', print_r($_POST, true), '
'; - - $tempname = $_FILES['file']['tmp_name']; - $name = $_FILES['file']['name']; - - $type = $_FILES['file']['type']; - $size = $_FILES['file']['size']; - $einheit = "Byte"; // Für die Efolgsmeldung. - - $limitedext = array( - ".pdf" - ); //Erlaubte Dateieindung beim Upload - $extlimit = "yes"; //Do you want to limit the extensions of files uploaded - $ext = strrchr($name, '.'); - - - if (($extlimit == "yes") && (!in_array($ext, $limitedext))) { - echo ""; - exit; - } - # Tabelle bpm_parameter - $size_mb = trim(get_parameter(12)); - $size_bt = $size_mb * 1024 * 1024; - - if ($size > $size_bt) { - echo ""; - exit; - } - - $name = str_replace(array( - "ä", - "ö", - "ü", - "ß", - "Ä", - "Ü", - "Ü", - " " - ), array( - "ae", - "oe", - "ue", - "ss", - "Ae", - "Oe", - "Ue", - "_" - ), $name); - $ka_id = $_SESSION["ka_id"]; - $neu = $id . "_" . $name; - - $result_exists = $db->query("SELECT count(*) Anz - FROM bpm_upload - WHERE file = '$verz$neu' - AND ka_id = '$ka_id'"); - $row_exists = $result_exists->fetch_array(); - - $result_anz = $db->query("SELECT count(*) Anz - FROM bpm_upload - WHERE ka_id = '$ka_id'"); - $row_anz = $result_anz->fetch_array(); - - if ($row_exists['Anz'] > 0) { - echo ""; - exit; - } - - # Tabelle bpm_parameter - $anz_dok = trim(get_parameter(13)); - - if ($row_anz['Anz'] >= $anz_dok) { - echo ""; - exit; - } - - # Datei hochladen - $heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php - $datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll - move_uploaded_file("$tempname", "$verz$neu"); // Unterverzeichnisse wie folgt: copy("$tempname", "pdf/$neu"); - $sql1 = $db->query("insert into bpm_upload (ka_id, file, upload_dat) VALUES('$username', '$verz$neu', '$datum_db')"); - echo ""; - -} -if ($action == 'descr') { - // http://www.tutorials.de/tutorials65420.html - #echo '
', print_r($_POST, true), '
'; - $username = $_SESSION["username"]; - $query1 = "SELECT up_id - FROM bpm_upload - WHERE ka_id = $username - AND upload_dat != '0000-00-00 00:00:00'"; - - $result1 = $db->query($query1) or die("Cannot execute query1c"); - while ($row1 = $result1->fetch_array()) { - $id = "desc_".$row1['up_id']; - $beschreibung = $_POST[$id]; - - $sql1 = $db->query("UPDATE bpm_upload - SET beschreibung = '$beschreibung' - WHERE up_id = $row1[up_id] - "); - - } - echo ""; - -} -if ($action == 'deldok') { - $up_id = $_GET['up_id']; - - $username = $_SESSION["username"]; - $result_id = $db->query("SELECT id - FROM bpm_kandidat - WHERE ka_id = '$username'"); - $row_id = $result_id->fetch_array(); - $id = $row_id['id']; - - $result_file = $db->query("SELECT file - FROM bpm_upload - WHERE up_id = '$up_id'"); - $row_file = $result_file->fetch_array(); - - $basename = basename($row_file['file']); - $rep = $id."_"; - $dokument = str_replace($rep, '', $basename); - - $smarty->assign('deldok_dokument', $dokument); - $smarty->assign('deldok_up_id', $up_id); -} -if ($action == 'deldok2') { - $up_id = $_GET['up_id']; - $username = $_SESSION["username"]; - - function deleteFiles($datei) - { - if (@unlink($datei)) { - $error = TRUE; - } else { - $error = FALSE; - } - return $error; - } - - $result_del = $db->query("SELECT file - FROM bpm_upload - WHERE ka_id = $username - AND up_id= $up_id - LIMIT 1; - "); - $row_del = $result_del->fetch_array(); - - $del = deleteFiles($row_del['file']); // Dateien werden im Uploadverzeichnis gelöscht, falls noch welche darin wären -# if rausgenommen, wenn kein Dokument vorhanden ist, nur DB Eintrag, dann kann dieser nicht gelöscht werden -# if ($del) { - $sql1 = $db->query("DELETE FROM bpm_upload - WHERE ka_id = $username - AND up_id= $up_id"); -# } - -echo ""; -} -if ($action == 'stelle') { - $username = $_SESSION["username"]; - $query1 = "SELECT a.dst_id, bez, plz, ort - FROM bpm_dienststellen a - WHERE a.dst_id NOT IN (SELECT dst_id - FROM bpm_dst_wunsch - WHERE ka_id = '$username' - ) - AND (gueltig_von <= date_format(now(), '%Y-%m-%d') OR gueltig_von = '0000-00-00') - AND (gueltig_bis >= date_format(now(), '%Y-%m-%d') OR gueltig_bis = '0000-00-00') - ORDER BY bez ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1d"); - - while ($row1 = $result1->fetch_array()) { - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - - - # Gespeicherte Werte - $query2 = "SELECT a.wu_id, b.bez, b.str, b.plz, b.ort, b.mail - FROM bpm_dst_wunsch a, bpm_dienststellen b - WHERE a.dst_id = b.dst_id - AND a.ka_id = $username"; - - $result2 = $db->query($query2) or die("Cannot execute query2b"); - - while ($row2 = $result2->fetch_array()) { - $table_data2[] = $row2; - } - $smarty->assign('table_data2', $table_data2); - - # Tabelle bpm_parameter - $anz_stellen = trim(get_parameter(14)); - $smarty->assign('index_stelle_anz', $anz_stellen); - - # Fehler bei Praxisstellenwahl anzeigen - if (isset($_GET['error'])) { - - $errorno = $_GET['error']; - $smarty->assign('index_error', 1); - - if ($errorno == 1) { - $smarty->assign('index_error_text', "Es dürfen maximal $anz_stellen Stellen gewählt werden."); - } - if ($errorno == 2) { - $smarty->assign('index_error_text', "Sie müssen zuerst eine Stelle aud der Dropdownliste markieren."); - } - if ($errorno == 3) { - $smarty->assign('index_error_text', "Es muss zunächst eine zuständige Hochschule definiert werden."); - } - } -} - -if ($action == 'save_praxis') { - $username = $_SESSION["username"]; - $dst_id = $_POST["stelle"]; - -/* - // http://www.tutorials.de/tutorials65420.html - $result_anz = $db->query("SELECT count(*) Anz - FROM bpm_dst_wunsch - WHERE ka_id = '$ka_id'"); - $row_anz = $result_anz->fetch_array(); - - # Tabelle bpm_parameter - $anz_stellen = trim(get_parameter(14)); - - if ($row_anz['Anz'] >= $anz_stellen) { - echo ""; - exit; - } -*/ - if ($dst_id == '') { - echo ""; - exit; - } - - - $result_hs = $db->query("SELECT anrede, hochschule, id - FROM bpm_kandidat - WHERE ka_id = $username - LIMIT 1; - "); - $row_hs = $result_hs->fetch_array(); - $hochschule = $row_hs['hochschule']; - - if($hochschule == 'Ludwigsburg'){ - $anschrift = 'Reuteallee 36
71634 Ludwigsburg'; - $sender = "Hochschule Ludwigsburg"; - $sendermail = get_parameter(8); - }elseif($hochschule == 'Kehl'){ - $anschrift = 'Kinzigallee 1
77694 Kehl'; - $sender = "Hochschule Kehl"; - $sendermail = get_parameter(7); - }else{ - echo ""; - exit; - } - - $link_arzt = 'https://www.gesundheitsamt-bw.de/'; - $link = 'https://www.hs-ludwigsburg.de/kurs/bpm/praxisstelle/index.php'; - $link_register = 'https://www.hs-ludwigsburg.de/kurs/bpm/praxisstelle/register.php'; - - $result_dst = $db->query("SELECT mail, init_tan - FROM bpm_dienststellen - WHERE dst_id = $dst_id - LIMIT 1; - "); - $row_dst = $result_dst->fetch_array(); - - if ($row_dst['init_tan'] == ''){ - $tan = tangen(); - $sql0 = $db->query("UPDATE bpm_dienststellen - SET init_tan = '$tan' - WHERE dst_id = '$dst_id' - "); - }else{ - $tan = ""; - } - - $empfaenger = "$row_dst[mail]"; - $betreff = "Bewerbung zur praktischen Ausbildung BPM"; - - ######################################################### - ## dieselbe Mail ist auch in /upload/index.php - ######################################################### - if($row_hs['anrede'] != 'W'){ - # männliche Version - $text = "Guten Tag,
-
- ein Bewerber hat Sie als Wunschausbildungsstelle für das Einführungspraktikum im Studiengang Public Management ausgewählt.
"; - - - if($tan == ""){ - $text .=" - Sie erhalten einen Link für die Einsicht der Bewerbungsunterlagen: -
-
- $link"; - } - - if($tan != ""){ - $text .=" -
-
- Bitte registrieren Sie Ihre Praxisstelle zunächst mit folgenden Logindaten:
- Registrierung: $link_register
- Benutzername: $empfaenger
- Einmalpasswort: $tan - "; - } - - $text .= " -
-
- Die Ausbildungsstellen führen das Auswahlverfahren nach § 7 Absätze 3 und 4 APrOVw gD durch. Sollten Sie sich für den Bewerber und selbiger für Ihre Ausbildungsstelle entscheiden, teilt die Ausbildungsstelle der zuständigen Hochschule schnellstmöglich, jedoch bis spätestens 22. Juli des Jahres des Ausbildungsbeginns schriftlich Ihre Entscheidung mit. -
- Der Bewerber ist von Ihnen darauf hinzuweisen, sich um folgende personalrechtlichen Unterlagen zu bemühen und an Sie zu übersenden: -
    -
  • Ärztliches Zeugnis zum Nachweis der gesundheitlichen Eignung (es ist ein Attest von einer Ärztin oder eines Arztes, die vom Landesgesundheitsamt dafür bestimmt wurden notwendig. Eine Liste aller Ärzte finden Sie - unter: $link_arzt -> Service -> Gesundheitliche Eignung bei Verbeamtung -> Hinweise für Beamtenbewerber. Die dafür anfallenden Kosten hat die Bewerberin oder der Bewerber selbst zu tragen. Dieses Zeugnis darf zu Ausbildungsbeginn nicht älter als 6 Monate sein), -
  • -
  • Erklärung über den Ausschluss eines aktuellen oder früheren Behandlungsverhältnisses (dies finden Sie unter $link_arzt -> Service -> Gesundheitliche Eignung bei Verbeamtung -> Hinweise für Beamtenbewerber -> „Erklärung Ausschluss Behandlungsverhältnis“), -
  • -
  • Führungszeugnis zur Vorlage bei einer Behörde nach § 30 Abs. 5 BZRG (dieses Zeugnis darf keine Einträge enthalten und zu Ausbildungsbeginn nicht älter als 3 Monate sein).
  • -
-
- Diese Unterlagen sind von Ihnen als Einstellungsvoraussetzungen zum 1. September des Einstellungsjahres zu prüfen. Nach Ausbildungsbeginn müssen diese Unterlagen an die Hochschule übersendet werden, diese sind die Grundlage für die spätere Ernennung in ein Beamtenverhältnis. -

- Bitte teilen Sie dem Bewerber mit, dass er nur dann einen Ausbildungsplatz bei Ihnen erhalten kann, wenn er eine endgültige Zulassung für einen Studienplatz durch die Hochschule erhält. Endgültige Zulassungen zum Studium können erst nach Abschluss der Bewerbungsphase und nach der Rückmeldefrist der Ausbildungsstellen (22. Juli des Jahres des Ausbildungsbeginns) erfolgen. Erst dann kann die finale Bewerberrangliste gebildet werden, die die Grundlage der Studienplatzvergabe darstellt. Das Nachrückverfahren kann in Einzelfällen wie bisher auch bis unmittelbar vor Praktikumsbeginn andauern. -
-
- Freundliche Grüße -

- Ihre Hochschule $hochschule -
- $anschrift -
-

- Diese Mail wurde automatisch generiert!
- Antworten Sie daher nicht auf diese Mail.
-
- Vielen Dank! - - "; - }else{ - # weibliche Version - $text = "Guten Tag,
-
- eine Bewerberin hat Sie als Wunschausbildungsstelle für das Einführungspraktikum im Studiengang Public Management ausgewählt.
"; - - if($tan == ""){ - $text .=" - Sie erhalten einen Link für die Einsicht der Bewerbungsunterlagen: -
-
- $link"; - } - - if($tan != ""){ - $text .=" -
-
- Bitte registrieren Sie Ihre Praxisstelle zunächst mit folgenden Logindaten:
- Registrierung: $link_register
- Benutzername: $empfaenger
- Einmalpasswort: $tan - "; - } - - $text .= " -
-
- Die Ausbildungsstellen führen das Auswahlverfahren nach § 7 Absätze 3 und 4 APrOVw gD durch. Sollten Sie sich für die Bewerberin und selbige für Ihre Ausbildungsstelle entscheiden, teilt die Ausbildungsstelle der zuständigen Hochschule schnellstmöglich, jedoch bis spätestens 22. Juli des Jahres des Ausbildungsbeginns schriftlich Ihre Entscheidung mit. -
- Die Bewerberin ist von Ihnen darauf hinzuweisen, sich um folgende personalrechtlichen Unterlagen zu bemühen und an Sie zu übersenden: -

    -
  • Ärztliches Zeugnis zum Nachweis der gesundheitlichen Eignung (es ist ein Attest von einer Ärztin oder eines Arztes, die vom Landesgesundheitsamt dafür bestimmt wurden notwendig. Eine Liste aller Ärzte finden Sie - unter: $link_arzt -> Service -> Gesundheitliche Eignung bei Verbeamtung -> Hinweise für Beamtenbewerber. Die dafür anfallenden Kosten hat die Bewerberin oder der Bewerber selbst zu tragen. Dieses Zeugnis darf zu Ausbildungsbeginn nicht älter als 6 Monate sein), -
  • -
  • Erklärung über den Ausschluss eines aktuellen oder früheren Behandlungsverhältnisses (dies finden Sie unter $link_arzt -> Service -> Gesundheitliche Eignung bei Verbeamtung -> Hinweise für Beamtenbewerber -> „Erklärung Ausschluss Behandlungsverhältnis“), -
  • -
  • Führungszeugnis zur Vorlage bei einer Behörde nach § 30 Abs. 5 BZRG (dieses Zeugnis darf keine Einträge enthalten und zu Ausbildungsbeginn nicht älter als 3 Monate sein).
  • -
-
- Diese Unterlagen sind von Ihnen als Einstellungsvoraussetzungen zum 1. September des Einstellungsjahres zu prüfen. Nach Ausbildungsbeginn müssen diese Unterlagen an die Hochschule übersendet werden, diese sind die Grundlage für die spätere Ernennung in ein Beamtenverhältnis. -

- Bitte teilen Sie der Bewerberin mit, dass sie nur dann einen Ausbildungsplatz bei Ihnen erhalten kann, wenn sie eine endgültige Zulassung für einen Studienplatz durch die Hochschule erhält. Endgültige Zulassungen zum Studium können erst nach Abschluss der Bewerbungsphase und nach der Rückmeldefrist der Ausbildungsstellen (22. Juli des Jahres des Ausbildungsbeginns) erfolgen. Erst dann kann die finale Bewerberrangliste gebildet werden, die die Grundlage der Studienplatzvergabe darstellt. Das Nachrückverfahren kann in Einzelfällen wie bisher auch bis unmittelbar vor Praktikumsbeginn andauern. -
-
- Freundliche Grüße -

- Ihre Hochschule $hochschule -
- $anschrift -
-

- Diese Mail wurde automatisch generiert!
- Antworten Sie daher nicht auf diese Mail.
-
- Vielen Dank! - - "; - } - -#echo " -#From: $sender - $sendermail
-#$empfaenger
-#$betreff
-#$text
"; -#exit; - ## Mailversand: - $headers = "From: $sender <$sendermail>\r\n"; - $headers .= "MIME-Version: 1.0\r\n"; - $headers .= "Content-type: text/html; charset=utf-8\r\n"; - $return = @mail($empfaenger, $betreff, $text, $headers); - $heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php - $datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll - $text_db = addslashes($text); - - - if($return){ - $sql1 = $db->query("insert into bpm_dst_wunsch (dst_id, ka_id, datum, mail_text, mail_betreff, status, sendedat) - VALUES('$dst_id', '$username', '$datum_db', '$text_db', '$betreff', 'V', '$datum_db')"); - - }else{ - $sql1 = $db->query("insert into bpm_dst_wunsch (dst_id, ka_id, datum, mail_text, mail_betreff, status) - VALUES('$dst_id', '$username', '$datum_db', '$text_db', '$betreff', 'F')"); - } - echo ""; - -} - -if ($action == 'testback') { - $username = $_SESSION["username"]; - $tan = $_SESSION["tan"]; - - $sql1 = $db->query("UPDATE bpm_tanpool a - SET login_dat = '0000-00-00 00:00:00' - ,aktiv = 'A' - WHERE tp_id = (SELECT b.tp_id - FROM bpm_term_kand b - WHERE b.ka_id = '$username' - ORDER BY b.tk_id DESC - LIMIT 1 - ) - AND tan = '$tan' - "); - - echo ""; -} - -if ($action == 'skala') { - # Die Seite wird neu geladen und damit vom Element Spinner die Ranges gesetzt - #$skala = $_POST['notenskala']; - #$_SESSION["skala"] = $skala; - echo ""; -} - -if ($action == 'stammdaten_edit') { - $username = $_SESSION["username"]; - - - - $result = $db->query("SELECT ka_id, anrede, vorname, nachname, str, plz, ort, date_format(gebdat, '%d.%m.%Y') gebdat_form, mail, tel - FROM bpm_kandidat - WHERE ka_id = '$username' - LIMIT 1"); - $row = $result->fetch_array(); - - $smarty->assign('persdat_value_anrede', $row['anrede']); - $smarty->assign('persdat_value_vorname', $row['vorname']); - $smarty->assign('persdat_value_nachname', $row['nachname']); - $smarty->assign('persdat_value_gebdat', $row['gebdat_form']); - $smarty->assign('persdat_value_str', $row['str']); - $smarty->assign('persdat_value_plz', $row['plz']); - $smarty->assign('persdat_value_ort', $row['ort']); - $smarty->assign('persdat_value_mail', $row['mail']); - $smarty->assign('persdat_value_tel', $row['tel']); - - ## Fehlerhandling - $error1 = $_GET['error1']; - $error2 = $_GET['error2']; - $error3 = $_GET['error3']; - $error4 = $_GET['error4']; - $error5 = $_GET['error5']; - $error6 = $_GET['error6']; - $error7 = $_GET['error7']; - $error8 = $_GET['error8']; - $error9 = $_GET['error9']; - $error10 = $_GET['error10']; - $error11 = $_GET['error11']; - $error12 = $_GET['error12']; - $error13 = $_GET['error13']; - $error14 = $_GET['error14']; - - if ($error1 == 1){$smarty->assign('erf_hig_anrede', 1);}else{$smarty->assign('erf_hig_anrede', 0);} - if ($error2 == 1){$smarty->assign('erf_hig_vorname', 1);}else{$smarty->assign('erf_hig_vorname', 0);} - if ($error3 == 1){$smarty->assign('erf_hig_nachname', 1);}else{$smarty->assign('erf_hig_nachname', 0);} - if ($error4 == 1){$smarty->assign('erf_hig_gebdat', 1);}else{$smarty->assign('erf_hig_gebdat', 0);} - if ($error5 == 1){$smarty->assign('erf_hig_str', 1);}else{$smarty->assign('erf_hig_str', 0);} - if ($error6 == 1){$smarty->assign('erf_hig_plz', 1);}else{$smarty->assign('erf_hig_plz', 0);} - if ($error7 == 1){$smarty->assign('erf_hig_ort', 1);}else{$smarty->assign('erf_hig_ort', 0);} - if ($error8 == 1){$smarty->assign('erf_hig_mail', 1);}else{$smarty->assign('erf_hig_mail', 0);} - if ($error14 == 1){$smarty->assign('erf_hig_tel', 1);}else{$smarty->assign('erf_hig_tel', 0);} - - #Telefon kein Pflichtfeld derzeit - if($error1 == 1 or $error2 == 1 or $error3 == 1 or $error4 == 1 or $error5 == 1 or $error6 == 1 or $error7 == 1 or $error8 == 1 or $error9 == 1 or $error10 == 1){ - $smarty->assign('persdat_error', 1); - - if($error9 == 1){ - $smarty->assign('persdat_error_text', 'Bitte prüfen Sie das Geburtsdatum.'); - } - if($error10 == 1){ - $smarty->assign('persdat_error_text', 'Die E-Mailadresse enthält Fehler.'); - } -# if($error11 == 1){ -# $smarty->assign('persdat_error_text', 'Sie haben sich bereits registriert. Setzen Sie sich ggf. mit der Hochschule in Verbindung.'); -# } -# if($error12 == 1){ -# $smarty->assign('persdat_error_text', 'Sie haben Sie den Test bereits 1x wiederholt.'); -# } -# if($error13 == 1){ -# $smarty->assign('persdat_error_text', 'Bitte prüfen Sie die Kombination aus ID/TAN.'); -# } - - if($error20 == 1){ - $smarty->assign('persdat_error_text', 'Die damalige ID darf nicht leer sein.'); - } - if($error21 == 1){ - $smarty->assign('persdat_error_text', 'Die damalige TAN darf nicht leer sein.'); - } - if($error1 == 1 or $error2 == 1 or $error3 == 1 or $error4 == 1 or $error5 == 1 or $error6 == 1 or $error7 == 1 or $error8 == 1 or $error14 == 1){ - $smarty->assign('persdat_error_text', 'Bitte füllen Sie die Pflichtfelder aus.'); - } - } -} - -if ($action == 'stammdaten2_edit') { - $username = $_SESSION["username"]; - - if(isset($_POST['anrede'])){ - $anrede = trim($_POST['anrede']); - } - - if(isset($_POST['vorname'])){ - $vorname = addslashes(trim($_POST['vorname'])); - } - - if(isset($_POST['nachname'])){ - $nachname = addslashes(trim($_POST['nachname'])); - } - - if(isset($_POST['gebdat'])){ - $gebdat = addslashes(trim($_POST['gebdat'])); - } - - if(isset($_POST['str'])){ - $str = addslashes(trim($_POST['str'])); - } - - if(isset($_POST['plz'])){ - $plz = addslashes(trim($_POST['plz'])); - } - - if(isset($_POST['ort'])){ - $ort = addslashes(trim($_POST['ort'])); - } - - if(isset($_POST['alter18'])){ - $alter18 = addslashes(trim($_POST['alter18'])); - } - - if(isset($_POST['mail'])){ - $mail = addslashes(trim($_POST['mail'])); - } - - if(isset($_POST['tel'])){ - $tel = addslashes(trim($_POST['tel'])); - } - - if ($anrede == '') { - $error1=1; - $error=true; - } - if ($vorname == ''){ - $error2=1; - $error=true; - } - if ($nachname == ''){ - $error3=1; - $error=true; - } - if ($gebdat == ''){ - $error4=1; - $error=true; - } - if ($str == ''){ - $error5=1; - $error=true; - } - if ($plz == ''){ - $error6=1; - $error=true; - } - if ($ort == ''){ - $error7=1; - $error=true; - } - if ($mail == ''){ - $error8=1; - $error=true; - } - -#Telefon kein Pflichtfeld derzeit -# if ($tel == ''){ -# $error14=1; -# $error=true; -# } - - # Datumsformat von DD.MM.YYYY nach YYYY-MM-DD - $gebdat_form = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $gebdat); - - function validateDate($date, $format = 'Y-m-d'){ - $d = DateTime::createFromFormat($format, $date); - return $d && $d->format($format) == $date; - } - - if(!validateDate($gebdat_form)){ - $error9=1; - $error=true; - } - - if (!filter_var($mail, FILTER_VALIDATE_EMAIL)) { - $error10=1; - $error=true; - } - - if(isset($error)){ - echo ""; - exit; - } - $sql1 = $db->query( "UPDATE bpm_kandidat - SET anrede = '$anrede' - ,vorname = '$vorname' - ,nachname = '$nachname' - ,gebdat = '$gebdat_form' - ,str = '$str' - ,plz = '$plz' - ,ort = '$ort' - ,mail = '$mail' - ,tel = '$tel' - WHERE ka_id = '$username' - " ); - -} -// ende Action -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/datencheck.php b/admin/old/datencheck.php deleted file mode 100644 index eac2812..0000000 --- a/admin/old/datencheck.php +++ /dev/null @@ -1,161 +0,0 @@ -query("SELECT count(distinct ka_id) Anz - FROM bpm_term_kand a, bpm_tanpool b - WHERE a.tp_id = b.tp_id - AND b.login_dat != '0000-00-00 00:00:00'"); - $row_anzget = $result_anzget->fetch_array(); - $smarty->assign('datenchk_anzget', $row_anzget['Anz']); - - #Anzahl der Kandidaten mit ausstehendem Test - $result_aussttest = $db->query("SELECT count(*) Anz - FROM bpm_tanpool b - WHERE verw_dat != '0000-00-00 00:00:00' - AND b.login_dat = '0000-00-00 00:00:00'"); - $row_aussttest = $result_aussttest->fetch_array(); - $smarty->assign('datenchk_aussttest', $row_aussttest['Anz']); - - #Anzahl aller Anmeldung - $result_alleranm = $db->query("SELECT count(distinct ka_id) Anz - FROM bpm_term_kand a, bpm_tanpool b - WHERE a.tp_id = b.tp_id - AND b.verw_dat != '0000-00-00 00:00:00'"); - $row_alleranm = $result_alleranm->fetch_array(); - $smarty->assign('datenchk_alleranm', $row_alleranm['Anz']); - - #Anzahl Durchfaller - komplizierter. Wenn er nach dem ersten Mal durchgefallen doch bestanden hat, gilt er nicht als Durchfaller - $query = "SELECT ka_id, max(tp_id) tp_id - FROM bpm_term_kand - GROUP BY ka_id - "; - - $result = $db->query($query) or die("Cannot execute query1"); - $zaehler = 0; - while ($row = $result->fetch_array()) { - $result_tan = $db->query("SELECT tan - FROM bpm_tanpool - WHERE tp_id = $row[tp_id]"); - $row_tan = $result_tan->fetch_array(); - - $result_bestanden = $db->query("SELECT bestanden - FROM bpm_ergebnisse - WHERE ka_id = $row[ka_id] - AND tan = '$row_tan[tan]'"); - $row_bestanden = $result_bestanden->fetch_array(); - if($row_bestanden['bestanden'] == 0 and $row_bestanden['bestanden'] != ''){ - $zaehler++; - } - } - $smarty->assign('datenchk_anzdurchfaller', $zaehler); - - # Gespeicherte Werte - $query1 = "SELECT a.ka_id, vorname, nachname, date_format(tm_datum, '%d.%m.%Y um %H:%i Uhr') tm_datum, CASE tm_standort - WHEN 'L' THEN 'Ludwigsburg' - WHEN 'K' THEN 'Kehl' - ELSE '' END as tm_standort - , behinderung, verkuerzung - FROM bpm_kandidat a, bpm_term_kand b, bpm_termine c, bpm_ergebnisse d, bpm_tanpool e - WHERE a.ka_id = b.ka_id - AND b.tm_id = c.tm_id - AND a.ka_id = d.ka_id - AND b.tp_id = e.tp_id - AND a.ka_id IN (SELECT distinct ka_id FROM bpm_ergebnisse) - AND a.ka_id IN (SELECT distinct ka_id FROM bpm_upload WHERE upload_dat != '0000-00-00 00:00:00') - AND d.bestanden = '1' - AND e.tan=d.tan - ORDER BY tm_datum DESC, nachname ASC, vorname ASC - "; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - $row_cnt = $result1->num_rows; - $smarty->assign('dokverw_anzdb', $row_cnt); - - while ($row1 = $result1->fetch_array()) { - - $result_test = $db->query("SELECT summe - FROM bpm_ergebnisse - WHERE ka_id = '$row1[ka_id]' - AND bestanden = '1'"); - $row_test = $result_test->fetch_array(); - - $result_anzhzb = $db->query("SELECT count(*) Anz - FROM bpm_upload - WHERE beschreibung = 'HZB' - AND ka_id = '$row1[ka_id]'"); - $row_anzhzb = $result_anzhzb->fetch_array(); - if($row_anzhzb['Anz'] > 0){ - $image_hzb = "ok.gif"; - }else{ - $image_hzb = "cross.jpg"; - } - - $result_anzzeug = $db->query("SELECT count(*) Anz - FROM bpm_upload - WHERE beschreibung like 'Zeugnis%' - AND ka_id = '$row1[ka_id]'"); - $row_anzzeug = $result_anzzeug->fetch_array(); - if($row_anzzeug['Anz'] >= 2){ - $image_zeug = "ok.gif"; - }else{ - $image_zeug = "cross.jpg"; - } - - $result_anzleben = $db->query("SELECT count(*) Anz - FROM bpm_upload - WHERE beschreibung = 'Lebenslauf' - AND ka_id = '$row1[ka_id]'"); - $row_anzleben = $result_anzleben->fetch_array(); - if($row_anzleben['Anz'] >= 1){ - $image_leben = "ok.gif"; - }else{ - $image_leben = "cross.jpg"; - } - - $result_notehzb = $db->query("SELECT hzb, zeugnisschnitt - FROM bpm_note - WHERE ka_id = '$row1[ka_id]'"); - $row_notehzb = $result_notehzb->fetch_array(); - if($row_notehzb['hzb'] == "0.00" or $row_notehzb['hzb'] == ""){ - $image_notehzb = "cross.jpg"; - }else{ - $image_notehzb = "ok.gif"; - } - - if($row_notehzb['zeugnisschnitt'] == "0.00" or $row_notehzb['zeugnisschnitt'] == ""){ - $image_noteschnitt = "cross.jpg"; - }else{ - $image_noteschnitt = "ok.gif"; - } - - $row1['image_noteschnitt'] = $image_noteschnitt; - $row1['image_notehzb'] = $image_notehzb; - $row1['image_leben'] = $image_leben; - $row1['image_zeug'] = $image_zeug; - $row1['anz_zeug'] = $row_anzzeug['Anz']; - $row1['image_hzb'] = $image_hzb; - $row1['testergebnis'] = $row_test['summe']; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/dokverw.php b/admin/old/dokverw.php deleted file mode 100644 index 2029482..0000000 --- a/admin/old/dokverw.php +++ /dev/null @@ -1,110 +0,0 @@ -query($query1) or die("Cannot execute query1"); - $row_cnt = $result1->num_rows; - $smarty->assign('dokverw_anzdb', $row_cnt); - - while ($row1 = $result1->fetch_array()) { - $result_kand = $db->query("SELECT vorname, nachname - FROM bpm_kandidat - WHERE ka_id = '$row1[ka_id]'"); - $row_kand = $result_kand->fetch_array(); - if (file_exists($row1['file'])) { - $exists = 1; - } else { - $exists = 0; - } - - $row1['vorname'] = $row_kand['vorname']; - $row1['nachname'] = $row_kand['nachname']; - $row1['exists'] = $exists; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - - - $dir = $_SERVER["DOCUMENT_ROOT"].dirname($_SERVER['PHP_SELF'])."/$verz"; - - $folder = dir($dir); - while ($dateiname = $folder->read()) { - if (filetype($dir.$dateiname) != "dir") { - $ext = strrchr($dateiname, '.'); - if($ext == '.pdf'){ - $result_checkdoc = $db->query("SELECT count(*) Anz - FROM bpm_upload - WHERE file ='$verz$dateiname' - LIMIT 1"); - $row_checkdoc = $result_checkdoc->fetch_array(); - if($row_checkdoc['Anz'] == 0){ - $exists2 = 0; - $vorname = ""; - $nachname = ""; - }else{ - $result_checkdoc2 = $db->query("SELECT ka_id - FROM bpm_upload - WHERE file ='$verz$dateiname' - LIMIT 1"); - $row_checkdoc2 = $result_checkdoc2->fetch_array(); - - $result_kand = $db->query("SELECT vorname, nachname - FROM bpm_kandidat - WHERE ka_id = '$row_checkdoc2[ka_id]'"); - $row_kand = $result_kand->fetch_array(); - $vorname = $row_kand['vorname']; - $nachname = $row_kand['nachname']; - $exists2 = 1; - } - $row2['vorname'] = $vorname; - $row2['nachname'] = $nachname; - $row2['file'] = $dateiname; - $row2['exists'] = $exists2; - $row2['dateiname'] = $dateiname; - $table_data2[] = $row2; - } - } - } - $smarty->assign('table_data2', $table_data2); - $cntserver = count($table_data2); - $smarty->assign('dokverw_anzserver', $cntserver); -} -if ($action == 'delserver') { - $file = $verz.$_GET['file']; - @unlink($file); - echo ""; -} -if ($action == 'deldb') { - $up_id = $_GET['up_id']; - $sql1 = $db->query("DELETE FROM bpm_upload - WHERE up_id = $up_id - "); - echo ""; -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/downpdf.php b/admin/old/downpdf.php deleted file mode 100644 index 460eadd..0000000 --- a/admin/old/downpdf.php +++ /dev/null @@ -1,29 +0,0 @@ -window.top.location.href = \"index.php\";"; -exit; -} -$file = str_replace('%2F', '/', urlencode($_GET["file"])); - - -if (file_exists($file)) { -header("Content-Type: application/octet-stream"); -header("Content-Disposition: attachment; filename=" . urlencode(basename($file))); -header("Content-Type: application/download"); -header("Content-Description: File Transfer"); -header("Content-Length: " . filesize($file)); - -flush(); // This doesn't really matter. - -$fp = fopen($file, "r"); -while (!feof($fp)) { - echo fread($fp, 65536); - flush(); // This is essential for large downloads -} - -fclose($fp); -}else{ -echo "Datei nicht gefunden"; -} -?> \ No newline at end of file diff --git a/admin/old/ergebnisse.php b/admin/old/ergebnisse.php deleted file mode 100644 index a92024e..0000000 --- a/admin/old/ergebnisse.php +++ /dev/null @@ -1,123 +0,0 @@ -query("SET lc_time_names = 'de_DE';"); - - $query1 = "SELECT a.tm_id, date_format(tm_datum, '%a, %d.%m.%Y - %H:%i Uhr')tm_datum_form, tm_standort - FROM bpm_termine a, bpm_term_kand b, bpm_ergebnisse c - WHERE a.tm_id=b.tm_id - AND b.ka_id = c.ka_id - AND a.tm_datum > ADDDATE(now(), -365) - AND a.tm_datum < now() - GROUP BY a.tm_id, tm_datum_form, tm_standort - ORDER BY tm_datum desc"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - - while ($row1 = $result1->fetch_array()) { - - if ($row1['tm_standort'] == 'L') { - $standort = 'Ludwigsburg'; - } - if ($row1['tm_standort'] == 'K') { - $standort = 'Kehl'; - } - - $row1['tm_standort'] = $standort; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); -} - -if ($action == 'ausgabe') { - if (isset($_POST["testtermin"])) { - $testtermin = $_POST["testtermin"]; - } else { - $testtermin = $_SESSION["testtermin"]; - } - - $_SESSION["testtermin"] = $testtermin; - - $result = $db->query("SELECT date_format(tm_datum, '%d.%m.%Y') tm_datum, tm_standort - FROM bpm_termine - WHERE tm_id = $testtermin"); - $row = $result->fetch_array(); - - if ($row['tm_standort'] == 'L') { - $standort = 'Ludwigsburg'; - } - if ($row['tm_standort'] == 'K') { - $standort = 'Kehl'; - } - - $smarty->assign('erg_datum', $row['tm_datum']); - $smarty->assign('erg_standort', $standort); - - $query1 = "SELECT vorname, nachname, a.ka_id, a.tan, satzerg, gemeinsamkeiten, rechenaufgaben, zahlenreihen, rechenzeichen, matrizen, merkf, summe, bestanden, a.eg_id - FROM bpm_ergebnisse a, bpm_kandidat b, bpm_term_kand c, bpm_termine d, bpm_tanpool e - WHERE a.ka_id = b.ka_id - AND b.ka_id = c.ka_id - AND c.tm_id = d.tm_id - AND c.tp_id = e.tp_id - AND e.tan = a.tan - AND d.tm_id = $testtermin - ORDER BY nachname ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - - while ($row1 = $result1->fetch_array()) { - $row1['tm_standort'] = $standort; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - -} - - -if ($action == 'del') { -$ka_id = $_GET['ka_id']; -$eg_id = $_GET['eg_id']; - - $result = $db->query("SELECT vorname, nachname - FROM bpm_kandidat - WHERE ka_id = $ka_id"); - $row = $result->fetch_array(); - $smarty->assign('del_name', "$row[vorname] $row[nachname]"); - $smarty->assign('del_eg_id', $eg_id); - -} - -if ($action == 'del2') { - $eg_id = $_GET['eg_id']; - - $sql1 = $db->query("UPDATE bpm_ergebnisse - SET summe = 0 - ,bestanden='0' - WHERE eg_id= $eg_id"); - -echo ""; -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> diff --git a/admin/old/fetch.php b/admin/old/fetch.php deleted file mode 100644 index 1fe4d26..0000000 --- a/admin/old/fetch.php +++ /dev/null @@ -1,70 +0,0 @@ - 0) -{ - while($row = mysqli_fetch_array($result)) - { - if(mysqli_num_rows($result) == 1){ - $output .= " - - "; - - }else{ - $output .= " - - "; - - } - } - echo $output; -} -else -{ - echo 'Data Not Found'; -} -?> diff --git a/admin/old/kand_del.php b/admin/old/kand_del.php deleted file mode 100644 index 52fb1a2..0000000 --- a/admin/old/kand_del.php +++ /dev/null @@ -1,111 +0,0 @@ -query("SET lc_time_names = 'de_DE';"); - -# Dropdown befüllen übernimmt ajax:fetch.php -# $query1 = "SELECT a.ka_id, vorname, nachname, date_format(gebdat, '%d.%m.%Y') geb_format -# FROM bpm_kandidat a, bpm_term_kand b, bpm_tanpool c -# WHERE a.ka_id =b.ka_id -# AND b.tp_id =c.tp_id -# AND c.login_dat = '0000-00-00 00:00:00' -# ORDER BY nachname ASC, vorname ASC"; -# -# $result1 = $db->query($query1) or die("Cannot execute query1"); -# -# -# while ($row1 = $result1->fetch_array()) { -# $table_data1[] = $row1; -# } -# $smarty->assign('table_data1', $table_data1); -} - -if ($action == 'nachfrage') { - $ka_id = $_POST['user']; - - $result_id = $db->query("SELECT vorname, nachname - FROM bpm_kandidat - WHERE ka_id = '$ka_id'"); - $row_id = $result_id->fetch_array(); - - $smarty->assign('kand_name', "$row_id[vorname] $row_id[nachname]"); - $smarty->assign('kand_ka_id', $ka_id); - -} - -if ($action == 'delkand') { - $ka_id = $_GET['ka_id']; - - - $result_del = $db->query("SELECT count(*) Anz - FROM bpm_kandidat a, bpm_term_kand b, bpm_tanpool c - WHERE a.ka_id =b.ka_id - AND b.tp_id =c.tp_id - AND c.login_dat = '0000-00-00 00:00:00' - AND a.ka_id = $ka_id - "); - $row_del = $result_del->fetch_array(); - - # Kandidat war inzwischen nicht beim Test angemeldet - if ($row_del['Anz'] == 1) { - - #Aktuelle Tan ermitteln - $result_tan = $db->query("SELECT a.tp_id, tan - FROM bpm_tanpool a, bpm_term_kand b - WHERE a.tp_id = b.tp_id - AND b.ka_id = '$ka_id' - ORDER BY b.tk_id DESC - LIMIT 1"); - $row_tan = $result_tan->fetch_array(); - $tan = $row_tan['tan']; - $tp_id = $row_tan['tp_id']; - - - $sql1 = $db->query("DELETE FROM bpm_term_kand - WHERE tp_id = $tp_id - AND ka_id= $ka_id"); - - $sql1 = $db->query("DELETE FROM bpm_sonstige_mail - WHERE ka_id= $ka_id"); - - # TAN wieder freigeben - $sql2 = $db->query("UPDATE bpm_tanpool - SET verw_dat = '0000-00-00 00:00:00' - ,login_dat = '0000-00-00 00:00:00' - WHERE tp_id= $tp_id - AND tan = '$tan'"); - - # Prüfen, ob es noch eine alte Bewerbung zum Test gibt, den er nicht bestanden hatte. Dann sollen die Stammdaten erhalten bleiben - $result_del2 = $db->query("SELECT count(*) Anz - FROM bpm_term_kand - WHERE ka_id ='$ka_id' - "); - $row_del2 = $result_del2->fetch_array(); - - if($row_del2['Anz'] == 0){ - $sql3 = $db->query("DELETE FROM bpm_kandidat - WHERE ka_id= $ka_id"); - } - } - -echo ""; -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/liste_tn.php b/admin/old/liste_tn.php deleted file mode 100644 index 3e53669..0000000 --- a/admin/old/liste_tn.php +++ /dev/null @@ -1,256 +0,0 @@ -query("SET lc_time_names = 'de_DE';"); - - $query1 = "SELECT a.tm_id, date_format(tm_datum, '%a, %d.%m.%Y - %H:%i Uhr')tm_datum_form, tm_standort - FROM bpm_termine a, bpm_term_kand b - WHERE a.tm_id=b.tm_id - AND a.tm_datum > ADDDATE(now(), -7) - GROUP BY a.tm_id, tm_datum_form, tm_standort - ORDER BY tm_datum ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - - while ($row1 = $result1->fetch_array()) { - - if($row1['tm_standort'] == 'L'){ - $standort = 'Ludwigsburg'; - } - if($row1['tm_standort'] == 'K'){ - $standort = 'Kehl'; - } - - $row1['tm_standort'] = $standort; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); -} - -if ($action == 'ausgabe') { - $testtermin = $_POST["testtermin"]; - $german = $db->query("SET lc_time_names = 'de_DE';"); - $query_termin = $db->query("SELECT date_format(tm_datum, '%a, %d.%m.%Y - %H:%i Uhr')tm_datum_form, tm_standort - FROM bpm_termine - WHERE tm_id = $testtermin"); - $row_get_termin = $query_termin->fetch_array(); - - if($row_get_termin['tm_standort'] == 'L'){ - $standort = 'Ludwigsburg'; - } - if($row_get_termin['tm_standort'] == 'K'){ - $standort = 'Kehl'; - } - - -$buffer = ''; -$buffer .= ""; - -$buffer.="

$row_get_termin[tm_datum_form], $standort

- - - - - - - - - - - -"; - $query1 = "SELECT anrede, vorname, nachname, str, plz, ort, alter18, id, date_format(gebdat,'%d.%m.%Y') gebdat_form, tan, tinyurl, mail - FROM bpm_term_kand a, bpm_tanpool b, bpm_kandidat c - WHERE a.tp_id= b.tp_id - AND a.ka_id = c.ka_id - AND a.tm_id = $testtermin - ORDER BY nachname, vorname - "; - - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - $smarty->assign('termine_aktdat', date("d.m.Y H:i", time() ) ) ; - while ($row1 = $result1->fetch_array()) { - if($row1['alter18'] == 0){ - $minderj = 'ja'; - } - if($row1['alter18'] == 1){ - $minderj = 'nein'; - } -$buffer.=" - - - - - - - - -"; - } - -$buffer.=" -
- Name - - Geburtstag - - Minderjährig - - ID - - Mail - - TAN - - Link -
- $row1[nachname], $row1[vorname] ($row1[anrede])
- $row1[str]
- $row1[plz] $row1[ort] -
- $row1[gebdat_form] - - $minderj - - $row1[id] - - $row1[mail] - - $row1[tan] - - $row1[tinyurl] -
-"; - -require_once("../mpdf/vendor/autoload.php"); -$mpdf = new \Mpdf\Mpdf([ - 'mode' => 'utf-8', - 'format' => 'A4', - 'orientation' => 'P', - 'margin_top' => 10, - 'margin_bottom' => 10, - 'margin_left' => 10, - 'margin_right' => 16, - 'default_font' => 'arial' -]); - - - - $query2 = "SELECT anrede, vorname, nachname, str, plz, ort, alter18, id, date_format(gebdat,'%d.%m.%Y') gebdat_form, tan, tinyurl, mail, hochschule - FROM bpm_term_kand a, bpm_tanpool b, bpm_kandidat c - WHERE a.tp_id= b.tp_id - AND a.ka_id = c.ka_id - AND a.tm_id = $testtermin - ORDER BY nachname, vorname - "; - - - $result2 = $db->query($query2) or die("Cannot execute query2"); - - $smarty->assign('termine_aktdat', date("d.m.Y H:i", time() ) ) ; - while ($row2 = $result2->fetch_array()) { - - if($row2['alter18'] == 0){ - $minderj = 'ja'; - } - if($row2['alter18'] == 1){ - $minderj = 'nein'; - } - - if($row2['hochschule'] == 'Ludwigsburg'){ - $link = "https://www.hs-ludwigsburg.de/studium/public-management-ba/bewerben.html"; - } - if($row2['hochschule'] == 'Kehl'){ - $link = "http://www.hs-kehl.de/studium-lehre/bachelor-studiengaenge/public-management-ba/bewerbung/"; - } - if($row2['hochschule'] == 'NA'){ - $link = "http://www.hs-kehl.de/studium-lehre/bachelor-studiengaenge/public-management-ba/bewerbung/ bzw.
https://www.hs-ludwigsburg.de/studium/public-management-ba/bewerben.html"; - } - $buffer.=" - - -

Anmeldedaten für $row2[vorname] $row2[nachname] ($row2[gebdat_form])

-

- Bitte bewahren Sie die nachfolgenden Anmeldedaten für das gesamte Bewerbungsverfahren auf. -
-
- - - - - - - - - - - -
- Persönliche ID - - Passwort/TAN -
- $row2[id] - - $row2[tan] -
-
-
- Weiterführende Links: - - - - - -
- Weitere Informationen: - - $link -
-
"; - } -#$mpdf->setFooter("Teilnehmerliste|$row_get_termin[tm_datum_form], $standort|{PAGENO} / {nb}"); -$mpdf->setFooter("Testteilnehmer||$row_get_termin[tm_datum_form], $standort"); - - - -$mpdf->WriteHTML($buffer); - -// Output a PDF file directly to the browser -$mpdf->Output(); - - -} -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/logout.php b/admin/old/logout.php deleted file mode 100644 index c148555..0000000 --- a/admin/old/logout.php +++ /dev/null @@ -1,12 +0,0 @@ -display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/old/mail_test.php b/admin/old/mail_test.php deleted file mode 100644 index 2a6339a..0000000 --- a/admin/old/mail_test.php +++ /dev/null @@ -1,151 +0,0 @@ -query("SET lc_time_names = 'de_DE';"); - - $query1 = "SELECT a.tm_id, date_format(tm_datum, '%a, %d.%m.%Y - %H:%i Uhr')tm_datum_form, tm_standort - FROM bpm_termine a, bpm_term_kand b - WHERE a.tm_id=b.tm_id - AND a.tm_datum > ADDDATE(now(), -7) - GROUP BY a.tm_id, tm_datum_form, tm_standort - ORDER BY tm_datum ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - - while ($row1 = $result1->fetch_array()) { - - if($row1['tm_standort'] == 'L'){ - $standort = 'Ludwigsburg'; - } - if($row1['tm_standort'] == 'K'){ - $standort = 'Kehl'; - } - - $row1['tm_standort'] = $standort; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); -} - -if ($action == 'mailsenden_test') { - $testtermin = $_POST["testtermin"]; - $_SESSION["testtermin"] = $testtermin; - - $german = $db->query("SET lc_time_names = 'de_DE';"); - $query_termin = $db->query("SELECT date_format(tm_datum, '%a, %d.%m.%Y - %H:%i Uhr')tm_datum_form, tm_standort - FROM bpm_termine - WHERE tm_id = $testtermin"); - $row_get_termin = $query_termin->fetch_array(); - - if($row_get_termin['tm_standort'] == 'L'){ - $sender = 'Hochschule Ludwigsburg'; - $sendermail = trim(get_parameter(8)); - } - if($row_get_termin['tm_standort'] == 'K'){ - $sender = 'Hochschule Kehl'; - $sendermail = trim(get_parameter(7)); - } - $smarty->assign('mail_sender', $sender); - $smarty->assign('mail_sendermail', $sendermail); - - $query1 = "SELECT vorname, nachname, mail - FROM bpm_kandidat - WHERE ka_id IN (SELECT ka_id FROM bpm_term_kand WHERE tm_id = $testtermin)"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - $mail = ""; - while ($row1 = $result1->fetch_array()) { - $mail .= $row1['mail'].", "; - } - $mail = substr($mail,0,-2); - $smarty->assign('empfaenger', $mail); -} - -if ($action == 'mailsenden2_test') { - $testtermin = $_SESSION["testtermin"]; - - $german = $db->query("SET lc_time_names = 'de_DE';"); - $query_termin = $db->query("SELECT date_format(tm_datum, '%a, %d.%m.%Y - %H:%i Uhr')tm_datum_form, tm_standort - FROM bpm_termine - WHERE tm_id = $testtermin"); - $row_get_termin = $query_termin->fetch_array(); - - if($row_get_termin['tm_standort'] == 'L'){ - $sender = 'Hochschule Ludwigsburg'; - $sendermail = trim(get_parameter(8)); - } - if($row_get_termin['tm_standort'] == 'K'){ - $sender = 'Hochschule Kehl'; - $sendermail = trim(get_parameter(7)); - } - - $empfaenger_alle = $_POST['mail_mail']; - $betreff = $_POST['betreff']; - $text = $_POST['text']; - - $empf_array = explode(",", $empfaenger_alle); -# echo " -#
-#  From: $sender - $sendermail
-# $empfaenger
-# $betreff
-# $text
"; -# #print_r($empf_array); -# echo "
"; -# exit; - - $style =""; - $text = $style.$text; - - for($i=0;$iquery("SELECT ka_id - FROM bpm_kandidat - WHERE mail = '$empfaenger'"); - $row_kaid = $query_kaid->fetch_array(); - - - ## Mailversand: - $headers = "From: $sender <$sendermail>\r\n"; - $headers .= "MIME-Version: 1.0\r\n"; - $headers .= "Content-type: text/html; charset=utf-8\r\n"; - $return = @mail($empfaenger, $betreff, $text, $headers); - $heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php - $datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll - $text_db = addslashes($text); - $betreff_db = addslashes($betreff); - if ($return) { - $sql1 = $db->query("INSERT INTO bpm_sonstige_mail (sender, sendermail, ka_id, empfaenger, mail_betreff, mail_text, status, sendedat) - VALUES ('$sender', '$sendermail', '$row_kaid[ka_id]', '$empfaenger', '$betreff', '$text_db', 'V', '$datum_db') - "); - $smarty->assign('mail_senderg', "Die Mail wurde verschickt!"); - } else { - $sql1 = $db->query("INSERT INTO bpm_sonstige_mail (sender, sendermail, ka_id, empfaenger, mail_betreff, mail_text, status, sendedat) - VALUES ('$sender', '$sendermail', '$row_kaid[ka_id]', '$empfaenger', '$betreff', '$text_db', 'F', '$datum_db') - "); - $smarty->assign('mail_senderg', "Die Mail konnte nicht verschickt werden!
Prüfen Sie die Mailadresse das Kandidaten."); - } - } -} -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/parameter.php b/admin/old/parameter.php deleted file mode 100644 index 4f02dec..0000000 --- a/admin/old/parameter.php +++ /dev/null @@ -1,84 +0,0 @@ -query($query1) or die("Cannot execute query1"); - - $result_ct = $db->query("SELECT count(*) Anz FROM bpm_tanpool where verw_dat = '0000-00-00 00:00:00'"); - $row_ct = $result_ct->fetch_array(); - $smarty->assign('parameter_anzahltan', "$row_ct[Anz]"); - - while ($row1 = $result1->fetch_array()) { - # Passwort fr die Praxisstellen wird verschlsselt gespeichert - - if(!isset($zaehler) or $zaehler == 1){ - $zaehler = 0; - }else{ - $zaehler = 1; - } - $row1['zaehler'] = $zaehler; - $table_data1[] = $row1; - } - - $smarty->assign('table_data1', $table_data1); -} - -if($action == 'save'){ - - - $query2 = "SELECT pid - FROM bpm_parameter - ORDER BY pid ASC"; - $result2 = $db->query( $query2) - or die ("Cannot execute query2"); - - while ($row2 = $result2->fetch_array()){ - $pid = $row2['pid']; - $pid_value = $_POST[$pid]; - - - $sql1 = $db->query( "UPDATE bpm_parameter - SET wert = '$pid_value' - WHERE pid = $pid - " ); - - } - - if(!$sql1){ - $error = TRUE; - $error_reason .= "Fehler beim Update [bpm_parameter]
"; - }else{ - $error = FALSE; - $smarty->assign('parameter_inserterr', "2"); - echo ""; - } - - if($error){ - $smarty->assign('parameter_inserterr', "1"); - $smarty->assign('parameter_reason', "$error_reason"); // Kein Mailversand - } // Ende IF : Insert hat geklappt - -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/praxisstellen_edit.php b/admin/old/praxisstellen_edit.php deleted file mode 100644 index 873f620..0000000 --- a/admin/old/praxisstellen_edit.php +++ /dev/null @@ -1,346 +0,0 @@ -query("SELECT vorname, nachname - FROM bpm_kandidat - WHERE ka_id = $user"); - $row_name = $result_name->fetch_array(); - $_SESSION["prxedit_user"] = $user; - $_SESSION["prxedit_username"] = "$row_name[vorname] $row_name[nachname]"; - # Falls aus bewerber_daten.php kommend, bietet man einen zurückbutton an - $smarty->assign('prxedit_value_user', $_SESSION["prxedit_user"]); - $smarty->assign('prxedit_value_username', $_SESSION["prxedit_username"]); - } - - $result_all = $db->query("SELECT count(*) Anz - FROM bpm_dienststellen - "); - $row_all = $result_all->fetch_array(); - $smarty->assign('prxedit_value_anzall', $row_all['Anz']); - - - $result_unreg = $db->query("SELECT count(*) Anz - FROM bpm_dienststellen - WHERE register_dat = '0000-00-00 00:00:00'"); - $row_unreg = $result_unreg->fetch_array(); - $smarty->assign('prxedit_value_anzunreg', $row_unreg['Anz']); - - $result_reg = $db->query("SELECT count(*) Anz - FROM bpm_dienststellen - WHERE register_dat != '0000-00-00 00:00:00'"); - $row_reg = $result_reg->fetch_array(); - $smarty->assign('prxedit_value_anzreg', $row_reg['Anz']); - - - - # -- Fehlermeldungen -- # - if (isset($_GET['error'])) { - - $errorno = $_GET['error']; - - $smarty->assign('prxedit_error', 1); - - $smarty->assign('prxedit_value_art', $_SESSION["prxedit_value_art"]); - $smarty->assign('prxedit_value_name', $_SESSION["prxedit_value_name"]); - $smarty->assign('prxedit_value_str', $_SESSION["prxedit_value_str"]); - $smarty->assign('prxedit_value_plz', $_SESSION["prxedit_value_plz"]); - $smarty->assign('prxedit_value_ort', $_SESSION["prxedit_value_ort"]); - $smarty->assign('prxedit_value_mail', $_SESSION["prxedit_value_mail"]); - $smarty->assign('prxedit_value_gueltigvon', $_SESSION["prxedit_value_gueltigvon"]); - $smarty->assign('prxedit_value_gueltigbis', $_SESSION["prxedit_value_gueltigbis"]); - - - - if ($errorno == 3) { - # ungültiges Datum - $smarty->assign('prxedit_error_text', "Das eingegebene Gültig von Datum ist nicht korrekt. Bitte korrigieren Sie das Datum!"); - } - if ($errorno == 4) { - # ungültiges Datum - $smarty->assign('prxedit_error_text', "Das eingegebene Gültig bis Datum ist nicht korrekt. Bitte korrigieren Sie das Datum!"); - } - } - - # --- Wenn Werte editiert werden ------------ - if ($_SESSION["prxedit_status"] == 'edit') { - - $result_edit = $db->query("SELECT dst_id, bezeichnung, name, str, plz, ort, mail, date_format(gueltig_von, '%d.%m.%Y') gueltig_von_form, date_format(gueltig_bis, '%d.%m.%Y') gueltig_bis_form - FROM bpm_dienststellen - WHERE dst_id = $id"); - $row_edit = $result_edit->fetch_array(); - if($row_edit['gueltig_von_form'] == '00.00.0000'){ - $gueltig_von_form = ""; - }else{ - $gueltig_von_form = $row_edit['gueltig_von_form']; - } - if($row_edit['gueltig_bis_form'] == '00.00.0000'){ - $gueltig_bis_form = ""; - }else{ - $gueltig_bis_form = $row_edit['gueltig_bis_form']; - } - $smarty->assign('prxedit_value_art', "$row_edit[bezeichnung]"); - $smarty->assign('prxedit_value_name', "$row_edit[name]"); - $smarty->assign('prxedit_value_str', "$row_edit[str]"); - $smarty->assign('prxedit_value_plz', "$row_edit[plz]"); - $smarty->assign('prxedit_value_ort', "$row_edit[ort]"); - $smarty->assign('prxedit_value_mail', "$row_edit[mail]"); - $smarty->assign('prxedit_value_gueltigvon', "$gueltig_von_form"); - $smarty->assign('prxedit_value_gueltigbis', "$gueltig_bis_form"); - - } - # --- Wenn Werte editiert werden Ende ------- - - if ($_GET['editende'] == 1) { - # Editieren ist beendet, als ein update auf einen Datensatz. Dann ist der status wieder Neu, damit wird wieder ein Insert durchgeführt - $_SESSION["prxedit_status"] = 'neu'; - } - - - -} - - -if ($action == 'save') { - -$art = $_POST['art']; -$name = $_POST['name']; -$str = $_POST['str']; -$plz = $_POST['plz']; -$ort = $_POST['ort']; -$mail = $_POST['mail']; -$gueltigvon = $_POST['gueltigvon']; -$gueltigbis = $_POST['gueltigbis']; -$regmail = $_POST['regmail']; - -$_SESSION["prxedit_value_art"] = $art; -$_SESSION["prxedit_value_name"] = $name; -$_SESSION["prxedit_value_str"] = $str; -$_SESSION["prxedit_value_plz"] = $plz; -$_SESSION["prxedit_value_ort"] = $ort; -$_SESSION["prxedit_value_mail"] = $mail; - -$gueltigvon_form = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $gueltigvon); -$gueltigbis_form = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $gueltigbis); - - -function validateDate($date, $format = 'Y-m-d') -{ - $d = DateTime::createFromFormat($format, $date); - return $d && $d->format($format) == $date; -} - -if(!validateDate($gueltigvon_form) AND $gueltigvon_form != ''){ - echo ""; - exit; -} - -if(!validateDate($gueltigbis_form) AND $gueltigbis_form != ''){ - echo ""; - exit; -} - -if($gueltigvon_form == ''){ - $gueltigvon_form ='0000-00-00'; -} - -if($gueltigbis_form == ''){ - $gueltigbis_form ='0000-00-00'; -} - - $bez = $art." ".$name; - - #$datum = date("Y-m-d H:i:s"); - - if ($_SESSION["prxedit_status"] == 'neu') { - $tan = tangen(); - $sql1 = $db->query("INSERT INTO bpm_dienststellen ( bezeichnung - , name - , bez - , str - , plz - , ort - , mail - , init_tan - , gueltig_von - , gueltig_bis - ) - VALUES - ( '$art' - , '$name' - , '$bez' - , '$str' - , '$plz' - , '$ort' - , '$mail' - , '$tan' - , '$gueltigvon_form' - , '$gueltigbis_form' - ) - "); - } - - if ($_SESSION["prxedit_status"] == 'edit') { - $id = $_SESSION["prxedit_id"]; - $ka_id = $_SESSION["prxedit_user"]; - if($regmail == 'j'){ - $tan = tangen(); - $result = $db->query("UPDATE bpm_dienststellen - SET bezeichnung = '$art' - , name = '$name' - , bez = '$bez' - , str = '$str' - , plz = '$plz' - , ort = '$ort' - , mail = '$mail' - , init_tan = '$tan' - , gueltig_von = '$gueltigvon_form' - , gueltig_bis = '$gueltigbis_form' - , regmail_betreff = '' - , regmail_text = '' - , regmail_status = 'O' - , regmail_sendedat = '0000-00-00 00:00:00' - , pwd = '' - , register_dat = '0000-00-00 00:00:00' - WHERE dst_id = $id - "); - }else{ - $result = $db->query("UPDATE bpm_dienststellen - SET bezeichnung = '$art' - , name = '$name' - , bez = '$bez' - , str = '$str' - , plz = '$plz' - , ort = '$ort' - , mail = '$mail' - , gueltig_von = '$gueltigvon_form' - , gueltig_bis = '$gueltigbis_form' - WHERE dst_id = $id - "); - } - unset($_SESSION['prxedit_id']); - } - # Dann bekommts beim refresh den status neu, also es wird beim Abschicken ein Insert gemacht - $editende = 1; - echo ""; - - -} -if ($action == 'del') { - $id = $_GET['id']; - - $del1 = $db->query("DELETE FROM bpm_termine WHERE id = $id"); - - echo ""; -} - - -if ($action == 'mailsenden') { - - $dst_id = $_GET['dst_id']; - $result_erg = $db->query("SELECT regmail_betreff, regmail_text, mail - FROM bpm_dienststellen - WHERE dst_id =$dst_id"); - $row_erg = $result_erg->fetch_array(); - - $sender = "Hochschule Ludwigsburg"; - $sendermail = get_parameter(8); - - $smarty->assign('mail_sender', $sender); - $smarty->assign('mail_sendermail', $sendermail); - - - $smarty->assign('mail_text', $row_erg['regmail_text']); - $smarty->assign('mail_betreff', $row_erg['regmail_betreff']); - $smarty->assign('mail_mail', $row_erg['mail']); - $smarty->assign('mail_dstid', $dst_id); -} - -if ($action == 'mailsenden2') { - $dst_id = $_POST['dst_id']; - $sender = $_POST['mail_sender']; - $sendermail = $_POST['mail_sendermail']; - $empfaenger = $_POST['mail_mail']; - $betreff = $_POST['betreff']; - $text = $_POST['text']; - - #Beim CKEDITOR die

Tags mit Zeilenabstand 0 in der Mail - $style =" - - - "; - $text = $style.$text; - - #echo " - #From: $sender - $sendermail
- #$empfaenger
- #$betreff
- #$text
"; - #exit; - - ## Mailversand: - $headers = "From: $sender <$sendermail>\r\n"; - $headers .= "MIME-Version: 1.0\r\n"; - $headers .= "Content-type: text/html; charset=utf-8\r\n"; - $return = @mail($empfaenger, $betreff, $text, $headers); - $heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php - $datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll - $text_db = addslashes($text); - $betreff_db = addslashes($betreff); - if ($return) { - $sql1 = $db->query("UPDATE bpm_dienststellen - SET regmail_text = '$text_db' - , regmail_betreff = '$betreff' - , regmail_status = 'V' - , regmail_sendedat = '$datum_db' - WHERE dst_id = $dst_id - "); - $smarty->assign('mail_senderg', "Die Mail wurde verschickt!"); - } else { - $sql1 = $db->query("UPDATE bpm_dienststellen - SET regmail_text = '$text_db' - , regmail_betreff = '$betreff_db' - , status = 'F' - WHERE dst_id = $dst_id - "); - $smarty->assign('mail_senderg', "Die Mail konnte nicht verschickt werden!
Prüfen Sie die Mailadresse der Praxissstelle."); - } -} - - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/praxisstellen_news.php b/admin/old/praxisstellen_news.php deleted file mode 100644 index 3a0611d..0000000 --- a/admin/old/praxisstellen_news.php +++ /dev/null @@ -1,151 +0,0 @@ -assign('news_error', 1); - - $smarty->assign('news_value_headline', $_SESSION["news_value_headline"]); - $smarty->assign('news_value_text', $_SESSION["news_value_text"]); - - if ($errorno == 1) { - # ungültiges Datum - $smarty->assign('news_error_text', "Bitte füllen Sie alle Felder aus!"); - } - } - - # --- Wenn Werte editiert werden ------------ - if ($_SESSION["news_status"] == 'edit') { - $result_edit = $db->query("SELECT pn_id, pn_headline, pn_text - FROM bpm_prxnews - WHERE pn_id = $pn_id"); - $row_edit = $result_edit->fetch_array(); - $smarty->assign('news_value_headline', "$row_edit[pn_headline]"); - $smarty->assign('news_value_text', "$row_edit[pn_text]"); - - } - # --- Wenn Werte editiert werden Ende ------- - - if ($_GET['editende'] == 1) { - # Editieren ist beendet, als ein update auf einen Datensatz. Dann ist der status wieder Neu, damit wird wieder ein Insert durchgeführt - $_SESSION["news_status"] = 'neu'; - } - - - # Gespeicherte Werte - $query1 = "SELECT pn_id, pn_headline, pn_text, date_format(pn_date, '%d.%m.%Y - %H:%i Uhr') pn_date_form - FROM bpm_prxnews - ORDER BY pn_date DESC"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - while ($row1 = $result1->fetch_array()) { - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - -} - - -if ($action == 'save') { - -$headline = $_POST['headline']; -$text = $_POST['text']; - -$_SESSION["news_value_headline"] = $headline; -$_SESSION["news_value_text"] = $text; - - -if($text == "" or $headline == ""){ - echo ""; - exit; -} - - - $datum = date("Y-m-d H:i:s"); - $headline_db = addslashes($headline); - $text_db = addslashes($text); - - if ($_SESSION["news_status"] == 'neu') { - - $sql1 = $db->query("INSERT INTO bpm_prxnews ( pn_headline - , pn_text - , pn_date - ) - VALUES - ( '$headline_db' - , '$text_db' - , '$datum' - ) - "); - } - - if ($_SESSION["news_status"] == 'edit') { - $pn_id = $_SESSION["news_pn_id"]; - - $result = $db->query("UPDATE bpm_prxnews - SET pn_headline = '$headline_db' - , pn_text = '$text_db' - WHERE pn_id = $pn_id - "); - - unset($_SESSION['news_pn_id']); - - } - # Dann bekommts beim refresh den status neu, also es wird beim Abschicken ein Insert gemacht - $editende = 1; - echo ""; - - -} - -if ($action == 'show') { - $pn_id = $_GET['pn_id']; - $result_show = $db->query("SELECT pn_headline, pn_text - FROM bpm_prxnews - WHERE pn_id = $pn_id - "); - $row_show = $result_show->fetch_array(); - $smarty->assign('prx_show_headline', $row_show['pn_headline']); - $smarty->assign('prx_show_text', $row_show['pn_text']); -} - -if ($action == 'del') { - $pn_id = $_GET['pn_id']; - - $del1 = $db->query("DELETE FROM bpm_prxnews WHERE pn_id = $pn_id"); - - echo ""; -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/prx_search.php b/admin/old/prx_search.php deleted file mode 100644 index d077ec3..0000000 --- a/admin/old/prx_search.php +++ /dev/null @@ -1,163 +0,0 @@ -query("SELECT dst_id, bezeichnung, name, str, plz, ort, mail, date_format(gueltig_von, '%d.%m.%Y') gueltig_von_form, date_format(gueltig_bis, '%d.%m.%Y') gueltig_bis_form - , gueltig_von, gueltig_bis, register_dat, init_tan, regmail_status, date_format(regmail_sendedat, '%d.%m.%Y - %H:%i') regmail_sendedat_form - FROM bpm_dienststellen - WHERE register_dat != '0000-00-00 00:00:00' - ORDER BY name ASC"); - }elseif($_GET['search'] == 'unreg'){ - $result1 = $db->query("SELECT dst_id, bezeichnung, name, str, plz, ort, mail, date_format(gueltig_von, '%d.%m.%Y') gueltig_von_form, date_format(gueltig_bis, '%d.%m.%Y') gueltig_bis_form - , gueltig_von, gueltig_bis, register_dat, init_tan, regmail_status, date_format(regmail_sendedat, '%d.%m.%Y - %H:%i') regmail_sendedat_form - FROM bpm_dienststellen - WHERE register_dat = '0000-00-00 00:00:00' - ORDER BY name ASC"); - }else{ - - $result1 = $db->query("SELECT dst_id, bezeichnung, name, str, plz, ort, mail, date_format(gueltig_von, '%d.%m.%Y') gueltig_von_form, date_format(gueltig_bis, '%d.%m.%Y') gueltig_bis_form - , gueltig_von, gueltig_bis, register_dat, init_tan, regmail_status, date_format(regmail_sendedat, '%d.%m.%Y - %H:%i') regmail_sendedat_form - FROM bpm_dienststellen - WHERE upper(name) LIKE '%" . strtoupper($_GET['search']) . "%' - OR plz LIKE '%" . $_GET['search'] . "%' - OR bezeichnung LIKE '%" . $_GET['search'] . "%' - ORDER BY name ASC"); - } -echo " - - - - - - - - - - - - - - - - -"; - - while($row = $result1->fetch_array()) - { - if($row['gueltig_von'] != '0000-00-00'){ - $gueltig_von = $row['gueltig_von_form']; - }else{ - $gueltig_von = ''; - } - - if($row['gueltig_bis'] != '0000-00-00'){ - $gueltig_bis = $row['gueltig_bis_form']; - }else{ - $gueltig_bis = ''; - } - - if($row['register_dat'] == '0000-00-00 00:00:00'){ - $tan = $row['init_tan']; - $id_url = cryption($row['dst_id'], 'e'); - $link_register = "Registrierungslink"; - $status = ""; - - }else{ - $tan = ""; - $link_register = ""; - } - if ($row['regmail_status'] == 'V') { - $status = "Versendet
$row[regmail_sendedat_form]"; - } - if ($row['regmail_status'] == 'F') { - $status = "Fehler"; - } - - - - $lnnr++; - echo ''; - echo ''; - - echo ''; - - echo ''; - - echo ''; - - echo ''; - - echo ''; - - echo ''; - - echo ''; - - echo ''; - - echo ''; - - echo ''; - - echo ''; - - echo ''; - echo ''; - } -echo "
- # - - Behördenart - - Name - - Straße - - PLZ - - Ort - - Mailadresse - - Registrierungstan - - Registrierungslink - - Registrierungsmail - - Gültig von - - Gültig bis - - Edit -
'; - echo $lnnr; - echo ''; - echo preg_replace('/(' . $_GET['search'] . ')/Usi', '\\1', $row['bezeichnung']); - echo ''; - echo preg_replace('/(' . $_GET['search'] . ')/Usi', '\\1', $row['name']); - echo ''; - echo preg_replace('/(' . $_GET['search'] . ')/Usi', '\\1', $row['str']); - echo ''; - echo preg_replace('/(' . $_GET['search'] . ')/Usi', '\\1', $row['plz']); - echo ''; - echo preg_replace('/(' . $_GET['search'] . ')/Usi', '\\1', $row['ort']); - echo ''; - echo preg_replace('/(' . $_GET['search'] . ')/Usi', '\\1', $row['mail']); - echo ''; - echo preg_replace('/(' . $_GET['search'] . ')/Usi', '\\1', $tan); - echo ''; - echo preg_replace('/(' . $_GET['search'] . ')/Usi', '\\1', $link_register); - echo ''; - echo preg_replace('/(' . $_GET['search'] . ')/Usi', '\\1', $status); - echo ''; - echo preg_replace('/(' . $_GET['search'] . ')/Usi', '\\1', $gueltig_von); - echo ''; - echo preg_replace('/(' . $_GET['search'] . ')/Usi', '\\1', $gueltig_bis); - echo ''; - echo ''; - echo '
"; -?> diff --git a/admin/old/rangliste2.php b/admin/old/rangliste2.php deleted file mode 100644 index 886d439..0000000 --- a/admin/old/rangliste2.php +++ /dev/null @@ -1,72 +0,0 @@ -query($query1) or die("Cannot execute query1"); - $row_cnt = $result1->num_rows; - $smarty->assign('dokverw_anzdb', $row_cnt); - - $rangliste = 0; - $lfd_nr2 = 0; - $lfd_nr3 = 0; - $summevorher = 0; - - while ($row1 = $result1->fetch_array()) { - - $lfd_nr2++; - - $summe = $row1['summe']; - if($summe == $summevorher){ - $rangliste = $lfd_nr3; - }else{ - $rangliste = $lfd_nr2; - $lfd_nr3 = $lfd_nr2; - } - $summevorher = $row1['summe']; - - - $row1['rangliste'] = $rangliste; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/rangliste2_excel.php b/admin/old/rangliste2_excel.php deleted file mode 100644 index de3999c..0000000 --- a/admin/old/rangliste2_excel.php +++ /dev/null @@ -1,104 +0,0 @@ -getActiveSheet()->getPageSetup()->setFitToWidth(1); -#$spreadsheet->getActiveSheet()->getPageSetup()->setFitToHeight(0); - -$activeSheet = $spreadsheet->getActiveSheet(); - -$activeSheet->getStyle('A1:G1')->applyFromArray( - array( - 'font' => array( - 'bold' => true - ) - ) - ); - - -$activeSheet->setCellValue('A1', 'Ranglistenplatz'); -$activeSheet->setCellValue('B1', 'Vorname'); -$activeSheet->setCellValue('C1', 'Nachname'); -$activeSheet->setCellValue('D1', 'Mail'); -$activeSheet->setCellValue('E1', 'ID'); -$activeSheet->setCellValue('F1', 'Testdatum'); -$activeSheet->setCellValue('G1', 'Ergebnis'); -$activeSheet->freezePane('H2'); - -$query = $db->query("SELECT a.ka_id, vorname, nachname, date_format(tm_datum, '%d.%m.%Y um %H:%i Uhr') tm_datum, CASE tm_standort - WHEN 'L' THEN 'Ludwigsburg' - WHEN 'K' THEN 'Kehl' - ELSE '' END as tm_standort - , summe - , id - , mail - FROM bpm_kandidat a, bpm_term_kand b, bpm_termine c, bpm_ergebnisse d, bpm_tanpool e - WHERE a.ka_id = b.ka_id - AND b.tm_id = c.tm_id - AND a.ka_id = d.ka_id - AND b.tp_id = e.tp_id - AND a.ka_id IN (SELECT distinct ka_id FROM bpm_ergebnisse) - AND a.ka_id IN (SELECT distinct ka_id FROM bpm_upload WHERE upload_dat != '0000-00-00 00:00:00') - AND d.bestanden = '1' - AND e.tan=d.tan - ORDER BY summe DESC, nachname ASC, vorname ASC - "); - -if($query->num_rows > 0) { - $i = 2; - $rangliste = 0; - $lfd_nr2 = 0; - $lfd_nr3 = 0; - $summevorher = 0; - - while($row = $query->fetch_assoc()) { - - $lfd_nr2++; - - $summe = $row['summe']; - if($summe == $summevorher){ - $rangliste = $lfd_nr3; - }else{ - $rangliste = $lfd_nr2; - $lfd_nr3 = $lfd_nr2; - } - $summevorher = $row['summe']; - - $activeSheet->setCellValue('A'.$i , $rangliste); - $activeSheet->setCellValue('B'.$i , $row['nachname']); - $activeSheet->setCellValue('C'.$i , $row['vorname']); - $activeSheet->setCellValue('D'.$i , $row['mail']); - $activeSheet->setCellValue('E'.$i , $row['id']); - $activeSheet->setCellValue('F'.$i , "$row[tm_datum] ($row[tm_standort])"); - $activeSheet->setCellValue('G'.$i , $row['summe']); - $i++; - } - -} -$spreadsheet->getActiveSheet()->setTitle("Rangliste 2"); -$spreadsheet->getActiveSheet()->setSelectedCell('A1'); -$spreadsheet->getActiveSheet()->getColumnDimension('A')->setAutoSize(true); -$spreadsheet->getActiveSheet()->getColumnDimension('B')->setAutoSize(true); -$spreadsheet->getActiveSheet()->getColumnDimension('C')->setAutoSize(true); -$spreadsheet->getActiveSheet()->getColumnDimension('D')->setAutoSize(true); -$spreadsheet->getActiveSheet()->getColumnDimension('E')->setAutoSize(true); -$spreadsheet->getActiveSheet()->getColumnDimension('F')->setAutoSize(true); -$spreadsheet->getActiveSheet()->getColumnDimension('G')->setAutoSize(true); - -$writer = new Xlsx($spreadsheet); -$filename = 'Rangliste2.xlsx'; - -header('Content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); -header('Content-Disposition: attachment;filename='. $filename); -header('Cache-Control: max-age=0'); -$writer->save('php://output'); - -?> \ No newline at end of file diff --git a/admin/old/save_note.php b/admin/old/save_note.php deleted file mode 100644 index 37e1eb1..0000000 --- a/admin/old/save_note.php +++ /dev/null @@ -1,88 +0,0 @@ -query("SELECT count(*) Anz - FROM bpm_note - WHERE ka_id = $ka_id"); - $row_anz = $query_anz->fetch_array(); - if($row_anz['Anz'] == 0){ - #Insert - $sql1 = $db->query("INSERT INTO bpm_note (ka_id, hzb, hzb_punkte, zeugnisschnitt, zeugnisschnitt_punkte, erfdat_hzb, erfdat_schnitt) VALUES('$ka_id', '$hzbnote', '$hzbpunkte', '$durchschnittnote', '$durchschnittpunkte', '$erfdat_hzb', '$erfdat_schnitt')"); - }else{ - #Update - $sql1 = $db->query("UPDATE bpm_note - SET hzb = '$hzbnote' - ,hzb_punkte = '$hzbpunkte' - ,zeugnisschnitt = '$durchschnittnote' - ,zeugnisschnitt_punkte = '$durchschnittpunkte' - ,erfdat_hzb = '$erfdat_hzb' - ,erfdat_schnitt = '$erfdat_schnitt' - WHERE ka_id = '$ka_id'"); - } - - - - exit; - -?> - diff --git a/admin/old/tanimport.php b/admin/old/tanimport.php deleted file mode 100644 index 990b298..0000000 --- a/admin/old/tanimport.php +++ /dev/null @@ -1,274 +0,0 @@ - Semikolon -// oder $trennzeichen_excel = ","; --> Komma -############################################################# - - - - -$_SESSION["ck_verz"] = $verz; - - -if ($action == '') { - # Den Testtermin wählt man, damit jede Hochschule seine eigenen Daten importieren kann. Wenn eine Hochschule am selben TAg einen Test hat vermeidet man dass ein halbfertiger Test importiert wird - if (isset($_POST["testtermin"])) { - $testtermin = $_POST["testtermin"]; - } else { - $testtermin = $_SESSION["testtermin"]; - } - - $_SESSION["testtermin"] = $testtermin; - - - # Uploadverzeichnis aufräumen. Temporäre Dateien, die älter als 2 Wochen sind, werden gelöscht - $dir = $_SERVER["DOCUMENT_ROOT"].dirname($_SERVER['PHP_SELF'])."/$verz"; - $folder = dir($dir); - while ($dateiname = $folder->read()) { - if (filetype($dir.$dateiname) != "dir") { - if (strtotime("-2 weeks") > - @filemtime($dir.$dateiname)) { - if (@unlink($dir.$dateiname) != false){ - # echo $dateiname.' wurde gelöscht
'; - }else{ - # echo $dateiname.' konnte nichtgelöscht werden
'; - } - } - } - } - - $result_ct = $db->query("SELECT count(*) Anz FROM bpm_tanpool where verw_dat = '0000-00-00 00:00:00'"); - $row_ct = $result_ct->fetch_array(); - $smarty->assign('tanimp_anzahltan', "$row_ct[Anz]"); - - # Fehler beim Upload anzeigen - if (isset($_GET['error'])) { - - $errorno = $_GET['error']; - $smarty->assign('index_error', 1); - - if ($errorno == 1) { - $smarty->assign('index_error_text', "Es dürfen nur CSV Dateien hochgeladen werden."); - } - if ($errorno == 2) { - # Tabelle bpm_parameter - $size_mb = trim(get_parameter(12)); - $smarty->assign('index_error_text', "Die Datei ist zu groß. Die Dateigröße darf max. $size_mb MB betragen."); - } - if ($errorno == 3) { - $smarty->assign('index_error_text', "Vorgang wurde abgebrochen. Die Datei wurde vom Server gelöscht"); - } - if ($errorno == 4) { - $smarty->assign('index_error_text', "Vorgang wurde abgebrochen. Die Datei wurde nicht vom Server gelöscht"); - } - } -} - -if ($action == 'csvimp') { - - $testtermin = $_SESSION["testtermin"]; - - // http://www.tutorials.de/tutorials65420.html - #echo '

', print_r($_POST, true), '
'; - - $tempname = $_FILES['file']['tmp_name']; - $name = $_FILES['file']['name']; - - $type = $_FILES['file']['type']; - $size = $_FILES['file']['size']; - $einheit = "Byte"; // Für die Efolgsmeldung. - - $limitedext = array( - ".csv" - ); //Erlaubte Dateieindung beim Upload - - $extlimit = "yes"; //Do you want to limit the extensions of files uploaded - $ext = strrchr($name, '.'); - - if (($extlimit == "yes") && (!in_array($ext, $limitedext))) { - echo ""; - exit; - } - - - # Tabelle bpm_parameter - $size_mb = trim(get_parameter(12)); - $size_bt = $size_mb * 1024 * 1024; - - if ($size > $size_bt) { - echo ""; - exit; - } - - - $name = str_replace(array( - "ä", - "ö", - "ü", - "ß", - "Ä", - "Ö", - "Ü", - " " - ), array( - "ae", - "oe", - "ue", - "ss", - "Ae", - "Oe", - "Ue", - "_" - ), $name); - $heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php - $heuteformat = date("H-i-s_Y-m-d", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll - $datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll - $neu = $heuteformat . "_" . $name; - $_SESSION["ck_neu"] = $neu; - move_uploaded_file("$tempname", "$verz$neu"); // Unterverzeichnisse wie folgt: copy("$tempname", "pdf/$neu"); - - $handle = fopen("$verz$neu", "r"); // Datei zum Lesen öffnen - - - # Hier vor der Schleife erste Zeile holen und ignorieren. Enthält Überschrift - # fgetcsv($handle, 0, $trennzeichen_excel); - - while (($data = fgetcsv($handle, 0, $trennzeichen_excel)) !== FALSE) { // Daten werden aus der Datei in ein Array $data gelesen - if(!isset($zaehler) or $zaehler == 1){ - $zaehler = 0; - }else{ - $zaehler = 1; - } - - $tan = $data[3]; - $tinyurl = $data[4]; - - $row1['zaehler'] = $zaehler; - $row1['tan'] = $tan; - $row1['tinyurl'] = $tinyurl; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - fclose($handle); - -} - -if ($action == 'csvimp2') { - $neu = $_SESSION["ck_neu"]; //CSV-Dateinamen um Datei löschen zu können - $verz = $_SESSION["ck_verz"]; //Uploadverzeichnis aus Cookie holen - $testtermin = $_SESSION["testtermin"]; - - - if ($_POST['import'] == "0") // DS sollen nicht importiert werden - { - $dateiname = "$verz$neu"; - if (@unlink($dateiname)) // Funktion löscht Dateien und gibt true / false zurück - { - # Abbruch, datei gelöscht - echo ""; - exit; - } else { - # Abbruch, datei nicht gelöscht - echo ""; - exit; - } // End if - - } elseif ($_POST['import'] == "1") // DS sollen importiert werden - { - $handle = fopen("$verz$neu", "r"); // Datei zum Lesen öffnen - - - while (($data = fgetcsv($handle, 0, $trennzeichen_excel)) !== FALSE) { // Daten werden aus der Datei in ein Array $data gelesen - - $dummy_vorname = $data[0]; - $dummy_name = $data[1]; - $tan = $data[3]; - $tinyurl = $data[4]; - - $result_ct = $db->query("SELECT count(*) Anz - FROM bpm_tanpool - WHERE tan = '$tan'"); - $row_ct = $result_ct->fetch_array(); - - if ($row_ct['Anz'] == 0) { - # keine TANs vorhanden, insert - - $sql1 = $db->query("insert into bpm_tanpool (dummy_name - , dummy_vorname - , tan - , tinyurl - , aktiv) - VALUES ( '$dummy_name' - , '$dummy_vorname' - , '$tan' - , '$tinyurl' - , 'A' - )"); - if (!$sql1) { - $hinweis['hinweis'] = "TAN: " . $tan . " Fehler: TAN nicht gespeichert
"; - $smarty->assign('index_error', 1); - } - } else { - # Ergebnisse gibt es schon, kein insert - $hinweis['hinweis'] = "TAN: " . $tan . " schon vorhanden
"; - $smarty->assign('index_error', 1); - } - - $table_data2[] = $hinweis; - } - $smarty->assign('table_data2', $table_data2); - - - fclose($handle); - - } else { // Es wurde kein Radiobutton gewählt! Technisch aber ausgeschlossen - - echo "sie müssen eine Auswahl treffen"; - - } - - function deleteFiles($verz) - { - $handle = opendir($verz); - while ($file = readdir($handle)) { - if ($file != "." && $file != "..") { - - $datei = $verz . $file; - - if (@unlink($datei)) { - $error = TRUE; - } else { - $error = FALSE; - } - } - } - closedir($handle); - return $error; - } - - deleteFiles($verz); // Dateien werden im Uploadverzeichnis gelöscht, falls noch welche darin wären - -} // ende Action - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> diff --git a/admin/old/termine.php_bcc b/admin/old/termine.php_bcc deleted file mode 100644 index 3747953..0000000 --- a/admin/old/termine.php_bcc +++ /dev/null @@ -1,352 +0,0 @@ -assign('termine_error', 1); - - $smarty->assign('termine_value_datum', $_SESSION["termine_value_tm_datum"]); - $smarty->assign('termine_value_zeit', $_SESSION["termine_value_tm_zeit"]); - $smarty->assign('termine_value_tm_standort', $_SESSION["termine_value_tm_standort"]); - $smarty->assign('termine_value_tm_plaetze', $_SESSION["termine_value_tm_plaetze"]); - $smarty->assign('termine_value_tm_raum', $_SESSION["termine_value_tm_raum"]); - $smarty->assign('termine_value_tm_referenznr', $_SESSION["termine_value_tm_referenznr"]); - - if ($errorno == 3) { - # ungültiges Datum - $smarty->assign('termine_error_text', "Das eingegebene Datum ist nicht korrekt. Bitte korrigieren Sie das Datum!"); - } - } - - # --- Wenn Werte editiert werden ------------ - if ($_SESSION["termine_status"] == 'edit') { - $result_edit = $db->query("SELECT tm_id, date_format(tm_datum, '%d.%m.%Y') datum, date_format(tm_datum, '%H:%i') zeit, tm_standort, tm_plaetze, tm_raum, tm_referenznr - FROM dvm_termine - WHERE tm_id = $tm_id"); - $row_edit = $result_edit->fetch_array(); - $smarty->assign('termine_value_datum', "$row_edit[datum]"); - $smarty->assign('termine_value_zeit', "$row_edit[zeit]"); - $smarty->assign('termine_value_tm_standort', "$row_edit[tm_standort]"); - $smarty->assign('termine_value_tm_plaetze', "$row_edit[tm_plaetze]"); - $smarty->assign('termine_value_tm_raum', "$row_edit[tm_raum]"); - $smarty->assign('termine_value_tm_referenznr', "$row_edit[tm_referenznr]"); - - } - # --- Wenn Werte editiert werden Ende ------- - - if ($_GET['editende'] == 1) { - # Editieren ist beendet, als ein update auf einen Datensatz. Dann ist der status wieder Neu, damit wird wieder ein Insert durchgeführt - $_SESSION["termine_status"] = 'neu'; - } - - - # Gespeicherte Werte - $query1 = "SELECT tm_id, date_format(tm_datum, '%d.%m.%Y') datum, date_format(tm_datum, '%H:%i') zeit, tm_standort, tm_plaetze, tm_raum, tm_referenznr - FROM dvm_termine - WHERE tm_datum > now() - ORDER BY tm_datum ASC, zeit ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - while ($row1 = $result1->fetch_array()) { - if($row1['tm_standort'] == 'L'){ - $standort = 'Ludwigsburg'; - } - if($row1['tm_standort'] == 'K'){ - $standort = 'Kehl'; - } - $restplatz = get_restplatz($row1['tm_id']); - if($restplatz != $row1['tm_plaetze']){ - $disable = 0; - }else{ - $disable = 1; - } - $row1['restplatz'] = $restplatz; - $row1['tm_disable'] = $disable; - $row1['standort_form'] = $standort; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - -} - - -if ($action == 'save') { - -$tm_datum = $_POST['tm_datum']; -$tm_zeit = $_POST['tm_zeit']; -$tm_plaetze = $_POST['tm_plaetze']; -$tm_standort = $_POST['tm_standort']; -$tm_raum = $_POST['tm_raum']; -$tm_referenznr = trim($_POST['tm_referenznr']); - - -$_SESSION["termine_value_tm_datum"] = $tm_datum; -$_SESSION["termine_value_tm_zeit"] = $tm_zeit; -$_SESSION["termine_value_tm_plaetze"] = $tm_plaetze; -$_SESSION["termine_value_tm_standort"] = $tm_standort; -$_SESSION["termine_value_tm_raum"] = $tm_raum; -$_SESSION["termine_value_tm_referenznr"] = $tm_referenznr; - -$tm_datum_form = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $tm_datum); -$testdatum = $tm_datum_form." ".$tm_zeit.":00"; -$_SESSION["termine_value_tm_testdatum"] = $testdatum; -function validateDate($date, $format = 'Y-m-d') -{ - $d = DateTime::createFromFormat($format, $date); - return $d && $d->format($format) == $date; -} - -if(!validateDate($tm_datum_form)){ - echo ""; - exit; -} - - - #$datum = date("Y-m-d H:i:s"); - if ($_SESSION["termine_status"] == 'neu') { - $sql1 = $db->query("INSERT INTO dvm_termine ( tm_datum - , tm_standort - , tm_plaetze - , tm_raum - , tm_referenznr - ) - VALUES - ( '$testdatum' - , '$tm_standort' - , '$tm_plaetze' - , '$tm_raum' - , '$tm_referenznr' - ) - "); - } - - if ($_SESSION["termine_status"] == 'edit') { - $tm_id = $_SESSION["termine_tm_id"]; - - # Prüfen, ob zu diesem Termin bereits Kandidaten gebucht sind. Wenn ja, dann Weiterleitung zum Mailanschreiben und dann Termin ändern - $result_vorh = $db->query("SELECT count(*) Anz - FROM dvm_term_kand - WHERE tm_id ='$tm_id' - "); - $row_vorh = $result_vorh->fetch_array(); - - # Prüfen, ob der Kandidat angeschrieben werden muss. Nur bei einer Änderung der Anzahl muss der Kandidat nicht extra informiert werden - $result_vorh1 = $db->query("SELECT count(*) Anz - FROM dvm_termine - WHERE tm_id ='$tm_id' - AND (tm_datum != '$testdatum' - OR tm_standort != '$tm_standort' - OR tm_raum != '$tm_raum' - OR tm_referenznr != '$tm_referenznr' - ) - "); - $row_vorh1 = $result_vorh1->fetch_array(); - if($row_vorh['Anz'] != 0 AND $row_vorh1['Anz'] != 0){ - echo ""; - exit; - }else{ - $result = $db->query("UPDATE dvm_termine - SET tm_datum = '$testdatum' - , tm_standort = '$tm_standort' - , tm_plaetze = '$tm_plaetze' - , tm_raum = '$tm_raum' - , tm_referenznr = '$tm_referenznr' - WHERE tm_id = $tm_id - "); - - unset($_SESSION['termine_tm_id']); - } - - } - # Dann bekommts beim refresh den status neu, also es wird beim Abschicken ein Insert gemacht - $editende = 1; - echo ""; - - -} -if ($action == 'del') { - $tm_id = $_GET['tm_id']; - - $del1 = $db->query("DELETE FROM dvm_termine WHERE tm_id = $tm_id"); - - echo ""; -} - -if ($action == 'mailterminupdate') { - $tm_id = $_SESSION["termine_tm_id"]; - - # Gespeicherte Werte - $query1 = "SELECT mail - FROM dvm_kandidat - WHERE ka_id IN (SELECT ka_id - FROM dvm_term_kand - WHERE tm_id = $tm_id) - ORDER BY nachname ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - while ($row1 = $result1->fetch_array()) { - $mail .= "$row1[mail], "; - } - $mail_lubu = get_parameter(8); - $mail_kehl = get_parameter(7); - - $mail_an = "$mail_kehl, $mail_lubu"; - $mail_bcc = substr(trim($mail),0,-1); - $smarty->assign('mtupd_mailadressen_an', "$mail_an"); - $smarty->assign('mtupd_mailadressen_bcc', "$mail_bcc"); - -} - -if ($action == 'mailsenden2') { - - $tm_id = $_SESSION["termine_tm_id"]; - $tm_plaetze = $_SESSION["termine_value_tm_plaetze"]; - $tm_standort = $_SESSION["termine_value_tm_standort"]; - $tm_raum = $_SESSION["termine_value_tm_raum"]; - $tm_referenznr = $_SESSION["termine_value_tm_referenznr"]; - $testdatum = $_SESSION["termine_value_tm_testdatum"]; - $empfaenger_an = $_POST['empfaenger_an']; - $empfaenger_bcc = $_POST['empfaenger_bcc']; - $betreff = $_POST['betreff']; - $text = $_POST['text']; - $absender = $_POST['absender']; - - if($absender == 'Kehl'){ - $sendermail = get_parameter(7); - $sender = 'Hochschule Kehl'; - } - - if($absender == 'Ludwigsburg'){ - $sendermail = get_parameter(8); - $sender = 'Hochschule Ludwigsburg'; - } - - # Update - $result = $db->query("UPDATE dvm_termine - SET tm_datum = '$testdatum' - , tm_standort = '$tm_standort' - , tm_plaetze = '$tm_plaetze' - , tm_raum = '$tm_raum' - , tm_referenznr = '$tm_referenznr' - WHERE tm_id = $tm_id - "); - - $query_termin = $db->query("SELECT date_format(tm_datum, '%d.%m.%Y um %H:%i Uhr') tm_datum, tm_standort, tm_raum, tm_plaetze, tm_referenznr FROM dvm_termine WHERE tm_id='$tm_id'"); - $row_termin = $query_termin->fetch_array(); - if($row_termin['tm_standort'] == 'L'){ - $standort = 'Ludwigsburg - Reuteallee 36, 71634 Ludwigsburg'; - } - - if($row_termin['tm_standort'] == 'K'){ - $standort = 'Kehl - Kinzigallee 1, 77694 Kehl'; - } - $text = $text." -
-
- Neue Daten:
- - - - - - - - - - - - - - -
- - Testtag: - - - - $row_termin[tm_datum] - -
- - Hochschule: - - - - $standort - -
- - Gebäude / Raum: - - - - $row_termin[tm_raum] - -
- "; - - #echo " - #From: $sender - $sendermail
- #$empfaenger
- #$betreff
- #$text
- #$hochschule
"; - #exit; - - - - ## Mailversand: - $headers = "From: $sender <$sendermail>\r\n"; - $headers .= "MIME-Version: 1.0\r\n"; - $headers .= "Content-type: text/html; charset=utf-8\r\n"; - $headers .= "Bcc: $empfaenger_bcc\n"; - - $return = @mail($empfaenger_an, $betreff, $text, $headers); - - if ($return) { - $smarty->assign('mail_senderg', "Die Mail wurde verschickt!"); - } else { - $smarty->assign('mail_senderg', "Die Mail konnte nicht verschickt werden!
Prüfen Sie die Mailadressen."); - } - - - - - unset($_SESSION['termine_tm_id']); - $editende = 1; - echo ""; -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/termine_kandidat.php b/admin/old/termine_kandidat.php deleted file mode 100644 index d276a66..0000000 --- a/admin/old/termine_kandidat.php +++ /dev/null @@ -1,343 +0,0 @@ -query("SET lc_time_names = 'de_DE';"); -# Dropdown befüllen übernimmt ajax:fetch.php -# $query1 = "SELECT ka_id, vorname, nachname -# FROM bpm_kandidat -# ORDER BY nachname, vorname"; -# -# $result1 = $db->query($query1) or die("Cannot execute query1a"); -# -# -# while ($row1 = $result1->fetch_array()) { -# $table_data1[] = $row1; -# } -# $smarty->assign('table_data1', $table_data1); - - if (isset($_GET['error'])) { - - $errorno = $_GET['error']; - $smarty->assign('bewerber_error', 1); - if ($errorno == 1) { - $smarty->assign('bewerber_error_text', "Es muss ein Bewerber ausgewählt werden."); - } - - } -} - -if ($action == 'ausgabe') { - if (isset($_POST['user'])) { - $username = mb_strtoupper($_POST["user"]); //remove case sensitivity on the username - } else { - $username = $_SESSION["username"]; - } - - $_SESSION["username"] = $username; - - if(isset($_GET['error'])){ - - $errorno = $_GET['error']; - $smarty->assign('termine_error', 1); - - if($errorno == 1){ - $smarty->assign('termine_error_text', "Es muss ein Termin gewählt werden"); - } - } - - if ($username == "") { - echo ""; - exit; - } - # Kandidat - $result_kandidat = $db->query("SELECT anrede, vorname, nachname - FROM bpm_kandidat - WHERE ka_id = '$username' - "); - $row_kandidat = $result_kandidat->fetch_array(); - if($row_kandidat['anrede'] == 'W'){ - $anrede = 'Frau'; - } - if($row_kandidat['anrede'] == 'M'){ - $anrede = 'Herrn'; - } - $smarty->assign('term_kand_anrede', $anrede); - $smarty->assign('term_kand_vorname', $row_kandidat['vorname']); - $smarty->assign('term_kand_nachname', $row_kandidat['nachname']); - - # Wo ist der Kandidat bisher eingebucht - $result_bisher = $db->query("SELECT tm_id, date_format(tm_datum, '%d.%m.%Y') datum, date_format(tm_datum, '%H:%i') zeit, tm_standort, tm_plaetze, tm_raum, tm_referenznr - FROM bpm_termine - WHERE tm_id = (SELECT tm_id - FROM bpm_term_kand - WHERE ka_id = '$username' - ORDER BY tk_id desc - LIMIT 1) - "); - $row_bisher = $result_bisher->fetch_array(); - if($row_bisher['tm_standort'] == 'L'){ - $standort = 'Ludwigsburg'; - } - if($row_bisher['tm_standort'] == 'K'){ - $standort = 'Kehl'; - } - $smarty->assign('term_kand_datum', $row_bisher['datum']); - $smarty->assign('term_kand_zeit', $row_bisher['zeit']); - $smarty->assign('term_kand_tm_id', $row_bisher['tm_id']); - $smarty->assign('term_kand_standort', $standort); - - # Gespeicherte Termine - $query1 = "SELECT tm_id, date_format(tm_datum, '%d.%m.%Y') datum, date_format(tm_datum, '%H:%i') zeit, tm_standort, tm_plaetze, tm_raum, tm_referenznr - FROM bpm_termine - WHERE tm_datum > NOW() - ORDER BY tm_datum ASC, zeit ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - while ($row1 = $result1->fetch_array()) { - if($row1['tm_standort'] == 'L'){ - $standort = 'Ludwigsburg'; - } - if($row1['tm_standort'] == 'K'){ - $standort = 'Kehl'; - } - $restplatz = get_restplatz($row1['tm_id']); - if($restplatz != $row1['tm_plaetze']){ - $disable = 0; - }else{ - $disable = 1; - } - $row1['restplatz'] = $restplatz; - $row1['tm_disable'] = $disable; - $row1['standort_form'] = $standort; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - -} - -if ($action == 'mail') { - $tm_id = $_POST['tm_id']; - - $username = $_SESSION["username"]; - - if($tm_id == ""){ - echo ""; - exit; - } - $_SESSION["termine_tm_id"] = $tm_id; - - # Gespeicherte Werte - $query1 = "SELECT mail - FROM bpm_kandidat - WHERE ka_id = '$username' - LIMIT 1"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - while ($row1 = $result1->fetch_array()) { - $mail .= "$row1[mail]"; - } - - $smarty->assign('mtupd_mailadressen_an', "$mail"); -} - - - -if ($action == 'mailsenden2') { - - $tm_id = $_SESSION["termine_tm_id"]; - $username = $_SESSION["username"]; - $empfaenger = $_POST['empfaenger_an']; - $betreff = $_POST['betreff']; - $text = $_POST['text']; - $absender = $_POST['absender']; - - if($absender == 'Kehl'){ - $sendermail = get_parameter(7); - $sender = 'Hochschule Kehl'; - } - - if($absender == 'Ludwigsburg'){ - $sendermail = get_parameter(8); - $sender = 'Hochschule Ludwigsburg'; - } - - # Update - $result_curid = $db->query("SELECT tp_id - FROM bpm_term_kand - WHERE ka_id = $username - ORDER BY tp_id desc - LIMIT 1 - "); - $row_curid = $result_curid->fetch_array(); - $akt_tpid = $row_curid['tp_id']; - - $result = $db->query("UPDATE bpm_term_kand - SET tm_id = '$tm_id' - WHERE tp_id = $akt_tpid - "); - - $query_termin = $db->query("SELECT date_format(tm_datum, '%d.%m.%Y um %H:%i Uhr') tm_datum, tm_standort, tm_raum, tm_plaetze, tm_referenznr - FROM bpm_termine - WHERE tm_id='$tm_id'"); - - $row_termin = $query_termin->fetch_array(); - if($row_termin['tm_standort'] == 'L'){ - $standort = 'Ludwigsburg - Reuteallee 36, 71634 Ludwigsburg'; - $sendermail = get_parameter(8); - } - - if($row_termin['tm_standort'] == 'K'){ - $standort = 'Kehl - Kinzigallee 1, 77694 Kehl'; - $sendermail = get_parameter(7); - } - $text = $text." -
-
- Neue Daten: -
- - - - - - - - - - - - - -
- - Testtag: - - - - $row_termin[tm_datum] - -
- - Hochschule: - - - - $standort - -
- - Gebäude / Raum: - - - - $row_termin[tm_raum] - -
-
- "; - - $query1 = "SELECT mail, ka_id - FROM bpm_kandidat - WHERE ka_id = $username - ORDER BY nachname ASC"; - $result1 = $db->query($query1) or die("Cannot execute query1a $tm_id"); - $lnnr = 0; - while ($row1 = $result1->fetch_array()) { - $mail[$lnnr]['mail'] = "$row1[mail]"; - $mail[$lnnr]['ka_id'] = "$row1[ka_id]"; - $lnnr++; - } - $lfdnr = $lfdnr++; - # Mail auch an die zuständige HS - $mail[$lnnr][mail]= $sendermail; - $mail[$lnnr][ka_id]= ""; - - #echo "
";
-  #print_r($mail);
-  #echo "

"; - #exit; - #echo " - #From: $sender - $sendermail
- #$empfaenger
- #$betreff
- #echo "$text
"; - #echo "
"; - #$hochschule
"; - #exit; - - #Beim CKEDITOR die

Tags mit Zeilenabstand 0 in der Mail - $style =" - - - "; - $text = $style.$text; - - for($i=0;$iquery("INSERT INTO bpm_sonstige_mail (sender, sendermail, ka_id, empfaenger, mail_betreff, mail_text, status, sendedat) - VALUES ('$sender', '$sendermail', '".$mail[$i][ka_id]."', '".$mail[$i][mail]."', '$betreff', '$text_db', 'V', '$datum_db') - "); - $smarty->assign('mail_senderg', "Die Mail wurde verschickt!"); - }else{ - $sql1 = $db->query("INSERT INTO bpm_sonstige_mail (sender, sendermail, ka_id, empfaenger, mail_betreff, mail_text, status, sendedat) - VALUES ('$sender', '$sendermail', '".$mail[$i][ka_id]."', '".$mail[$i][mail]."', '$betreff', '$text_db', 'F', '$datum_db') - "); - - $err = 1; - $mail_err .= $mail[$i][mail]."
"; - - } - } - } - - unset($_SESSION['termine_tm_id']); - $editende = 1; - - - if($err == 1){ - $smarty->assign('mail_senderg', "Die Mails konnten nicht verschickt werden!
Prüfen Sie die folgenden Mailadressen:

$mail_err"); - }else{ - $smarty->assign('mail_senderg', "Die Mails wurden verschickt!"); - echo ""; - } -} -// ende Action -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/old/test_csv.php b/admin/old/test_csv.php deleted file mode 100644 index 6b2de0e..0000000 --- a/admin/old/test_csv.php +++ /dev/null @@ -1,889 +0,0 @@ - Semikolon - // oder $trennzeichen_excel = ","; --> Komma -############################################################# - - - - -$_SESSION["ck_verz"]=$verz; - -$limitedext = array(".csv"); //Erlaubte Dateieindung beim Upload - -if ($action == '') { - -$heute = mktime(0, 0, 0, date("m"), date("d"), date("Y")); // heutiges Datum -$heute_format = date("Y-m-d", $heute); // ISO-8601 Format wie in der Datenbank: Formatierung für Vergleiche erforderlich - -function deleteFiles($verz){ - $handle = opendir($verz); - while ($file = readdir ($handle)) { - if($file != "." && $file != "..") { - - $datei = $verz.$file; - - if(@unlink($datei)){ - $error = TRUE; - } - else - { - $error = FALSE; - } - } - } - closedir($handle); - return $error; -} - -deleteFiles($verz); // Dateien werden im Uploadverzeichnis gelöscht, falls noch welche darin wären - - -echo " - - - - -CSV Upload - - - - - - -
-
- - - - - - - - - - - - - - - - - -
- -
- CSV Upload
- Import eines Studienjahrgangs -
-
- -
- - - - - - - - - -
- Datei wählen:
Erlaubte Dateiendungen: *.csv -
-

-

-
- -

- -

-
-
-
- - - - - -
-
-
- -"; - -} - -if ($action == 'csvimp') { - - -// http://www.tutorials.de/tutorials65420.html -$tempname = $_FILES['file']['tmp_name']; -$name = $_FILES['file']['name']; - -$type = $_FILES['file']['type']; -$size = $_FILES['file']['size']; -$einheit = "Byte"; // Für die Efolgsmeldung. - -$extlimit = "yes"; //Do you want to limit the extensions of files uploaded -$ext = strrchr($name,'.'); -if (($extlimit == "yes") && (!in_array($ext,$limitedext))) { - -$err[] = " - - - - -Falscher Dateityp - - - - - - -
-
- - - - - - - - - - - - - - - - - -
- -
- Falscher Dateityp -
-
- -
-

Es dürfen nur csv-Dateien hochgeladen werden! -

-

- -

-
-
- - - - - -
-
-
- -"; -} - -if($size > "9900000") { -$err[] = " - - - - -Datei zu groß - - - - - - -
-
- - - - - - - - - - - - - - - - -
- -
- Datei zu groß -
-
- -
-

Die Datei welche Sie hochladen wollen, ist zu gross!
Maximale Dateigroesse beträgt 9.900 KB! -

-

- -

-
-
- - - - - -
-
-
- -"; -} -$name = str_replace (array("ä", "ö", "ü", "ß", "Ä", "Ö", "Ü"," "), array("ae", "oe", "ue", "ss", "Ae", "Oe", "Ue", "_"), $name); -$heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php -$heuteformat = date("H-i-s_Y-m-d", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll -$datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll -$neu = $heuteformat."_".$name; -$_SESSION["ck_neu"]=$neu; - -If(empty($err)) { - move_uploaded_file("$tempname", "$verz$neu"); // Unterverzeichnisse wie folgt: copy("$tempname", "pdf/$neu"); - - $row = 1; // Anzahl der Arrays - $handle = fopen ("$verz$neu","r"); // Datei zum Lesen öffnen - - echo " - - - - - Datensätze prüfen - - - - -
-
- - - - - - - - - - - - - - - - -
- -
- Datensätze prüfen
-
-
- - - - - - - - - - - - - - - - - - - "; - - - while ( ($data = fgetcsv ($handle, 0, $trennzeichen_excel)) !== FALSE ) // Daten werden aus der Datei in ein Array $data gelesen - { - $num = count ($data); // Felder im Array $data werden gezählt - //print "

$num fields in line $row:
\n"; - print "\n"; - $row++; // Anzahl der Arrays wird - // inkrementiert - - $passwd = str_replace(".", "", $data[13]); - - print "

"; - // for ($c=0; $c < $num; $c++) { // FOR-Schleife: Oder Anzahl der zu importierenden Felder ($num) - print "\n"; // uid - print "\n"; // Nacname - print "\n"; // Vorname - print "\n"; // Matrikelnr - print "\n"; // KFZ - print "\n"; // HS - print "\n"; // PLZ - print "\n"; // ORT - print "\n"; // Straße - print "\n"; // STG - print "\n"; // StgText - print "\n"; // AG - print "\n"; // Jahrgang - #print "\n"; // Passwort in Kleinbuchstaben - print "\n"; // Passwort - print "\n"; // Mail - // } - print ""; - $ln_inserts[]++; //zählt die Anzahl der importierenden DS - } - echo " -
- uid - - Nachname - - Vorname - - Matrikelnr. - - KFZ - - HS - - PLZ - - Ort - - Straße - - Stg - - StgText - - AG - - Jahr - - Passwort - - Mail -
".strtolower($data[0]) . "".$data[1] . "".$data[2] . "".$data[3] . "".$data[4] . "".$data[5] . "".$data[6] . "".$data[7] . "".$data[8] . "".$data[9] . "".$data[10] . "".strtoupper($data[11]) . "".$data[12] . "".strtolower($data[12]) . "".$passwd . "".$data[14] . "
-
- -
- - - - - -
-
"; - $zahl=count($ln_inserts); - - echo" - - - - - -
-
- - - - - - - - - - - - - - - - -
- - -
- Sollen die $zahl Datensätze importiert werden?
- -
- -
- - -
- - - - - - - - - - - - - - - - - - - - - -
- Auswahl - - Markieren -
Datensätze nicht importieren - -
Datensätze importieren - -
-   - -   -
-   - - -
-
- -
- - - - - -
-
-
- - - "; -}else { - - foreach($err as $error) - echo "$error"; - exit; -} //Ende if error -fclose ($handle); - -} - -if ($action == 'csvimp2') { -$neu=$_SESSION["ck_neu"]; //CSV-Dateinamen um Datei löschen zu können -$verz=$_SESSION["ck_verz"]; //Uploadverzeichnis aus Cookie holen - - -if ($_POST['import'] == "0") // DS sollen nicht importiert werden -{ - $dateiname="$verz$neu"; - if (@unlink($dateiname)) // Funktion löscht Dateien und gibt true / false zurück - { - echo" - - - - - - Import beendet - - - - - - -
-
- - - - - - - - - - - - - - - - - -
- -
- Importvorgang abgebrochen
-
-
-
-

Datemsätze wurden nicht importiert!
Die CSV-Datei wurde vom Server gelöscht! -

-

-
-

-

-

-

-

-


-

-
-
- - -
-
-
- - "; - - }else{ - - echo" - - - - - Datei nicht gelöscht - - - - - - -
-
- - - - - - - - - - - - - - - - - -
- -
- Importvorgang abgebrochen
-
-
-
-

Datemsätze wurden nicht importiert!
Die CSV-Datei ($neu) konnte nicht vom Server gelöscht werden! -

-

-
-

-

-

-

-

-


-

-
-
- - -
-
-
- - "; - } // End if - -} elseif($_POST['import'] == "1") // DS sollen importiert werden -{ - $row = 1; // Anzahl der Arrays - $handle = fopen ("$verz$neu","r"); // Datei zum Lesen öffnen - while ( ($data = fgetcsv ($handle, 1000, $trennzeichen_excel)) !== FALSE ) // Daten werden aus der Datei in ein Array $data gelesen - { - $num = count ($data); // Felder im Array $data werden gezählt - //print "

$num fields in line $row:
\n"; - print "\n"; - $row++; // Anzahl der Arrays wird - // inkrementiert - #$pwd = strtolower($data[13]); - $pwd = str_replace(".", "", $data[13]); - $passwd = md5($pwd); - $uid = strtolower($data[0]); - - $geb = preg_split('/\./', $data[13]); - $tag = $geb[0]; - $mon = $geb[1]; - $jahr = $geb[2]; - $gebtag = "$jahr-$mon-$tag"; - //$passwd = mysql_escape_string($passwd); - - - // ACHTUNG: AN DIESER ZEILE NICHTS ÄNDERN, da die erste Zeile des Strings rausgefiltert wird bei der Ausgabe der nichtimportierten DS - $insert[] .= "INSERT INTO stud (uid, nachname, vorname, mtknr, pokfz, hs, poplz, poOrt, poStrasse, stg, stgText, AG, Jahrgang, Pwd, mail, geburtstag) VALUES ( lower('$data[0]') - ,'$data[1]' - ,'$data[2]' - ,'$data[3]' - ,'$data[4]' - ,'$data[5]' - ,'$data[6]' - ,'$data[7]' - ,'$data[8]' - ,'$data[9]' - ,'$data[10]' - ,upper('$data[11]') - ,'$data[12]' - ,'$passwd' - ,'$data[14]' - ,'$gebtag' - ) - "; - } - - - for ($i=0;$i - - - - Import beendet - - - - - - -
-
- - - - - - - - - - - - - - - - - -
- -
- Importvorgang erfolgreich
-
-
-
-

Der Importvorgang wurde erfolgreich beendet!
Die CSV-Datei wurde vom Server gelöscht! -

"; - $num1 = count ($y); // Anzahl der nicht importierten UIDs - if ($y != "") - { - echo"Es wurden $num1 Datensätze nicht importiert
- Wahrscheinlich ist die UID bereits in der Datenbank vorhanden,
- oder eines der Felder ist zu lang: -

"; - } - // Ausgabe der nicht importierten DS - for ($i=0;$i"; - } - echo" -

-
-

-

-

-

-

-


-

-
-
- - -
-
-
- - "; - - }else{ - - echo" - - - - - Datei nicht gelöscht - - - - - - -
-
- - - - - - - - - - - - - - - - - -
- -
- Importvorgang erfolgreich
-
-
-
-

Der Importvorgang wurde erfolgreich beendet!
Die CSV-Datei ($neu) konnte nicht vom Server gelöscht werden! -

"; - $num1 = count ($y); // Anzahl der nicht importierten UIDs - if ($y != "") - { - echo"Es wurden $num1 Datensätze nicht importiert
- Wahrscheinlich ist die UID bereits in der Datenbank vorhanden,
- oder eines der Felder ist zu lang: -

"; - } - // Ausgabe der nicht importierten DS - for ($i=0;$i"; - } - echo" -

-
-

-

-

-

-

-


-

-
-
- - -
-
-
- - "; - } // End if - -}else { // Es wurde kein Radiobutton gewählt! Technisch aber ausgeschlossen - - echo "sie müssen eine Auswahl treffen"; - -} - -function deleteFiles($verz){ - $handle = opendir($verz); - while ($file = readdir ($handle)) { - if($file != "." && $file != "..") { - - $datei = $verz.$file; - - if(@unlink($datei)){ - $error = TRUE; - } - else - { - $error = FALSE; - } - } - } - closedir($handle); - return $error; -} - -deleteFiles($verz); // Dateien werden im Uploadverzeichnis gelöscht, falls noch welche darin wären - -} // ende Action - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> diff --git a/admin/old/upload.php b/admin/old/upload.php deleted file mode 100644 index 213871e..0000000 --- a/admin/old/upload.php +++ /dev/null @@ -1,402 +0,0 @@ - Semikolon -// oder $trennzeichen_excel = ","; --> Komma -############################################################# - - - - -$_SESSION["ck_verz"] = $verz; - - -if ($action == '') { - - $german = $db->query("SET lc_time_names = 'de_DE';"); - - $query1 = "SELECT a.tm_id, date_format(tm_datum, '%a, %d.%m.%Y - %H:%i Uhr')tm_datum_form, tm_standort - FROM bpm_termine a, bpm_term_kand b - WHERE a.tm_id=b.tm_id - AND a.tm_datum > ADDDATE(now(), -7) - GROUP BY a.tm_id, tm_datum_form, tm_standort - ORDER BY tm_datum ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - - while ($row1 = $result1->fetch_array()) { - - if ($row1['tm_standort'] == 'L') { - $standort = 'Ludwigsburg'; - } - if ($row1['tm_standort'] == 'K') { - $standort = 'Kehl'; - } - - $row1['tm_standort'] = $standort; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); -} - -if ($action == 'upload') { - # Den Testtermin wählt man, damit jede Hochschule seine eigenen Daten importieren kann. Wenn eine Hochschule am selben TAg einen Test hat vermeidet man dass ein halbfertiger Test importiert wird - if (isset($_POST["testtermin"])) { - $testtermin = $_POST["testtermin"]; - } else { - $testtermin = $_SESSION["testtermin"]; - } - - $_SESSION["testtermin"] = $testtermin; - - - # Uploadverzeichnis aufräumen. Temporäre Dateien, die älter als 2 Wochen sind, werden gelöscht - $dir = $_SERVER["DOCUMENT_ROOT"].dirname($_SERVER['PHP_SELF'])."/$verz"; - $folder = dir($dir); - while ($dateiname = $folder->read()) { - if (filetype($dir.$dateiname) != "dir") { - if (strtotime("-2 weeks") > - @filemtime($dir.$dateiname)) { - if (@unlink($dir.$dateiname) != false){ - # echo $dateiname.' wurde gelöscht
'; - }else{ - # echo $dateiname.' konnte nichtgelöscht werden
'; - } - } - } - } - - - # Fehler beim Upload anzeigen - if (isset($_GET['error'])) { - - $errorno = $_GET['error']; - $smarty->assign('index_error', 1); - - if ($errorno == 1) { - $smarty->assign('index_error_text', "Es dürfen nur CSV Dateien hochgeladen werden."); - } - if ($errorno == 2) { - # Tabelle bpm_parameter - $size_mb = trim(get_parameter(12)); - $smarty->assign('index_error_text', "Die Datei ist zu groß. Die Dateigröße darf max. $size_mb MB betragen."); - } - if ($errorno == 3) { - $smarty->assign('index_error_text', "Vorgang wurde abgebrochen. Die Datei wurde vom Server gelöscht"); - } - if ($errorno == 4) { - $smarty->assign('index_error_text', "Vorgang wurde abgebrochen. Die Datei wurde nicht vom Server gelöscht"); - } - } -} - -if ($action == 'csvimp') { - - $testtermin = $_SESSION["testtermin"]; - - // http://www.tutorials.de/tutorials65420.html - #echo '

', print_r($_POST, true), '
'; - - $tempname = $_FILES['file']['tmp_name']; - $name = $_FILES['file']['name']; - - $type = $_FILES['file']['type']; - $size = $_FILES['file']['size']; - $einheit = "Byte"; // Für die Efolgsmeldung. - - $limitedext = array( - ".csv" - ); //Erlaubte Dateieindung beim Upload - - $extlimit = "yes"; //Do you want to limit the extensions of files uploaded - $ext = strrchr($name, '.'); - - if (($extlimit == "yes") && (!in_array($ext, $limitedext))) { - echo ""; - exit; - } - - - # Tabelle bpm_parameter - $size_mb = trim(get_parameter(12)); - $size_bt = $size_mb * 1024 * 1024; - - if ($size > $size_bt) { - echo ""; - exit; - } - - - $name = str_replace(array( - "ä", - "ö", - "ü", - "ß", - "Ä", - "Ö", - "Ü", - " " - ), array( - "ae", - "oe", - "ue", - "ss", - "Ae", - "Oe", - "Ue", - "_" - ), $name); - $heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php - $heuteformat = date("H-i-s_Y-m-d", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll - $datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll - $neu = $heuteformat . "_" . $name; - $_SESSION["ck_neu"] = $neu; - move_uploaded_file("$tempname", "$verz$neu"); // Unterverzeichnisse wie folgt: copy("$tempname", "pdf/$neu"); - - $handle = fopen("$verz$neu", "r"); // Datei zum Lesen öffnen - - # Bestehnswert 65 Punkte - $bestehenswert = trim(get_parameter(11)); - - # Hier vor der Schleife erste Zeile holen und ignorieren. Enthält Überschrift - fgetcsv($handle, 0, $trennzeichen_excel); - - while (($data = fgetcsv($handle, 0, $trennzeichen_excel)) !== FALSE) { // Daten werden aus der Datei in ein Array $data gelesen - #2020-02-23T17:44:56 - $tag = substr($data[11], 8, 2); - $monat = substr($data[11], 5, 2); - $jahr = substr($data[11], 0, 4); - $std = substr($data[11], 11, 2); - $min = substr($data[11], 14, 2); - $sek = substr($data[11], 17, 2); - $datum = "$tag.$monat.$jahr - $std:$min:$sek"; - $datum_db = "$jahr-$monat-$tag"; - $tan = $data[7]; - - $result_ct = $db->query("SELECT concat(vorname,' ', nachname) name, date_format(tm_datum, '%Y-%m-%d') tm_datum - FROM bpm_kandidat a, bpm_term_kand b, bpm_termine c, bpm_tanpool d - WHERE a.ka_id = b.ka_id - AND b.tm_id = c.tm_id - AND b.tp_id = d.tp_id - AND d.tan = '$tan' - AND c.tm_id = $testtermin"); - $row_ct = $result_ct->fetch_array(); - - if ($row_ct['name'] != '' AND $row_ct['tm_datum'] == $datum_db) { - - $satzerg_raw = $data[13]; - #$analogie_raw = $data[14]; - $gemeinsamkeiten_raw = $data[15]; - $rechenaufgaben_raw = $data[16]; - $zahlenreihen_raw = $data[17]; - $rechenzeichen_raw = $data[18]; - $matrizen_raw = $data[21]; - $merkf_raw = $data[26]; - - $row1['tan'] = $tan; - $row1['name'] = $row_ct['name']; - $row1['datum'] = $datum; - $row1['satzerg_raw'] = $satzerg_raw; - #$row1['analogie_raw'] = $analogie_raw; - $row1['gemeinsamkeiten_raw'] = $gemeinsamkeiten_raw; - $row1['rechenaufgaben_raw'] = $rechenaufgaben_raw; - $row1['zahlenreihen_raw'] = $zahlenreihen_raw; - $row1['rechenzeichen_raw'] = $rechenzeichen_raw; - $row1['matrizen_raw'] = $matrizen_raw; - $row1['merkf_raw'] = $merkf_raw; - - # In die Berechnung fliest verb/num Intelligenz nicht mit ein. Das sind interne Berechnungen und keine Testaufgaben - $summe = $satzerg_raw + $gemeinsamkeiten_raw + $rechenaufgaben_raw + $zahlenreihen_raw + $rechenzeichen_raw + $matrizen_raw + $merkf_raw; - - $row1['summe'] = $summe; - if ($summe >= $bestehenswert) { - $bestanden = 1; - } else { - $bestanden = 0; - } - $row1['bestanden'] = $bestanden; - $table_data1[] = $row1; - } - - } - - $smarty->assign('table_data1', $table_data1); - fclose($handle); - -} - -if ($action == 'csvimp2') { - $neu = $_SESSION["ck_neu"]; //CSV-Dateinamen um Datei löschen zu können - $verz = $_SESSION["ck_verz"]; //Uploadverzeichnis aus Cookie holen - $testtermin = $_SESSION["testtermin"]; - - - if ($_POST['import'] == "0") // DS sollen nicht importiert werden - { - $dateiname = "$verz$neu"; - if (@unlink($dateiname)) // Funktion löscht Dateien und gibt true / false zurück - { - # Abbruch, datei gelöscht - echo ""; - exit; - } else { - # Abbruch, datei nicht gelöscht - echo ""; - exit; - } // End if - - } elseif ($_POST['import'] == "1") // DS sollen importiert werden - { - $handle = fopen("$verz$neu", "r"); // Datei zum Lesen öffnen - - # Bestehnswert 65 Punkte - $bestehenswert = trim(get_parameter(11)); - - # Hier vor der Schleife erste Zeile holen und ignorieren. Enthält Überschrift - fgetcsv($handle, 0, $trennzeichen_excel); - - while (($data = fgetcsv($handle, 0, $trennzeichen_excel)) !== FALSE) { // Daten werden aus der Datei in ein Array $data gelesen - - #2020-02-23T17:44:56 - $tag = substr($data[11], 8, 2); - $monat = substr($data[11], 5, 2); - $jahr = substr($data[11], 0, 4); - $std = substr($data[11], 11, 2); - $min = substr($data[11], 14, 2); - $sek = substr($data[11], 17, 2); - $datum = "$tag.$monat.$jahr - $std:$min:$sek"; - $datum_db = "$jahr-$monat-$tag"; - $tan = $data[7]; - - $result_ct = $db->query("SELECT a.ka_id, concat(vorname,' ', nachname) name, date_format(tm_datum, '%Y-%m-%d') tm_datum - FROM bpm_kandidat a, bpm_term_kand b, bpm_termine c, bpm_tanpool d - WHERE a.ka_id = b.ka_id - AND b.tm_id = c.tm_id - AND b.tp_id = d.tp_id - AND d.tan = '$tan' - AND c.tm_id = $testtermin"); - $row_ct = $result_ct->fetch_array(); - - if ($row_ct['name'] != '' AND $row_ct['tm_datum'] == $datum_db) { - - $satzerg_raw = $data[13]; - #$analogie_raw = $data[14]; - $gemeinsamkeiten_raw = $data[15]; - $rechenaufgaben_raw = $data[16]; - $zahlenreihen_raw = $data[17]; - $rechenzeichen_raw = $data[18]; - $matrizen_raw = $data[21]; - $merkf_raw = $data[26]; - $summe = $satzerg_raw + $gemeinsamkeiten_raw + $rechenaufgaben_raw + $zahlenreihen_raw + $rechenzeichen_raw + $matrizen_raw + $merkf_raw; - if ($summe >= $bestehenswert) { - $bestanden = 1; - } else { - $bestanden = 0; - # Tan Inaktiv setzen - $result_1 = $db->query("UPDATE bpm_tanpool - SET aktiv='I' - WHERE tan = '$tan'"); - } - $result_ct1 = $db->query("SELECT count(*) Anz - FROM bpm_ergebnisse - WHERE ka_id = $row_ct[ka_id] - AND tan = '$tan'"); - $row_ct1 = $result_ct1->fetch_array(); - if ($row_ct1['Anz'] == 0) { - # keine Ergebnisse vorhanden, insert - - $sql1 = $db->query("insert into bpm_ergebnisse (ka_id - , tan - , satzerg - , gemeinsamkeiten - , rechenaufgaben - , zahlenreihen - , rechenzeichen - , matrizen - , merkf - , summe - , bestanden) - VALUES ('$row_ct[ka_id]' - , '$tan' - , '$satzerg_raw' - , '$gemeinsamkeiten_raw' - , '$rechenaufgaben_raw' - , '$zahlenreihen_raw' - , '$rechenzeichen_raw' - , '$matrizen_raw' - , '$merkf_raw' - , '$summe' - , '$bestanden')"); - if (!$sql1) { - $hinweis['hinweis'] = "TAN: " . $tan . " Fehler: Ergebnis nicht gespeichert
"; - $smarty->assign('index_error', 1); - } - } else { - # Ergebnisse gibt es schon, kein insert - $hinweis['hinweis'] = "TAN: " . $tan . " Ergebnisse schon gespeichert
"; - $smarty->assign('index_error', 1); - } - - } else { - # Testdatum stimmt nicht, kein Student gefunden - $hinweis['hinweis'] = "TAN: " . $tan . " in der CSV gehört nicht zu diesem Datum (Kein Fehler)
"; - $smarty->assign('index_error', 1); - } - $table_data2[] = $hinweis; - } - $smarty->assign('table_data2', $table_data2); - - - fclose($handle); - - } else { // Es wurde kein Radiobutton gewählt! Technisch aber ausgeschlossen - - echo "sie müssen eine Auswahl treffen"; - - } - - function deleteFiles($verz) - { - $handle = opendir($verz); - while ($file = readdir($handle)) { - if ($file != "." && $file != "..") { - - $datei = $verz . $file; - - if (@unlink($datei)) { - $error = TRUE; - } else { - $error = FALSE; - } - } - } - closedir($handle); - return $error; - } - - deleteFiles($verz); // Dateien werden im Uploadverzeichnis gelöscht, falls noch welche darin wären - -} // ende Action - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> diff --git a/admin/parameter.php b/admin/parameter.php deleted file mode 100644 index 2f26268..0000000 --- a/admin/parameter.php +++ /dev/null @@ -1,81 +0,0 @@ -query($query1) or die("Cannot execute query1"); - - - while ($row1 = $result1->fetch_array()) { - # Passwort fr die Praxisstellen wird verschlsselt gespeichert - - if(!isset($zaehler) or $zaehler == 1){ - $zaehler = 0; - }else{ - $zaehler = 1; - } - $row1['zaehler'] = $zaehler; - $table_data1[] = $row1; - } - - $smarty->assign('table_data1', $table_data1); -} - -if($action == 'save'){ - - - $query2 = "SELECT pid - FROM jumi_parameter - ORDER BY pid ASC"; - $result2 = $db->query( $query2) - or die ("Cannot execute query2"); - - while ($row2 = $result2->fetch_array()){ - $pid = $row2['pid']; - $pid_value = $_POST[$pid]; - - - $sql1 = $db->query( "UPDATE jumi_parameter - SET wert = '$pid_value' - WHERE pid = $pid - " ); - - } - - if(!$sql1){ - $error = TRUE; - $error_reason .= "Fehler beim Update [jumi_parameter]
"; - }else{ - $error = FALSE; - $smarty->assign('parameter_inserterr', "2"); - echo ""; - } - - if($error){ - $smarty->assign('parameter_inserterr', "1"); - $smarty->assign('parameter_reason', "$error_reason"); // Kein Mailversand - } // Ende IF : Insert hat geklappt - -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/phpqrcode/CHANGELOG b/admin/phpqrcode/CHANGELOG deleted file mode 100644 index 1088530..0000000 --- a/admin/phpqrcode/CHANGELOG +++ /dev/null @@ -1,38 +0,0 @@ -* 1.0.0 build 2010031920 - - - first public release - - help in readme, install - - cleanup ans separation of QRtools and QRspec - - now TCPDF binding requires minimal changes in TCPDF, having most of job - done in QRtools tcpdfBarcodeArray - - nicer QRtools::timeBenchmark output - - license and copyright notices in files - - indent cleanup - from tab to 4spc, keep it that way please :) - - sf project, repository, wiki - - simple code generator in index.php - -* 1.1.0 build 2010032113 - - - added merge tool wich generate merged version of code - located in phpqrcode.php - - splited qrconst.php from qrlib.php - -* 1.1.1 build 2010032405 - - - patch by Rick Seymour allowing saving PNG and displaying it at the same time - - added version info in VERSION file - - modified merge tool to include version info into generated file - - fixed e-mail in almost all head comments - -* 1.1.2 build 2010032722 - - - full integration with TCPDF thanks to Nicola Asuni, it's author - - fixed bug with alphanumeric encoding detection - -* 1.1.3 build 2010081807 - - - short opening tags replaced with standard ones - -* 1.1.4 build 2010100721 - - - added missing static keyword QRinput::check (found by Luke Brookhart, Onjax LLC) diff --git a/admin/phpqrcode/INSTALL b/admin/phpqrcode/INSTALL deleted file mode 100644 index eac6b07..0000000 --- a/admin/phpqrcode/INSTALL +++ /dev/null @@ -1,67 +0,0 @@ -== REQUIREMENTS == - - * PHP5 - * PHP GD2 extension with JPEG and PNG support - -== INSTALLATION == - -If you want to recreate cache by yourself make sure cache directory is -writable and you have permisions to write into it. Also make sure you are -able to read files in it if you have cache option enabled - -== CONFIGURATION == - -Feel free to modify config constants in qrconfig.php file. Read about it in -provided comments and project wiki page (links in README file) - -== QUICK START == - -Notice: probably you should'nt use all of this in same script :) - -encode('PHP QR Code :)'); -QRspec::debug($tab, true); - -== TCPDF INTEGRATION == - -Inside bindings/tcpdf you will find slightly modified 2dbarcodes.php. -Instal phpqrcode liblaty inside tcpdf folder, then overwrite (or merge) -2dbarcodes.php - -Then use similar as example #50 from TCPDF examples: - - true, - 'padding' => 4, - 'fgcolor' => array(0,0,0), - 'bgcolor' => false, //array(255,255,255) -); - -//code name: QR, specify error correction level after semicolon (L,M,Q,H) -$pdf->write2DBarcode('PHP QR Code :)', 'QR,L', '', '', 30, 30, $style, 'N'); diff --git a/admin/phpqrcode/LICENSE b/admin/phpqrcode/LICENSE deleted file mode 100644 index 1883303..0000000 --- a/admin/phpqrcode/LICENSE +++ /dev/null @@ -1,165 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. diff --git a/admin/phpqrcode/README b/admin/phpqrcode/README deleted file mode 100644 index a022fb5..0000000 --- a/admin/phpqrcode/README +++ /dev/null @@ -1,45 +0,0 @@ -This is PHP implementation of QR Code 2-D barcode generator. It is pure-php -LGPL-licensed implementation based on C libqrencode by Kentaro Fukuchi. - -== LICENSING == - -Copyright (C) 2010 by Dominik Dzienia - -This library is free software; you can redistribute it and/or modify it under -the terms of the GNU Lesser General Public License as published by the Free -Software Foundation; either version 3 of the License, or any later version. - -This library is distributed in the hope that it will be useful, but WITHOUT ANY -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A -PARTICULAR PURPOSE. See the GNU Lesser General Public License (LICENSE file) -for more details. - -You should have received a copy of the GNU Lesser General Public License along -with this library; if not, write to the Free Software Foundation, Inc., 51 -Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -== INSTALATION AND USAGE == - - * INSTALL file - * http://sourceforge.net/apps/mediawiki/phpqrcode/index.php?title=Main_Page - -== CONTACT == - -Fell free to contact me via e-mail (deltalab at poczta dot fm) or using -folowing project pages: - - * http://sourceforge.net/projects/phpqrcode/ - * http://phpqrcode.sourceforge.net/ - -== ACKNOWLEDGMENTS == - -Based on C libqrencode library (ver. 3.1.1) -Copyright (C) 2006-2010 by Kentaro Fukuchi -http://megaui.net/fukuchi/works/qrencode/index.en.html - -QR Code is registered trademarks of DENSO WAVE INCORPORATED in JAPAN and other -countries. - -Reed-Solomon code encoder is written by Phil Karn, KA9Q. -Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q - \ No newline at end of file diff --git a/admin/phpqrcode/VERSION b/admin/phpqrcode/VERSION deleted file mode 100644 index 9f99279..0000000 --- a/admin/phpqrcode/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.1.4 -2010100721 \ No newline at end of file diff --git a/admin/phpqrcode/bindings/tcpdf/qrcode.php b/admin/phpqrcode/bindings/tcpdf/qrcode.php deleted file mode 100644 index 4cb1389..0000000 --- a/admin/phpqrcode/bindings/tcpdf/qrcode.php +++ /dev/null @@ -1,2875 +0,0 @@ - -// http://phpqrcode.sourceforge.net/ -// https://sourceforge.net/projects/phpqrcode/ -// -// The "PHP QR Code encoder" is based on -// "C libqrencode library" (ver. 3.1.1) -// License: GNU-LGPL 2.1 -// Copyright (C) 2006-2010 by Kentaro Fukuchi -// http://megaui.net/fukuchi/works/qrencode/index.en.html -// -// Reed-Solomon code encoder is written by Phil Karn, KA9Q. -// Copyright (C) 2002-2006 Phil Karn, KA9Q -// -// QR Code is registered trademark of DENSO WAVE INCORPORATED -// http://www.denso-wave.com/qrcode/index-e.html -// --------------------------------------------------------- -// -// Author: Nicola Asuni -// -// (c) Copyright 2010: -// Nicola Asuni -// Tecnick.com S.r.l. -// Via della Pace, 11 -// 09044 Quartucciu (CA) -// ITALY -// www.tecnick.com -// info@tecnick.com -//============================================================+ - -/** - * Class to create QR-code arrays for TCPDF class. - * QR Code symbol is a 2D barcode that can be scanned by handy terminals such as a mobile phone with CCD. - * The capacity of QR Code is up to 7000 digits or 4000 characters, and has high robustness. - * This class supports QR Code model 2, described in JIS (Japanese Industrial Standards) X0510:2004 or ISO/IEC 18004. - * Currently the following features are not supported: ECI and FNC1 mode, Micro QR Code, QR Code model 1, Structured mode. - * - * This class is derived from "PHP QR Code encoder" by Dominik Dzienia (http://phpqrcode.sourceforge.net/) based on "libqrencode C library 3.1.1." by Kentaro Fukuchi (http://megaui.net/fukuchi/works/qrencode/index.en.html), contains Reed-Solomon code written by Phil Karn, KA9Q. QR Code is registered trademark of DENSO WAVE INCORPORATED (http://www.denso-wave.com/qrcode/index-e.html). - * Please read comments on this class source file for full copyright and license information. - * - * @package com.tecnick.tcpdf - * @abstract Class for generating QR-code array for TCPDF. - * @author Nicola Asuni - * @copyright 2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com - * @link http://www.tcpdf.org - * @license http://www.gnu.org/copyleft/lesser.html LGPL - * @version 1.0.002 - */ - -// definitions -if (!defined('QRCODEDEFS')) { - - /** - * Indicate that definitions for this class are set - */ - define('QRCODEDEFS', true); - - // ----------------------------------------------------- - - // Encoding modes (characters which can be encoded in QRcode) - - /** - * Encoding mode - */ - define('QR_MODE_NL', -1); - - /** - * Encoding mode numeric (0-9). 3 characters are encoded to 10bit length. In theory, 7089 characters or less can be stored in a QRcode. - */ - define('QR_MODE_NM', 0); - - /** - * Encoding mode alphanumeric (0-9A-Z $%*+-./:) 45characters. 2 characters are encoded to 11bit length. In theory, 4296 characters or less can be stored in a QRcode. - */ - define('QR_MODE_AN', 1); - - /** - * Encoding mode 8bit byte data. In theory, 2953 characters or less can be stored in a QRcode. - */ - define('QR_MODE_8B', 2); - - /** - * Encoding mode KANJI. A KANJI character (multibyte character) is encoded to 13bit length. In theory, 1817 characters or less can be stored in a QRcode. - */ - define('QR_MODE_KJ', 3); - - /** - * Encoding mode STRUCTURED (currently unsupported) - */ - define('QR_MODE_ST', 4); - - // ----------------------------------------------------- - - // Levels of error correction. - // QRcode has a function of an error correcting for miss reading that white is black. - // Error correcting is defined in 4 level as below. - - /** - * Error correction level L : About 7% or less errors can be corrected. - */ - define('QR_ECLEVEL_L', 0); - - /** - * Error correction level M : About 15% or less errors can be corrected. - */ - define('QR_ECLEVEL_M', 1); - - /** - * Error correction level Q : About 25% or less errors can be corrected. - */ - define('QR_ECLEVEL_Q', 2); - - /** - * Error correction level H : About 30% or less errors can be corrected. - */ - define('QR_ECLEVEL_H', 3); - - // ----------------------------------------------------- - - // Version. Size of QRcode is defined as version. - // Version is from 1 to 40. - // Version 1 is 21*21 matrix. And 4 modules increases whenever 1 version increases. - // So version 40 is 177*177 matrix. - - /** - * Maximum QR Code version. - */ - define('QRSPEC_VERSION_MAX', 40); - - /** - * Maximum matrix size for maximum version (version 40 is 177*177 matrix). - */ - define('QRSPEC_WIDTH_MAX', 177); - - // ----------------------------------------------------- - - /** - * Matrix index to get width from $capacity array. - */ - define('QRCAP_WIDTH', 0); - - /** - * Matrix index to get number of words from $capacity array. - */ - define('QRCAP_WORDS', 1); - - /** - * Matrix index to get remainder from $capacity array. - */ - define('QRCAP_REMINDER', 2); - - /** - * Matrix index to get error correction level from $capacity array. - */ - define('QRCAP_EC', 3); - - // ----------------------------------------------------- - - // Structure (currently usupported) - - /** - * Number of header bits for structured mode - */ - define('STRUCTURE_HEADER_BITS', 20); - - /** - * Max number of symbols for structured mode - */ - define('MAX_STRUCTURED_SYMBOLS', 16); - - // ----------------------------------------------------- - - // Masks - - /** - * Down point base value for case 1 mask pattern (concatenation of same color in a line or a column) - */ - define('N1', 3); - - /** - * Down point base value for case 2 mask pattern (module block of same color) - */ - define('N2', 3); - - /** - * Down point base value for case 3 mask pattern (1:1:3:1:1(dark:bright:dark:bright:dark)pattern in a line or a column) - */ - define('N3', 40); - - /** - * Down point base value for case 4 mask pattern (ration of dark modules in whole) - */ - define('N4', 10); - - // ----------------------------------------------------- - - // Optimization settings - - /** - * if true, estimates best mask (spec. default, but extremally slow; set to false to significant performance boost but (propably) worst quality code - */ - define('QR_FIND_BEST_MASK', true); - - /** - * if false, checks all masks available, otherwise value tells count of masks need to be checked, mask id are got randomly - */ - define('QR_FIND_FROM_RANDOM', 2); - - /** - * when QR_FIND_BEST_MASK === false - */ - define('QR_DEFAULT_MASK', 2); - - // ----------------------------------------------------- - -} // end of definitions - -// #*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*# - -if (!class_exists('QRcode', false)) { - - // for compaibility with PHP4 - if (!function_exists('str_split')) { - /** - * Convert a string to an array (needed for PHP4 compatibility) - * @param string $string The input string. - * @param int $split_length Maximum length of the chunk. - * @return If the optional split_length parameter is specified, the returned array will be broken down into chunks with each being split_length in length, otherwise each chunk will be one character in length. FALSE is returned if split_length is less than 1. If the split_length length exceeds the length of string , the entire string is returned as the first (and only) array element. - */ - function str_split($string, $split_length=1) { - if ((strlen($string) > $split_length) OR (!$split_length)) { - do { - $c = strlen($string); - $parts[] = substr($string, 0, $split_length); - $string = substr($string, $split_length); - } while ($string !== false); - } else { - $parts = array($string); - } - return $parts; - } - } - - // ##################################################### - - /** - * Class to create QR-code arrays for TCPDF class. - * QR Code symbol is a 2D barcode that can be scanned by handy terminals such as a mobile phone with CCD. - * The capacity of QR Code is up to 7000 digits or 4000 characters, and has high robustness. - * This class supports QR Code model 2, described in JIS (Japanese Industrial Standards) X0510:2004 or ISO/IEC 18004. - * Currently the following features are not supported: ECI and FNC1 mode, Micro QR Code, QR Code model 1, Structured mode. - * - * This class is derived from "PHP QR Code encoder" by Dominik Dzienia (http://phpqrcode.sourceforge.net/) based on "libqrencode C library 3.1.1." by Kentaro Fukuchi (http://megaui.net/fukuchi/works/qrencode/index.en.html), contains Reed-Solomon code written by Phil Karn, KA9Q. QR Code is registered trademark of DENSO WAVE INCORPORATED (http://www.denso-wave.com/qrcode/index-e.html). - * Please read comments on this class source file for full copyright and license information. - * - * @name QRcode - * @package com.tecnick.tcpdf - * @abstract Class for generating QR-code array for TCPDF. - * @author Nicola Asuni - * @copyright 2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com - * @link http://www.tcpdf.org - * @license http://www.gnu.org/copyleft/lesser.html LGPL - * @version 1.0.002 - */ - class QRcode { - - /** - * @var barcode array to be returned which is readable by TCPDF - * @access protected - */ - protected $barcode_array = array(); - - /** - * @var QR code version. Size of QRcode is defined as version. Version is from 1 to 40. Version 1 is 21*21 matrix. And 4 modules increases whenever 1 version increases. So version 40 is 177*177 matrix. - * @access protected - */ - protected $version = 0; - - /** - * @var Levels of error correction. See definitions for possible values. - * @access protected - */ - protected $level = QR_ECLEVEL_L; - - /** - * @var Encoding mode - * @access protected - */ - protected $hint = QR_MODE_8B; - - /** - * @var if true the input string will be converted to uppercase - * @access protected - */ - protected $casesensitive = true; - - /** - * @var structured QR code (not supported yet) - * @access protected - */ - protected $structured = 0; - - /** - * @var mask data - * @access protected - */ - protected $data; - - // FrameFiller - - /** - * @var width - * @access protected - */ - protected $width; - - /** - * @var frame - * @access protected - */ - protected $frame; - - /** - * @var X position of bit - * @access protected - */ - protected $x; - - /** - * @var Y position of bit - * @access protected - */ - protected $y; - - /** - * @var direction - * @access protected - */ - protected $dir; - - /** - * @var single bit - * @access protected - */ - protected $bit; - - // ---- QRrawcode ---- - - /** - * @var data code - * @access protected - */ - protected $datacode = array(); - - /** - * @var error correction code - * @access protected - */ - protected $ecccode = array(); - - /** - * @var blocks - * @access protected - */ - protected $blocks; - - /** - * @var Reed-Solomon blocks - * @access protected - */ - protected $rsblocks = array(); //of RSblock - - /** - * @var counter - * @access protected - */ - protected $count; - - /** - * @var data length - * @access protected - */ - protected $dataLength; - - /** - * @var error correction length - * @access protected - */ - protected $eccLength; - - /** - * @var b1 - * @access protected - */ - protected $b1; - - // ---- QRmask ---- - - /** - * @var run length - * @access protected - */ - protected $runLength = array(); - - // ---- QRsplit ---- - - /** - * @var input data string - * @access protected - */ - protected $dataStr = ''; - - /** - * @var input items - * @access protected - */ - protected $items; - - // Reed-Solomon items - - /** - * @var Reed-Solomon items - * @access protected - */ - protected $rsitems = array(); - - /** - * @var array of frames - * @access protected - */ - protected $frames = array(); - - /** - * @var alphabet-numeric convesion table - * @access protected - */ - protected $anTable = array( - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // - 36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, // - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, // - -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, // - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, // - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 // - ); - - /** - * @var array Table of the capacity of symbols - * See Table 1 (pp.13) and Table 12-16 (pp.30-36), JIS X0510:2004. - * @access protected - */ - protected $capacity = array( - array( 0, 0, 0, array( 0, 0, 0, 0)), // - array( 21, 26, 0, array( 7, 10, 13, 17)), // 1 - array( 25, 44, 7, array( 10, 16, 22, 28)), // - array( 29, 70, 7, array( 15, 26, 36, 44)), // - array( 33, 100, 7, array( 20, 36, 52, 64)), // - array( 37, 134, 7, array( 26, 48, 72, 88)), // 5 - array( 41, 172, 7, array( 36, 64, 96, 112)), // - array( 45, 196, 0, array( 40, 72, 108, 130)), // - array( 49, 242, 0, array( 48, 88, 132, 156)), // - array( 53, 292, 0, array( 60, 110, 160, 192)), // - array( 57, 346, 0, array( 72, 130, 192, 224)), // 10 - array( 61, 404, 0, array( 80, 150, 224, 264)), // - array( 65, 466, 0, array( 96, 176, 260, 308)), // - array( 69, 532, 0, array( 104, 198, 288, 352)), // - array( 73, 581, 3, array( 120, 216, 320, 384)), // - array( 77, 655, 3, array( 132, 240, 360, 432)), // 15 - array( 81, 733, 3, array( 144, 280, 408, 480)), // - array( 85, 815, 3, array( 168, 308, 448, 532)), // - array( 89, 901, 3, array( 180, 338, 504, 588)), // - array( 93, 991, 3, array( 196, 364, 546, 650)), // - array( 97, 1085, 3, array( 224, 416, 600, 700)), // 20 - array(101, 1156, 4, array( 224, 442, 644, 750)), // - array(105, 1258, 4, array( 252, 476, 690, 816)), // - array(109, 1364, 4, array( 270, 504, 750, 900)), // - array(113, 1474, 4, array( 300, 560, 810, 960)), // - array(117, 1588, 4, array( 312, 588, 870, 1050)), // 25 - array(121, 1706, 4, array( 336, 644, 952, 1110)), // - array(125, 1828, 4, array( 360, 700, 1020, 1200)), // - array(129, 1921, 3, array( 390, 728, 1050, 1260)), // - array(133, 2051, 3, array( 420, 784, 1140, 1350)), // - array(137, 2185, 3, array( 450, 812, 1200, 1440)), // 30 - array(141, 2323, 3, array( 480, 868, 1290, 1530)), // - array(145, 2465, 3, array( 510, 924, 1350, 1620)), // - array(149, 2611, 3, array( 540, 980, 1440, 1710)), // - array(153, 2761, 3, array( 570, 1036, 1530, 1800)), // - array(157, 2876, 0, array( 570, 1064, 1590, 1890)), // 35 - array(161, 3034, 0, array( 600, 1120, 1680, 1980)), // - array(165, 3196, 0, array( 630, 1204, 1770, 2100)), // - array(169, 3362, 0, array( 660, 1260, 1860, 2220)), // - array(173, 3532, 0, array( 720, 1316, 1950, 2310)), // - array(177, 3706, 0, array( 750, 1372, 2040, 2430)) // 40 - ); - - /** - * @var array Length indicator - * @access protected - */ - protected $lengthTableBits = array( - array(10, 12, 14), - array( 9, 11, 13), - array( 8, 16, 16), - array( 8, 10, 12) - ); - - /** - * @var array Table of the error correction code (Reed-Solomon block) - * See Table 12-16 (pp.30-36), JIS X0510:2004. - * @access protected - */ - protected $eccTable = array( - array(array( 0, 0), array( 0, 0), array( 0, 0), array( 0, 0)), // - array(array( 1, 0), array( 1, 0), array( 1, 0), array( 1, 0)), // 1 - array(array( 1, 0), array( 1, 0), array( 1, 0), array( 1, 0)), // - array(array( 1, 0), array( 1, 0), array( 2, 0), array( 2, 0)), // - array(array( 1, 0), array( 2, 0), array( 2, 0), array( 4, 0)), // - array(array( 1, 0), array( 2, 0), array( 2, 2), array( 2, 2)), // 5 - array(array( 2, 0), array( 4, 0), array( 4, 0), array( 4, 0)), // - array(array( 2, 0), array( 4, 0), array( 2, 4), array( 4, 1)), // - array(array( 2, 0), array( 2, 2), array( 4, 2), array( 4, 2)), // - array(array( 2, 0), array( 3, 2), array( 4, 4), array( 4, 4)), // - array(array( 2, 2), array( 4, 1), array( 6, 2), array( 6, 2)), // 10 - array(array( 4, 0), array( 1, 4), array( 4, 4), array( 3, 8)), // - array(array( 2, 2), array( 6, 2), array( 4, 6), array( 7, 4)), // - array(array( 4, 0), array( 8, 1), array( 8, 4), array(12, 4)), // - array(array( 3, 1), array( 4, 5), array(11, 5), array(11, 5)), // - array(array( 5, 1), array( 5, 5), array( 5, 7), array(11, 7)), // 15 - array(array( 5, 1), array( 7, 3), array(15, 2), array( 3, 13)), // - array(array( 1, 5), array(10, 1), array( 1, 15), array( 2, 17)), // - array(array( 5, 1), array( 9, 4), array(17, 1), array( 2, 19)), // - array(array( 3, 4), array( 3, 11), array(17, 4), array( 9, 16)), // - array(array( 3, 5), array( 3, 13), array(15, 5), array(15, 10)), // 20 - array(array( 4, 4), array(17, 0), array(17, 6), array(19, 6)), // - array(array( 2, 7), array(17, 0), array( 7, 16), array(34, 0)), // - array(array( 4, 5), array( 4, 14), array(11, 14), array(16, 14)), // - array(array( 6, 4), array( 6, 14), array(11, 16), array(30, 2)), // - array(array( 8, 4), array( 8, 13), array( 7, 22), array(22, 13)), // 25 - array(array(10, 2), array(19, 4), array(28, 6), array(33, 4)), // - array(array( 8, 4), array(22, 3), array( 8, 26), array(12, 28)), // - array(array( 3, 10), array( 3, 23), array( 4, 31), array(11, 31)), // - array(array( 7, 7), array(21, 7), array( 1, 37), array(19, 26)), // - array(array( 5, 10), array(19, 10), array(15, 25), array(23, 25)), // 30 - array(array(13, 3), array( 2, 29), array(42, 1), array(23, 28)), // - array(array(17, 0), array(10, 23), array(10, 35), array(19, 35)), // - array(array(17, 1), array(14, 21), array(29, 19), array(11, 46)), // - array(array(13, 6), array(14, 23), array(44, 7), array(59, 1)), // - array(array(12, 7), array(12, 26), array(39, 14), array(22, 41)), // 35 - array(array( 6, 14), array( 6, 34), array(46, 10), array( 2, 64)), // - array(array(17, 4), array(29, 14), array(49, 10), array(24, 46)), // - array(array( 4, 18), array(13, 32), array(48, 14), array(42, 32)), // - array(array(20, 4), array(40, 7), array(43, 22), array(10, 67)), // - array(array(19, 6), array(18, 31), array(34, 34), array(20, 61)) // 40 - ); - - /** - * @var array Positions of alignment patterns. - * This array includes only the second and the third position of the alignment patterns. Rest of them can be calculated from the distance between them. - * See Table 1 in Appendix E (pp.71) of JIS X0510:2004. - * @access protected - */ - protected $alignmentPattern = array( - array( 0, 0), - array( 0, 0), array(18, 0), array(22, 0), array(26, 0), array(30, 0), // 1- 5 - array(34, 0), array(22, 38), array(24, 42), array(26, 46), array(28, 50), // 6-10 - array(30, 54), array(32, 58), array(34, 62), array(26, 46), array(26, 48), // 11-15 - array(26, 50), array(30, 54), array(30, 56), array(30, 58), array(34, 62), // 16-20 - array(28, 50), array(26, 50), array(30, 54), array(28, 54), array(32, 58), // 21-25 - array(30, 58), array(34, 62), array(26, 50), array(30, 54), array(26, 52), // 26-30 - array(30, 56), array(34, 60), array(30, 58), array(34, 62), array(30, 54), // 31-35 - array(24, 50), array(28, 54), array(32, 58), array(26, 54), array(30, 58) // 35-40 - ); - - /** - * @var array Version information pattern (BCH coded). - * See Table 1 in Appendix D (pp.68) of JIS X0510:2004. - * size: [QRSPEC_VERSION_MAX - 6] - * @access protected - */ - protected $versionPattern = array( - 0x07c94, 0x085bc, 0x09a99, 0x0a4d3, 0x0bbf6, 0x0c762, 0x0d847, 0x0e60d, // - 0x0f928, 0x10b78, 0x1145d, 0x12a17, 0x13532, 0x149a6, 0x15683, 0x168c9, // - 0x177ec, 0x18ec4, 0x191e1, 0x1afab, 0x1b08e, 0x1cc1a, 0x1d33f, 0x1ed75, // - 0x1f250, 0x209d5, 0x216f0, 0x228ba, 0x2379f, 0x24b0b, 0x2542e, 0x26a64, // - 0x27541, 0x28c69 - ); - - /** - * @var array Format information - * @access protected - */ - protected $formatInfo = array( - array(0x77c4, 0x72f3, 0x7daa, 0x789d, 0x662f, 0x6318, 0x6c41, 0x6976), // - array(0x5412, 0x5125, 0x5e7c, 0x5b4b, 0x45f9, 0x40ce, 0x4f97, 0x4aa0), // - array(0x355f, 0x3068, 0x3f31, 0x3a06, 0x24b4, 0x2183, 0x2eda, 0x2bed), // - array(0x1689, 0x13be, 0x1ce7, 0x19d0, 0x0762, 0x0255, 0x0d0c, 0x083b) // - ); - - - // ------------------------------------------------- - // ------------------------------------------------- - - - /** - * This is the class constructor. - * Creates a QRcode object - * @param string $code code to represent using QRcode - * @param string $eclevel error level:
  • L : About 7% or less errors can be corrected.
  • M : About 15% or less errors can be corrected.
  • Q : About 25% or less errors can be corrected.
  • H : About 30% or less errors can be corrected.
- * @access public - * @since 1.0.000 - */ - public function __construct($code, $eclevel = 'L') { - $barcode_array = array(); - if ((is_null($code)) OR ($code == '\0') OR ($code == '')) { - return false; - } - // set error correction level - $this->level = array_search($eclevel, array('L', 'M', 'Q', 'H')); - if ($this->level === false) { - $this->level = QR_ECLEVEL_L; - } - if (($this->hint != QR_MODE_8B) AND ($this->hint != QR_MODE_KJ)) { - return false; - } - if (($this->version < 0) OR ($this->version > QRSPEC_VERSION_MAX)) { - return false; - } - $this->items = array(); - $this->encodeString($code); - $qrTab = $this->binarize($this->data); - $size = count($qrTab); - $barcode_array['num_rows'] = $size; - $barcode_array['num_cols'] = $size; - $barcode_array['bcode'] = array(); - foreach ($qrTab as $line) { - $arrAdd = array(); - foreach (str_split($line) as $char) { - $arrAdd[] = ($char=='1')?1:0; - } - $barcode_array['bcode'][] = $arrAdd; - } - $this->barcode_array = $barcode_array; - } - - /** - * Returns a barcode array which is readable by TCPDF - * @return array barcode array readable by TCPDF; - * @access public - */ - public function getBarcodeArray() { - return $this->barcode_array; - } - - /** - * Convert the frame in binary form - * @param array $frame array to binarize - * @return array frame in binary form - */ - protected function binarize($frame) { - $len = count($frame); - // the frame is square (width = height) - foreach ($frame as &$frameLine) { - for ($i=0; $i<$len; $i++) { - $frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0'; - } - } - return $frame; - } - - /** - * Encode the input string to QR code - * @param string $string input string to encode - */ - protected function encodeString($string) { - $this->dataStr = $string; - if (!$this->casesensitive) { - $this->toUpper(); - } - $ret = $this->splitString(); - if ($ret < 0) { - return NULL; - } - $this->encodeMask(-1); - } - - /** - * Encode mask - * @param int $mask masking mode - */ - protected function encodeMask($mask) { - $spec = array(0, 0, 0, 0, 0); - $this->datacode = $this->getByteStream($this->items); - if (is_null($this->datacode)) { - return NULL; - } - $spec = $this->getEccSpec($this->version, $this->level, $spec); - $this->b1 = $this->rsBlockNum1($spec); - $this->dataLength = $this->rsDataLength($spec); - $this->eccLength = $this->rsEccLength($spec); - $this->ecccode = array_fill(0, $this->eccLength, 0); - $this->blocks = $this->rsBlockNum($spec); - $ret = $this->init($spec); - if ($ret < 0) { - return NULL; - } - $this->count = 0; - $this->width = $this->getWidth($this->version); - $this->frame = $this->newFrame($this->version); - $this->x = $this->width - 1; - $this->y = $this->width - 1; - $this->dir = -1; - $this->bit = -1; - // inteleaved data and ecc codes - for ($i=0; $i < ($this->dataLength + $this->eccLength); $i++) { - $code = $this->getCode(); - $bit = 0x80; - for ($j=0; $j<8; $j++) { - $addr = $this->getNextPosition(); - $this->setFrameAt($addr, 0x02 | (($bit & $code) != 0)); - $bit = $bit >> 1; - } - } - // remainder bits - $j = $this->getRemainder($this->version); - for ($i=0; $i<$j; $i++) { - $addr = $this->getNextPosition(); - $this->setFrameAt($addr, 0x02); - } - // masking - $this->runLength = array_fill(0, QRSPEC_WIDTH_MAX + 1, 0); - if ($mask < 0) { - if (QR_FIND_BEST_MASK) { - $masked = $this->mask($this->width, $this->frame, $this->level); - } else { - $masked = $this->makeMask($this->width, $this->frame, (intval(QR_DEFAULT_MASK) % 8), $this->level); - } - } else { - $masked = $this->makeMask($this->width, $this->frame, $mask, $this->level); - } - if ($masked == NULL) { - return NULL; - } - $this->data = $masked; - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - // FrameFiller - - /** - * Set frame value at specified position - * @param array $at x,y position - * @param int $val value of the character to set - */ - protected function setFrameAt($at, $val) { - $this->frame[$at['y']][$at['x']] = chr($val); - } - - /** - * Get frame value at specified position - * @param array $at x,y position - * @return value at specified position - */ - protected function getFrameAt($at) { - return ord($this->frame[$at['y']][$at['x']]); - } - - /** - * Return the next frame position - * @return array of x,y coordinates - */ - protected function getNextPosition() { - do { - if ($this->bit == -1) { - $this->bit = 0; - return array('x'=>$this->x, 'y'=>$this->y); - } - $x = $this->x; - $y = $this->y; - $w = $this->width; - if ($this->bit == 0) { - $x--; - $this->bit++; - } else { - $x++; - $y += $this->dir; - $this->bit--; - } - if ($this->dir < 0) { - if ($y < 0) { - $y = 0; - $x -= 2; - $this->dir = 1; - if ($x == 6) { - $x--; - $y = 9; - } - } - } else { - if ($y == $w) { - $y = $w - 1; - $x -= 2; - $this->dir = -1; - if ($x == 6) { - $x--; - $y -= 8; - } - } - } - if (($x < 0) OR ($y < 0)) { - return NULL; - } - $this->x = $x; - $this->y = $y; - } while(ord($this->frame[$y][$x]) & 0x80); - return array('x'=>$x, 'y'=>$y); - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - // QRrawcode - - /** - * Initialize code. - * @param array $spec array of ECC specification - * @return 0 in case of success, -1 in case of error - */ - protected function init($spec) { - $dl = $this->rsDataCodes1($spec); - $el = $this->rsEccCodes1($spec); - $rs = $this->init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el); - $blockNo = 0; - $dataPos = 0; - $eccPos = 0; - $endfor = $this->rsBlockNum1($spec); - for ($i=0; $i < $endfor; ++$i) { - $ecc = array_slice($this->ecccode, $eccPos); - $this->rsblocks[$blockNo] = array(); - $this->rsblocks[$blockNo]['dataLength'] = $dl; - $this->rsblocks[$blockNo]['data'] = array_slice($this->datacode, $dataPos); - $this->rsblocks[$blockNo]['eccLength'] = $el; - $ecc = $this->encode_rs_char($rs, $this->rsblocks[$blockNo]['data'], $ecc); - $this->rsblocks[$blockNo]['ecc'] = $ecc; - $this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc); - $dataPos += $dl; - $eccPos += $el; - $blockNo++; - } - if ($this->rsBlockNum2($spec) == 0) { - return 0; - } - $dl = $this->rsDataCodes2($spec); - $el = $this->rsEccCodes2($spec); - $rs = $this->init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el); - if ($rs == NULL) { - return -1; - } - $endfor = $this->rsBlockNum2($spec); - for ($i=0; $i < $endfor; ++$i) { - $ecc = array_slice($this->ecccode, $eccPos); - $this->rsblocks[$blockNo] = array(); - $this->rsblocks[$blockNo]['dataLength'] = $dl; - $this->rsblocks[$blockNo]['data'] = array_slice($this->datacode, $dataPos); - $this->rsblocks[$blockNo]['eccLength'] = $el; - $ecc = $this->encode_rs_char($rs, $this->rsblocks[$blockNo]['data'], $ecc); - $this->rsblocks[$blockNo]['ecc'] = $ecc; - $this->ecccode = array_merge(array_slice($this->ecccode, 0, $eccPos), $ecc); - $dataPos += $dl; - $eccPos += $el; - $blockNo++; - } - return 0; - } - - /** - * Return Reed-Solomon block code. - * @return array rsblocks - */ - protected function getCode() { - if ($this->count < $this->dataLength) { - $row = $this->count % $this->blocks; - $col = $this->count / $this->blocks; - if ($col >= $this->rsblocks[0]['dataLength']) { - $row += $this->b1; - } - $ret = $this->rsblocks[$row]['data'][$col]; - } elseif ($this->count < $this->dataLength + $this->eccLength) { - $row = ($this->count - $this->dataLength) % $this->blocks; - $col = ($this->count - $this->dataLength) / $this->blocks; - $ret = $this->rsblocks[$row]['ecc'][$col]; - } else { - return 0; - } - $this->count++; - return $ret; - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - // QRmask - - /** - * Write Format Information on frame and returns the number of black bits - * @param int $width frame width - * @param array $frame frame - * @param array $mask masking mode - * @param int $level error correction level - * @return int blacks - */ - protected function writeFormatInformation($width, &$frame, $mask, $level) { - $blacks = 0; - $format = $this->getFormatInfo($mask, $level); - for ($i=0; $i<8; ++$i) { - if ($format & 1) { - $blacks += 2; - $v = 0x85; - } else { - $v = 0x84; - } - $frame[8][$width - 1 - $i] = chr($v); - if ($i < 6) { - $frame[$i][8] = chr($v); - } else { - $frame[$i + 1][8] = chr($v); - } - $format = $format >> 1; - } - for ($i=0; $i<7; ++$i) { - if ($format & 1) { - $blacks += 2; - $v = 0x85; - } else { - $v = 0x84; - } - $frame[$width - 7 + $i][8] = chr($v); - if ($i == 0) { - $frame[8][7] = chr($v); - } else { - $frame[8][6 - $i] = chr($v); - } - $format = $format >> 1; - } - return $blacks; - } - - /** - * mask0 - * @param int $x X position - * @param int $y Y position - * @return int mask - */ - protected function mask0($x, $y) { - return ($x + $y) & 1; - } - - /** - * mask1 - * @param int $x X position - * @param int $y Y position - * @return int mask - */ - protected function mask1($x, $y) { - return ($y & 1); - } - - /** - * mask2 - * @param int $x X position - * @param int $y Y position - * @return int mask - */ - protected function mask2($x, $y) { - return ($x % 3); - } - - /** - * mask3 - * @param int $x X position - * @param int $y Y position - * @return int mask - */ - protected function mask3($x, $y) { - return ($x + $y) % 3; - } - - /** - * mask4 - * @param int $x X position - * @param int $y Y position - * @return int mask - */ - protected function mask4($x, $y) { - return (((int)($y / 2)) + ((int)($x / 3))) & 1; - } - - /** - * mask5 - * @param int $x X position - * @param int $y Y position - * @return int mask - */ - protected function mask5($x, $y) { - return (($x * $y) & 1) + ($x * $y) % 3; - } - - /** - * mask6 - * @param int $x X position - * @param int $y Y position - * @return int mask - */ - protected function mask6($x, $y) { - return ((($x * $y) & 1) + ($x * $y) % 3) & 1; - } - - /** - * mask7 - * @param int $x X position - * @param int $y Y position - * @return int mask - */ - protected function mask7($x, $y) { - return ((($x * $y) % 3) + (($x + $y) & 1)) & 1; - } - - /** - * Return bitmask - * @param int $maskNo mask number - * @param int $width width - * @param array $frame frame - * @return array bitmask - */ - protected function generateMaskNo($maskNo, $width, $frame) { - $bitMask = array_fill(0, $width, array_fill(0, $width, 0)); - for ($y=0; $y<$width; ++$y) { - for ($x=0; $x<$width; ++$x) { - if (ord($frame[$y][$x]) & 0x80) { - $bitMask[$y][$x] = 0; - } else { - $maskFunc = call_user_func(array($this, 'mask'.$maskNo), $x, $y); - $bitMask[$y][$x] = ($maskFunc == 0)?1:0; - } - } - } - return $bitMask; - } - - /** - * makeMaskNo - * @param int $maskNo - * @param int $width - * @param int $s - * @param int $d - * @param boolean $maskGenOnly - * @return int b - */ - protected function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly=false) { - $b = 0; - $bitMask = array(); - $bitMask = $this->generateMaskNo($maskNo, $width, $s, $d); - if ($maskGenOnly) { - return; - } - $d = $s; - for ($y=0; $y<$width; ++$y) { - for ($x=0; $x<$width; ++$x) { - if ($bitMask[$y][$x] == 1) { - $d[$y][$x] = chr(ord($s[$y][$x]) ^ (int)$bitMask[$y][$x]); - } - $b += (int)(ord($d[$y][$x]) & 1); - } - } - return $b; - } - - /** - * makeMask - * @param int $width - * @param array $frame - * @param int $maskNo - * @param int $level - * @return array mask - */ - protected function makeMask($width, $frame, $maskNo, $level) { - $masked = array_fill(0, $width, str_repeat("\0", $width)); - $this->makeMaskNo($maskNo, $width, $frame, $masked); - $this->writeFormatInformation($width, $masked, $maskNo, $level); - return $masked; - } - - /** - * calcN1N3 - * @param int $length - * @return int demerit - */ - protected function calcN1N3($length) { - $demerit = 0; - for ($i=0; $i<$length; ++$i) { - if ($this->runLength[$i] >= 5) { - $demerit += (N1 + ($this->runLength[$i] - 5)); - } - if ($i & 1) { - if (($i >= 3) AND ($i < ($length-2)) AND ($this->runLength[$i] % 3 == 0)) { - $fact = (int)($this->runLength[$i] / 3); - if (($this->runLength[$i-2] == $fact) - AND ($this->runLength[$i-1] == $fact) - AND ($this->runLength[$i+1] == $fact) - AND ($this->runLength[$i+2] == $fact)) { - if (($this->runLength[$i-3] < 0) OR ($this->runLength[$i-3] >= (4 * $fact))) { - $demerit += N3; - } elseif ((($i+3) >= $length) OR ($this->runLength[$i+3] >= (4 * $fact))) { - $demerit += N3; - } - } - } - } - } - return $demerit; - } - - /** - * evaluateSymbol - * @param int $width - * @param array $frame - * @return int demerit - */ - protected function evaluateSymbol($width, $frame) { - $head = 0; - $demerit = 0; - for ($y=0; $y<$width; ++$y) { - $head = 0; - $this->runLength[0] = 1; - $frameY = $frame[$y]; - if ($y > 0) { - $frameYM = $frame[$y-1]; - } - for ($x=0; $x<$width; ++$x) { - if (($x > 0) AND ($y > 0)) { - $b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]); - $w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]); - if (($b22 | ($w22 ^ 1)) & 1) { - $demerit += N2; - } - } - if (($x == 0) AND (ord($frameY[$x]) & 1)) { - $this->runLength[0] = -1; - $head = 1; - $this->runLength[$head] = 1; - } elseif ($x > 0) { - if ((ord($frameY[$x]) ^ ord($frameY[$x-1])) & 1) { - $head++; - $this->runLength[$head] = 1; - } else { - $this->runLength[$head]++; - } - } - } - $demerit += $this->calcN1N3($head+1); - } - for ($x=0; $x<$width; ++$x) { - $head = 0; - $this->runLength[0] = 1; - for ($y=0; $y<$width; ++$y) { - if (($y == 0) AND (ord($frame[$y][$x]) & 1)) { - $this->runLength[0] = -1; - $head = 1; - $this->runLength[$head] = 1; - } elseif ($y > 0) { - if ((ord($frame[$y][$x]) ^ ord($frame[$y-1][$x])) & 1) { - $head++; - $this->runLength[$head] = 1; - } else { - $this->runLength[$head]++; - } - } - } - $demerit += $this->calcN1N3($head+1); - } - return $demerit; - } - - /** - * mask - * @param int $width - * @param array $frame - * @param int $level - * @return array best mask - */ - protected function mask($width, $frame, $level) { - $minDemerit = PHP_INT_MAX; - $bestMaskNum = 0; - $bestMask = array(); - $checked_masks = array(0, 1, 2, 3, 4, 5, 6, 7); - if (QR_FIND_FROM_RANDOM !== false) { - $howManuOut = 8 - (QR_FIND_FROM_RANDOM % 9); - for ($i = 0; $i < $howManuOut; ++$i) { - $remPos = rand (0, count($checked_masks)-1); - unset($checked_masks[$remPos]); - $checked_masks = array_values($checked_masks); - } - } - $bestMask = $frame; - foreach ($checked_masks as $i) { - $mask = array_fill(0, $width, str_repeat("\0", $width)); - $demerit = 0; - $blacks = 0; - $blacks = $this->makeMaskNo($i, $width, $frame, $mask); - $blacks += $this->writeFormatInformation($width, $mask, $i, $level); - $blacks = (int)(100 * $blacks / ($width * $width)); - $demerit = (int)((int)(abs($blacks - 50) / 5) * N4); - $demerit += $this->evaluateSymbol($width, $mask); - if ($demerit < $minDemerit) { - $minDemerit = $demerit; - $bestMask = $mask; - $bestMaskNum = $i; - } - } - return $bestMask; - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - // QRsplit - - /** - * Return true if the character at specified position is a number - * @param string $str string - * @param int $pos characted position - * @return boolean true of false - */ - protected function isdigitat($str, $pos) { - if ($pos >= strlen($str)) { - return false; - } - return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9'))); - } - - /** - * Return true if the character at specified position is an alphanumeric character - * @param string $str string - * @param int $pos characted position - * @return boolean true of false - */ - protected function isalnumat($str, $pos) { - if ($pos >= strlen($str)) { - return false; - } - return ($this->lookAnTable(ord($str[$pos])) >= 0); - } - - /** - * identifyMode - * @param int $pos - * @return int mode - */ - protected function identifyMode($pos) { - if ($pos >= strlen($this->dataStr)) { - return QR_MODE_NL; - } - $c = $this->dataStr[$pos]; - if ($this->isdigitat($this->dataStr, $pos)) { - return QR_MODE_NM; - } elseif ($this->isalnumat($this->dataStr, $pos)) { - return QR_MODE_AN; - } elseif ($this->hint == QR_MODE_KJ) { - if ($pos+1 < strlen($this->dataStr)) { - $d = $this->dataStr[$pos+1]; - $word = (ord($c) << 8) | ord($d); - if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) { - return QR_MODE_KJ; - } - } - } - return QR_MODE_8B; - } - - /** - * eatNum - * @return int run - */ - protected function eatNum() { - $ln = $this->lengthIndicator(QR_MODE_NM, $this->version); - $p = 0; - while($this->isdigitat($this->dataStr, $p)) { - $p++; - } - $run = $p; - $mode = $this->identifyMode($p); - if ($mode == QR_MODE_8B) { - $dif = $this->estimateBitsModeNum($run) + 4 + $ln - + $this->estimateBitsMode8(1) // + 4 + l8 - - $this->estimateBitsMode8($run + 1); // - 4 - l8 - if ($dif > 0) { - return $this->eat8(); - } - } - if ($mode == QR_MODE_AN) { - $dif = $this->estimateBitsModeNum($run) + 4 + $ln - + $this->estimateBitsModeAn(1) // + 4 + la - - $this->estimateBitsModeAn($run + 1);// - 4 - la - if ($dif > 0) { - return $this->eatAn(); - } - } - $this->items = $this->appendNewInputItem($this->items, QR_MODE_NM, $run, str_split($this->dataStr)); - return $run; - } - - /** - * eatAn - * @return int run - */ - protected function eatAn() { - $la = $this->lengthIndicator(QR_MODE_AN, $this->version); - $ln = $this->lengthIndicator(QR_MODE_NM, $this->version); - $p = 0; - while($this->isalnumat($this->dataStr, $p)) { - if ($this->isdigitat($this->dataStr, $p)) { - $q = $p; - while($this->isdigitat($this->dataStr, $q)) { - $q++; - } - $dif = $this->estimateBitsModeAn($p) // + 4 + la - + $this->estimateBitsModeNum($q - $p) + 4 + $ln - - $this->estimateBitsModeAn($q); // - 4 - la - if ($dif < 0) { - break; - } else { - $p = $q; - } - } else { - $p++; - } - } - $run = $p; - if (!$this->isalnumat($this->dataStr, $p)) { - $dif = $this->estimateBitsModeAn($run) + 4 + $la - + $this->estimateBitsMode8(1) // + 4 + l8 - - $this->estimateBitsMode8($run + 1); // - 4 - l8 - if ($dif > 0) { - return $this->eat8(); - } - } - $this->items = $this->appendNewInputItem($this->items, QR_MODE_AN, $run, str_split($this->dataStr)); - return $run; - } - - /** - * eatKanji - * @return int run - */ - protected function eatKanji() { - $p = 0; - while($this->identifyMode($p) == QR_MODE_KJ) { - $p += 2; - } - $this->items = $this->appendNewInputItem($this->items, QR_MODE_KJ, $p, str_split($this->dataStr)); - return $run; - } - - /** - * eat8 - * @return int run - */ - protected function eat8() { - $la = $this->lengthIndicator(QR_MODE_AN, $this->version); - $ln = $this->lengthIndicator(QR_MODE_NM, $this->version); - $p = 1; - $dataStrLen = strlen($this->dataStr); - while($p < $dataStrLen) { - $mode = $this->identifyMode($p); - if ($mode == QR_MODE_KJ) { - break; - } - if ($mode == QR_MODE_NM) { - $q = $p; - while($this->isdigitat($this->dataStr, $q)) { - $q++; - } - $dif = $this->estimateBitsMode8($p) // + 4 + l8 - + $this->estimateBitsModeNum($q - $p) + 4 + $ln - - $this->estimateBitsMode8($q); // - 4 - l8 - if ($dif < 0) { - break; - } else { - $p = $q; - } - } elseif ($mode == QR_MODE_AN) { - $q = $p; - while($this->isalnumat($this->dataStr, $q)) { - $q++; - } - $dif = $this->estimateBitsMode8($p) // + 4 + l8 - + $this->estimateBitsModeAn($q - $p) + 4 + $la - - $this->estimateBitsMode8($q); // - 4 - l8 - if ($dif < 0) { - break; - } else { - $p = $q; - } - } else { - $p++; - } - } - $run = $p; - $this->items = $this->appendNewInputItem($this->items, QR_MODE_8B, $run, str_split($this->dataStr)); - return $run; - } - - /** - * splitString - */ - protected function splitString() { - while (strlen($this->dataStr) > 0) { - if ($this->dataStr == '') { - return 0; - } - $mode = $this->identifyMode(0); - switch ($mode) { - case QR_MODE_NM: { - $length = $this->eatNum(); - break; - } - case QR_MODE_AN: { - $length = $this->eatAn(); - break; - } - case QR_MODE_KJ: { - if ($hint == QR_MODE_KJ) { - $length = $this->eatKanji(); - } else { - $length = $this->eat8(); - } - break; - } - default: { - $length = $this->eat8(); - break; - } - } - if ($length == 0) { - return 0; - } - if ($length < 0) { - return -1; - } - $this->dataStr = substr($this->dataStr, $length); - } - } - - /** - * toUpper - */ - protected function toUpper() { - $stringLen = strlen($this->dataStr); - $p = 0; - while ($p < $stringLen) { - $mode = $this->identifyMode(substr($this->dataStr, $p), $this->hint); - if ($mode == QR_MODE_KJ) { - $p += 2; - } else { - if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) { - $this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32); - } - $p++; - } - } - return $this->dataStr; - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - // QRinputItem - - /** - * newInputItem - * @param int $mode - * @param int $size - * @param array $data - * @param array $bstream - * @return array input item - */ - protected function newInputItem($mode, $size, $data, $bstream=null) { - $setData = array_slice($data, 0, $size); - if (count($setData) < $size) { - $setData = array_merge($setData, array_fill(0, ($size - count($setData)), 0)); - } - if (!$this->check($mode, $size, $setData)) { - return NULL; - } - $inputitem = array(); - $inputitem['mode'] = $mode; - $inputitem['size'] = $size; - $inputitem['data'] = $setData; - $inputitem['bstream'] = $bstream; - return $inputitem; - } - - /** - * encodeModeNum - * @param array $inputitem - * @param int $version - * @return array input item - */ - protected function encodeModeNum($inputitem, $version) { - $words = (int)($inputitem['size'] / 3); - $inputitem['bstream'] = array(); - $val = 0x1; - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, $val); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], $this->lengthIndicator(QR_MODE_NM, $version), $inputitem['size']); - for ($i=0; $i < $words; ++$i) { - $val = (ord($inputitem['data'][$i*3 ]) - ord('0')) * 100; - $val += (ord($inputitem['data'][$i*3+1]) - ord('0')) * 10; - $val += (ord($inputitem['data'][$i*3+2]) - ord('0')); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 10, $val); - } - if ($inputitem['size'] - $words * 3 == 1) { - $val = ord($inputitem['data'][$words*3]) - ord('0'); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, $val); - } elseif (($inputitem['size'] - ($words * 3)) == 2) { - $val = (ord($inputitem['data'][$words*3 ]) - ord('0')) * 10; - $val += (ord($inputitem['data'][$words*3+1]) - ord('0')); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 7, $val); - } - return $inputitem; - } - - /** - * encodeModeAn - * @param array $inputitem - * @param int $version - * @return array input item - */ - protected function encodeModeAn($inputitem, $version) { - $words = (int)($inputitem['size'] / 2); - $inputitem['bstream'] = array(); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, 0x02); - $inputitem['bstream'] = $this->appendNum(v, $this->lengthIndicator(QR_MODE_AN, $version), $inputitem['size']); - for ($i=0; $i < $words; ++$i) { - $val = (int)$this->lookAnTable(ord($inputitem['data'][$i*2 ])) * 45; - $val += (int)$this->lookAnTable(ord($inputitem['data'][$i*2+1])); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 11, $val); - } - if ($inputitem['size'] & 1) { - $val = $this->lookAnTable(ord($inputitem['data'][($words * 2)])); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 6, $val); - } - return $inputitem; - } - - /** - * encodeMode8 - * @param array $inputitem - * @param int $version - * @return array input item - */ - protected function encodeMode8($inputitem, $version) { - $inputitem['bstream'] = array(); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, 0x4); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], $this->lengthIndicator(QR_MODE_8B, $version), $inputitem['size']); - for ($i=0; $i < $inputitem['size']; ++$i) { - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 8, ord($inputitem['data'][$i])); - } - return $inputitem; - } - - /** - * encodeModeKanji - * @param array $inputitem - * @param int $version - * @return array input item - */ - protected function encodeModeKanji($inputitem, $version) { - $inputitem['bstream'] = array(); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, 0x8); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], $this->lengthIndicator(QR_MODE_KJ, $version), (int)($inputitem['size'] / 2)); - for ($i=0; $i<$inputitem['size']; $i+=2) { - $val = (ord($inputitem['data'][$i]) << 8) | ord($inputitem['data'][$i+1]); - if ($val <= 0x9ffc) { - $val -= 0x8140; - } else { - $val -= 0xc140; - } - $h = ($val >> 8) * 0xc0; - $val = ($val & 0xff) + $h; - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 13, $val); - } - return $inputitem; - } - - /** - * encodeModeStructure - * @param array $inputitem - * @return array input item - */ - protected function encodeModeStructure($inputitem) { - $inputitem['bstream'] = array(); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, 0x03); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, ord($inputitem['data'][1]) - 1); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, ord($inputitem['data'][0]) - 1); - $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 8, ord($inputitem['data'][2])); - return $inputitem; - } - - /** - * encodeBitStream - * @param array $inputitem - * @param int $version - * @return array input item - */ - protected function encodeBitStream($inputitem, $version) { - $inputitem['bstream'] = array(); - $words = $this->maximumWords($inputitem['mode'], $version); - if ($inputitem['size'] > $words) { - $st1 = $this->newInputItem($inputitem['mode'], $words, $inputitem['data']); - $st2 = $this->newInputItem($inputitem['mode'], $inputitem['size'] - $words, array_slice($inputitem['data'], $words)); - $st1 = $this->encodeBitStream($st1, $version); - $st2 = $this->encodeBitStream($st2, $version); - $inputitem['bstream'] = array(); - $inputitem['bstream'] = $this->appendBitstream($inputitem['bstream'], $st1['bstream']); - $inputitem['bstream'] = $this->appendBitstream($inputitem['bstream'], $st2['bstream']); - } else { - switch($inputitem['mode']) { - case QR_MODE_NM: { - $inputitem = $this->encodeModeNum($inputitem, $version); - break; - } - case QR_MODE_AN: { - $inputitem = $this->encodeModeAn($inputitem, $version); - break; - } - case QR_MODE_8B: { - $inputitem = $this->encodeMode8($inputitem, $version); - break; - } - case QR_MODE_KJ: { - $inputitem = $this->encodeModeKanji($inputitem, $version); - break; - } - case QR_MODE_ST: { - $inputitem = $this->encodeModeStructure($inputitem); - break; - } - default: { - break; - } - } - } - return $inputitem; - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - // QRinput - - /** - * Append data to an input object. - * The data is copied and appended to the input object. - * @param array items input items - * @param int $mode encoding mode. - * @param int $size size of data (byte). - * @param array $data array of input data. - * @return items - * - */ - protected function appendNewInputItem($items, $mode, $size, $data) { - $items[] = $this->newInputItem($mode, $size, $data); - return $items; - } - - /** - * insertStructuredAppendHeader - * @param array $items - * @param int $size - * @param int $index - * @param int $parity - * @return array items - */ - protected function insertStructuredAppendHeader($items, $size, $index, $parity) { - if ($size > MAX_STRUCTURED_SYMBOLS) { - return -1; - } - if (($index <= 0) OR ($index > MAX_STRUCTURED_SYMBOLS)) { - return -1; - } - $buf = array($size, $index, $parity); - $entry = $this->newInputItem(QR_MODE_ST, 3, buf); - array_unshift($items, $entry); - return $items; - } - - /** - * calcParity - * @param array $items - * @return int parity - */ - protected function calcParity($items) { - $parity = 0; - foreach ($items as $item) { - if ($item['mode'] != QR_MODE_ST) { - for ($i=$item['size']-1; $i>=0; --$i) { - $parity ^= $item['data'][$i]; - } - } - } - return $parity; - } - - /** - * checkModeNum - * @param int $size - * @param array $data - * @return boolean true or false - */ - protected function checkModeNum($size, $data) { - for ($i=0; $i<$size; ++$i) { - if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){ - return false; - } - } - return true; - } - - /** - * estimateBitsModeNum - * @param int $size - * @return int number of bits - */ - protected function estimateBitsModeNum($size) { - $w = (int)$size / 3; - $bits = $w * 10; - switch($size - $w * 3) { - case 1: { - $bits += 4; - break; - } - case 2: { - $bits += 7; - break; - } - default: { - break; - } - } - return $bits; - } - - /** - * Look up the alphabet-numeric convesion table (see JIS X0510:2004, pp.19). - * @param int $c character value - * @return value - */ - protected function lookAnTable($c) { - return (($c > 127)?-1:$this->anTable[$c]); - } - - /** - * checkModeAn - * @param int $size - * @param array $data - * @return boolean true or false - */ - protected function checkModeAn($size, $data) { - for ($i=0; $i<$size; ++$i) { - if ($this->lookAnTable(ord($data[$i])) == -1) { - return false; - } - } - return true; - } - - /** - * estimateBitsModeAn - * @param int $size - * @return int number of bits - */ - protected function estimateBitsModeAn($size) { - $w = (int)($size / 2); - $bits = $w * 11; - if ($size & 1) { - $bits += 6; - } - return $bits; - } - - /** - * estimateBitsMode8 - * @param int $size - * @return int number of bits - */ - protected function estimateBitsMode8($size) { - return $size * 8; - } - - /** - * estimateBitsModeKanji - * @param int $size - * @return int number of bits - */ - protected function estimateBitsModeKanji($size) { - return (int)(($size / 2) * 13); - } - - /** - * checkModeKanji - * @param int $size - * @param array $data - * @return boolean true or false - */ - protected function checkModeKanji($size, $data) { - if ($size & 1) { - return false; - } - for ($i=0; $i<$size; $i+=2) { - $val = (ord($data[$i]) << 8) | ord($data[$i+1]); - if (($val < 0x8140) OR (($val > 0x9ffc) AND ($val < 0xe040)) OR ($val > 0xebbf)) { - return false; - } - } - return true; - } - - /** - * Validate the input data. - * @param int $mode encoding mode. - * @param int $size size of data (byte). - * @param array data data to validate - * @return boolean true in case of valid data, false otherwise - */ - protected function check($mode, $size, $data) { - if ($size <= 0) { - return false; - } - switch($mode) { - case QR_MODE_NM: { - return $this->checkModeNum($size, $data); - } - case QR_MODE_AN: { - return $this->checkModeAn($size, $data); - } - case QR_MODE_KJ: { - return $this->checkModeKanji($size, $data); - } - case QR_MODE_8B: { - return true; - } - case QR_MODE_ST: { - return true; - } - default: { - break; - } - } - return false; - } - - /** - * estimateBitStreamSize - * @param array $items - * @param int $version - * @return int bits - */ - protected function estimateBitStreamSize($items, $version) { - $bits = 0; - if ($version == 0) { - $version = 1; - } - foreach ($items as $item) { - switch($item['mode']) { - case QR_MODE_NM: { - $bits = $this->estimateBitsModeNum($item['size']); - break; - } - case QR_MODE_AN: { - $bits = $this->estimateBitsModeAn($item['size']); - break; - } - case QR_MODE_8B: { - $bits = $this->estimateBitsMode8($item['size']); - break; - } - case QR_MODE_KJ: { - $bits = $this->estimateBitsModeKanji($item['size']); - break; - } - case QR_MODE_ST: { - return STRUCTURE_HEADER_BITS; - } - default: { - return 0; - } - } - $l = $this->lengthIndicator($item['mode'], $version); - $m = 1 << $l; - $num = (int)(($item['size'] + $m - 1) / $m); - $bits += $num * (4 + $l); - } - return $bits; - } - - /** - * estimateVersion - * @param array $items - * @return int version - */ - protected function estimateVersion($items) { - $version = 0; - $prev = 0; - do { - $prev = $version; - $bits = $this->estimateBitStreamSize($items, $prev); - $version = $this->getMinimumVersion((int)(($bits + 7) / 8), $this->level); - if ($version < 0) { - return -1; - } - } while ($version > $prev); - return $version; - } - - /** - * lengthOfCode - * @param int $mode - * @param int $version - * @param int $bits - * @return int size - */ - protected function lengthOfCode($mode, $version, $bits) { - $payload = $bits - 4 - $this->lengthIndicator($mode, $version); - switch($mode) { - case QR_MODE_NM: { - $chunks = (int)($payload / 10); - $remain = $payload - $chunks * 10; - $size = $chunks * 3; - if ($remain >= 7) { - $size += 2; - } elseif ($remain >= 4) { - $size += 1; - } - break; - } - case QR_MODE_AN: { - $chunks = (int)($payload / 11); - $remain = $payload - $chunks * 11; - $size = $chunks * 2; - if ($remain >= 6) { - ++$size; - } - break; - } - case QR_MODE_8B: { - $size = (int)($payload / 8); - break; - } - case QR_MODE_KJ: { - $size = (int)(($payload / 13) * 2); - break; - } - case QR_MODE_ST: { - $size = (int)($payload / 8); - break; - } - default: { - $size = 0; - break; - } - } - $maxsize = $this->maximumWords($mode, $version); - if ($size < 0) { - $size = 0; - } - if ($size > $maxsize) { - $size = $maxsize; - } - return $size; - } - - /** - * createBitStream - * @param array $items - * @return array of items and total bits - */ - protected function createBitStream($items) { - $total = 0; - foreach ($items as $key => $item) { - $items[$key] = $this->encodeBitStream($item, $this->version); - $bits = count($items[$key]['bstream']); - $total += $bits; - } - return array($items, $total); - } - - /** - * convertData - * @param array $items - * @return array items - */ - protected function convertData($items) { - $ver = $this->estimateVersion($items); - if ($ver > $this->version) { - $this->version = $ver; - } - for (;;) { - $cbs = $this->createBitStream($items); - $items = $cbs[0]; - $bits = $cbs[1]; - if ($bits < 0) { - return -1; - } - $ver = $this->getMinimumVersion((int)(($bits + 7) / 8), $this->level); - if ($ver < 0) { - return -1; - } elseif ($ver > $this->version) { - $this->version = $ver; - } else { - break; - } - } - return $items; - } - - /** - * Append Padding Bit to bitstream - * @param array $bstream - * @return array bitstream - */ - protected function appendPaddingBit($bstream) { - $bits = count($bstream); - $maxwords = $this->getDataLength($this->version, $this->level); - $maxbits = $maxwords * 8; - if ($maxbits == $bits) { - return 0; - } - if ($maxbits - $bits < 5) { - return $this->appendNum($bstream, $maxbits - $bits, 0); - } - $bits += 4; - $words = (int)(($bits + 7) / 8); - $padding = array(); - $padding = $this->appendNum($padding, $words * 8 - $bits + 4, 0); - $padlen = $maxwords - $words; - if ($padlen > 0) { - $padbuf = array(); - for ($i=0; $i<$padlen; ++$i) { - $padbuf[$i] = ($i&1)?0x11:0xec; - } - $padding = $this->appendBytes($padding, $padlen, $padbuf); - } - return $this->appendBitstream($bstream, $padding); - } - - /** - * mergeBitStream - * @param array $bstream - * @return array bitstream - */ - protected function mergeBitStream($items) { - $items = $this->convertData($items); - $bstream = array(); - foreach ($items as $item) { - $bstream = $this->appendBitstream($bstream, $item['bstream']); - } - return $bstream; - } - - /** - * Returns a stream of bits. - * @param int $items - * @return array padded merged byte stream - */ - protected function getBitStream($items) { - $bstream = $this->mergeBitStream($items); - return $this->appendPaddingBit($bstream); - } - - /** - * Pack all bit streams padding bits into a byte array. - * @param int $items - * @return array padded merged byte stream - */ - protected function getByteStream($items) { - $bstream = $this->getBitStream($items); - return $this->bitstreamToByte($bstream); - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - // QRbitstream - - /** - * Return an array with zeros - * @param int $setLength array size - * @return array - */ - protected function allocate($setLength) { - return array_fill(0, $setLength, 0); - } - - /** - * Return new bitstream from number - * @param int $bits number of bits - * @param int $num number - * @return array bitstream - */ - protected function newFromNum($bits, $num) { - $bstream = $this->allocate($bits); - $mask = 1 << ($bits - 1); - for ($i=0; $i<$bits; ++$i) { - if ($num & $mask) { - $bstream[$i] = 1; - } else { - $bstream[$i] = 0; - } - $mask = $mask >> 1; - } - return $bstream; - } - - /** - * Return new bitstream from bytes - * @param int $size size - * @param array $data bytes - * @return array bitstream - */ - protected function newFromBytes($size, $data) { - $bstream = $this->allocate($size * 8); - $p=0; - for ($i=0; $i<$size; ++$i) { - $mask = 0x80; - for ($j=0; $j<8; ++$j) { - if ($data[$i] & $mask) { - $bstream[$p] = 1; - } else { - $bstream[$p] = 0; - } - $p++; - $mask = $mask >> 1; - } - } - return $bstream; - } - - /** - * Append one bitstream to another - * @param array $bitstream original bitstream - * @param array $append bitstream to append - * @return array bitstream - */ - protected function appendBitstream($bitstream, $append) { - if ((!is_array($append)) OR (count($append) == 0)) { - return $bitstream; - } - if (count($bitstream) == 0) { - return $append; - } - return array_values(array_merge($bitstream, $append)); - } - - /** - * Append one bitstream created from number to another - * @param array $bitstream original bitstream - * @param int $bits number of bits - * @param int $num number - * @return array bitstream - */ - protected function appendNum($bitstream, $bits, $num) { - if ($bits == 0) { - return 0; - } - $b = $this->newFromNum($bits, $num); - return $this->appendBitstream($bitstream, $b); - } - - /** - * Append one bitstream created from bytes to another - * @param array $bitstream original bitstream - * @param int $size size - * @param array $data bytes - * @return array bitstream - */ - protected function appendBytes($bitstream, $size, $data) { - if ($size == 0) { - return 0; - } - $b = $this->newFromBytes($size, $data); - return $this->appendBitstream($bitstream, $b); - } - - /** - * Convert bitstream to bytes - * @param array $bitstream original bitstream - * @return array of bytes - */ - protected function bitstreamToByte($bstream) { - $size = count($bstream); - if ($size == 0) { - return array(); - } - $data = array_fill(0, (int)(($size + 7) / 8), 0); - $bytes = (int)($size / 8); - $p = 0; - for ($i=0; $i<$bytes; $i++) { - $v = 0; - for ($j=0; $j<8; $j++) { - $v = $v << 1; - $v |= $bstream[$p]; - $p++; - } - $data[$i] = $v; - } - if ($size & 7) { - $v = 0; - for ($j=0; $j<($size & 7); $j++) { - $v = $v << 1; - $v |= $bstream[$p]; - $p++; - } - $data[$bytes] = $v; - } - return $data; - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - // QRspec - - /** - * Replace a value on the array at the specified position - * @param array $srctab - * @param int $x X position - * @param int $y Y position - * @param string $repl value to replace - * @param int $replLen length of the repl string - * @return array srctab - */ - protected function qrstrset($srctab, $x, $y, $repl, $replLen=false) { - $srctab[$y] = substr_replace($srctab[$y], ($replLen !== false)?substr($repl,0,$replLen):$repl, $x, ($replLen !== false)?$replLen:strlen($repl)); - return $srctab; - } - - /** - * Return maximum data code length (bytes) for the version. - * @param int $version version - * @param int $level error correction level - * @return int maximum size (bytes) - */ - protected function getDataLength($version, $level) { - return $this->capacity[$version][QRCAP_WORDS] - $this->capacity[$version][QRCAP_EC][$level]; - } - - /** - * Return maximum error correction code length (bytes) for the version. - * @param int $version version - * @param int $level error correction level - * @return int ECC size (bytes) - */ - protected function getECCLength($version, $level){ - return $this->capacity[$version][QRCAP_EC][$level]; - } - - /** - * Return the width of the symbol for the version. - * @param int $version version - * @return int width - */ - protected function getWidth($version) { - return $this->capacity[$version][QRCAP_WIDTH]; - } - - /** - * Return the numer of remainder bits. - * @param int $version version - * @return int number of remainder bits - */ - protected function getRemainder($version) { - return $this->capacity[$version][QRCAP_REMINDER]; - } - - /** - * Return a version number that satisfies the input code length. - * @param int $size input code length (byte) - * @param int $level error correction level - * @return int version number - */ - protected function getMinimumVersion($size, $level) { - for ($i=1; $i <= QRSPEC_VERSION_MAX; ++$i) { - $words = $this->capacity[$i][QRCAP_WORDS] - $this->capacity[$i][QRCAP_EC][$level]; - if ($words >= $size) { - return $i; - } - } - return -1; - } - - /** - * Return the size of length indicator for the mode and version. - * @param int $mode encoding mode - * @param int $version version - * @return int the size of the appropriate length indicator (bits). - */ - protected function lengthIndicator($mode, $version) { - if ($mode == QR_MODE_ST) { - return 0; - } - if ($version <= 9) { - $l = 0; - } elseif ($version <= 26) { - $l = 1; - } else { - $l = 2; - } - return $this->lengthTableBits[$mode][$l]; - } - - /** - * Return the maximum length for the mode and version. - * @param int $mode encoding mode - * @param int $version version - * @return int the maximum length (bytes) - */ - protected function maximumWords($mode, $version) { - if ($mode == QR_MODE_ST) { - return 3; - } - if ($version <= 9) { - $l = 0; - } else if ($version <= 26) { - $l = 1; - } else { - $l = 2; - } - $bits = $this->lengthTableBits[$mode][$l]; - $words = (1 << $bits) - 1; - if ($mode == QR_MODE_KJ) { - $words *= 2; // the number of bytes is required - } - return $words; - } - - /** - * Return an array of ECC specification. - * @param int $version version - * @param int $level error correction level - * @param array $spec an array of ECC specification contains as following: {# of type1 blocks, # of data code, # of ecc code, # of type2 blocks, # of data code} - * @return array spec - */ - protected function getEccSpec($version, $level, $spec) { - if (count($spec) < 5) { - $spec = array(0, 0, 0, 0, 0); - } - $b1 = $this->eccTable[$version][$level][0]; - $b2 = $this->eccTable[$version][$level][1]; - $data = $this->getDataLength($version, $level); - $ecc = $this->getECCLength($version, $level); - if ($b2 == 0) { - $spec[0] = $b1; - $spec[1] = (int)($data / $b1); - $spec[2] = (int)($ecc / $b1); - $spec[3] = 0; - $spec[4] = 0; - } else { - $spec[0] = $b1; - $spec[1] = (int)($data / ($b1 + $b2)); - $spec[2] = (int)($ecc / ($b1 + $b2)); - $spec[3] = $b2; - $spec[4] = $spec[1] + 1; - } - return $spec; - } - - /** - * Put an alignment marker. - * @param array $frame frame - * @param int $width width - * @param int $ox X center coordinate of the pattern - * @param int $oy Y center coordinate of the pattern - * @return array frame - */ - protected function putAlignmentMarker($frame, $ox, $oy) { - $finder = array( - "\xa1\xa1\xa1\xa1\xa1", - "\xa1\xa0\xa0\xa0\xa1", - "\xa1\xa0\xa1\xa0\xa1", - "\xa1\xa0\xa0\xa0\xa1", - "\xa1\xa1\xa1\xa1\xa1" - ); - $yStart = $oy - 2; - $xStart = $ox - 2; - for ($y=0; $y < 5; $y++) { - $frame = $this->qrstrset($frame, $xStart, $yStart+$y, $finder[$y]); - } - return $frame; - } - - /** - * Put an alignment pattern. - * @param int $version version - * @param array $fram frame - * @param int $width width - * @return array frame - */ - protected function putAlignmentPattern($version, $frame, $width) { - if ($version < 2) { - return $frame; - } - $d = $this->alignmentPattern[$version][1] - $this->alignmentPattern[$version][0]; - if ($d < 0) { - $w = 2; - } else { - $w = (int)(($width - $this->alignmentPattern[$version][0]) / $d + 2); - } - if ($w * $w - 3 == 1) { - $x = $this->alignmentPattern[$version][0]; - $y = $this->alignmentPattern[$version][0]; - $frame = $this->putAlignmentMarker($frame, $x, $y); - return $frame; - } - $cx = $this->alignmentPattern[$version][0]; - $wo = $w - 1; - for ($x=1; $x < $wo; ++$x) { - $frame = $this->putAlignmentMarker($frame, 6, $cx); - $frame = $this->putAlignmentMarker($frame, $cx, 6); - $cx += $d; - } - $cy = $this->alignmentPattern[$version][0]; - for ($y=0; $y < $wo; ++$y) { - $cx = $this->alignmentPattern[$version][0]; - for ($x=0; $x < $wo; ++$x) { - $frame = $this->putAlignmentMarker($frame, $cx, $cy); - $cx += $d; - } - $cy += $d; - } - return $frame; - } - - /** - * Return BCH encoded version information pattern that is used for the symbol of version 7 or greater. Use lower 18 bits. - * @param int $version version - * @return BCH encoded version information pattern - */ - protected function getVersionPattern($version) { - if (($version < 7) OR ($version > QRSPEC_VERSION_MAX)) { - return 0; - } - return $this->versionPattern[($version - 7)]; - } - - /** - * Return BCH encoded format information pattern. - * @param array $mask - * @param int $level error correction level - * @return BCH encoded format information pattern - */ - protected function getFormatInfo($mask, $level) { - if (($mask < 0) OR ($mask > 7)) { - return 0; - } - if (($level < 0) OR ($level > 3)) { - return 0; - } - return $this->formatInfo[$level][$mask]; - } - - /** - * Put a finder pattern. - * @param array $frame frame - * @param int $width width - * @param int $ox X center coordinate of the pattern - * @param int $oy Y center coordinate of the pattern - * @return array frame - */ - protected function putFinderPattern($frame, $ox, $oy) { - $finder = array( - "\xc1\xc1\xc1\xc1\xc1\xc1\xc1", - "\xc1\xc0\xc0\xc0\xc0\xc0\xc1", - "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", - "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", - "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", - "\xc1\xc0\xc0\xc0\xc0\xc0\xc1", - "\xc1\xc1\xc1\xc1\xc1\xc1\xc1" - ); - for ($y=0; $y < 7; $y++) { - $frame = $this->qrstrset($frame, $ox, ($oy + $y), $finder[$y]); - } - return $frame; - } - - /** - * Return a copy of initialized frame. - * @param int $version version - * @return Array of unsigned char. - */ - protected function createFrame($version) { - $width = $this->capacity[$version][QRCAP_WIDTH]; - $frameLine = str_repeat ("\0", $width); - $frame = array_fill(0, $width, $frameLine); - // Finder pattern - $frame = $this->putFinderPattern($frame, 0, 0); - $frame = $this->putFinderPattern($frame, $width - 7, 0); - $frame = $this->putFinderPattern($frame, 0, $width - 7); - // Separator - $yOffset = $width - 7; - for ($y=0; $y < 7; ++$y) { - $frame[$y][7] = "\xc0"; - $frame[$y][$width - 8] = "\xc0"; - $frame[$yOffset][7] = "\xc0"; - ++$yOffset; - } - $setPattern = str_repeat("\xc0", 8); - $frame = $this->qrstrset($frame, 0, 7, $setPattern); - $frame = $this->qrstrset($frame, $width-8, 7, $setPattern); - $frame = $this->qrstrset($frame, 0, $width - 8, $setPattern); - // Format info - $setPattern = str_repeat("\x84", 9); - $frame = $this->qrstrset($frame, 0, 8, $setPattern); - $frame = $this->qrstrset($frame, $width - 8, 8, $setPattern, 8); - $yOffset = $width - 8; - for ($y=0; $y < 8; ++$y,++$yOffset) { - $frame[$y][8] = "\x84"; - $frame[$yOffset][8] = "\x84"; - } - // Timing pattern - $wo = $width - 15; - for ($i=1; $i < $wo; ++$i) { - $frame[6][7+$i] = chr(0x90 | ($i & 1)); - $frame[7+$i][6] = chr(0x90 | ($i & 1)); - } - // Alignment pattern - $frame = $this->putAlignmentPattern($version, $frame, $width); - // Version information - if ($version >= 7) { - $vinf = $this->getVersionPattern($version); - $v = $vinf; - for ($x=0; $x<6; ++$x) { - for ($y=0; $y<3; ++$y) { - $frame[($width - 11)+$y][$x] = chr(0x88 | ($v & 1)); - $v = $v >> 1; - } - } - $v = $vinf; - for ($y=0; $y<6; ++$y) { - for ($x=0; $x<3; ++$x) { - $frame[$y][$x+($width - 11)] = chr(0x88 | ($v & 1)); - $v = $v >> 1; - } - } - } - // and a little bit... - $frame[$width - 8][8] = "\x81"; - return $frame; - } - - /** - * Set new frame for the specified version. - * @param int $version version - * @return Array of unsigned char. - */ - protected function newFrame($version) { - if (($version < 1) OR ($version > QRSPEC_VERSION_MAX)) { - return NULL; - } - if (!isset($this->frames[$version])) { - $this->frames[$version] = $this->createFrame($version); - } - if (is_null($this->frames[$version])) { - return NULL; - } - return $this->frames[$version]; - } - - /** - * Return block number 0 - * @param array $spec - * @return int value - */ - protected function rsBlockNum($spec) { - return ($spec[0] + $spec[3]); - } - - /** - * Return block number 1 - * @param array $spec - * @return int value - */ - protected function rsBlockNum1($spec) { - return $spec[0]; - } - - /** - * Return data codes 1 - * @param array $spec - * @return int value - */ - protected function rsDataCodes1($spec) { - return $spec[1]; - } - - /** - * Return ecc codes 1 - * @param array $spec - * @return int value - */ - protected function rsEccCodes1($spec) { - return $spec[2]; - } - - /** - * Return block number 2 - * @param array $spec - * @return int value - */ - protected function rsBlockNum2($spec) { - return $spec[3]; - } - - /** - * Return data codes 2 - * @param array $spec - * @return int value - */ - protected function rsDataCodes2($spec) { - return $spec[4]; - } - - /** - * Return ecc codes 2 - * @param array $spec - * @return int value - */ - protected function rsEccCodes2($spec) { - return $spec[2]; - } - - /** - * Return data length - * @param array $spec - * @return int value - */ - protected function rsDataLength($spec) { - return ($spec[0] * $spec[1]) + ($spec[3] * $spec[4]); - } - - /** - * Return ecc length - * @param array $spec - * @return int value - */ - protected function rsEccLength($spec) { - return ($spec[0] + $spec[3]) * $spec[2]; - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - // QRrs - - /** - * Initialize a Reed-Solomon codec and add it to existing rsitems - * @param int $symsize symbol size, bits - * @param int $gfpoly Field generator polynomial coefficients - * @param int $fcr first root of RS code generator polynomial, index form - * @param int $prim primitive element to generate polynomial roots - * @param int $nroots RS code generator polynomial degree (number of roots) - * @param int $pad padding bytes at front of shortened block - * @return array Array of RS values:
  • mm = Bits per symbol;
  • nn = Symbols per block;
  • alpha_to = log lookup table array;
  • index_of = Antilog lookup table array;
  • genpoly = Generator polynomial array;
  • nroots = Number of generator;
  • roots = number of parity symbols;
  • fcr = First consecutive root, index form;
  • prim = Primitive element, index form;
  • iprim = prim-th root of 1, index form;
  • pad = Padding bytes in shortened block;
  • gfpoly
. - */ - protected function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) { - foreach ($this->rsitems as $rs) { - if (($rs['pad'] != $pad) OR ($rs['nroots'] != $nroots) OR ($rs['mm'] != $symsize) - OR ($rs['gfpoly'] != $gfpoly) OR ($rs['fcr'] != $fcr) OR ($rs['prim'] != $prim)) { - continue; - } - return $rs; - } - $rs = $this->init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad); - array_unshift($this->rsitems, $rs); - return $rs; - } - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - // QRrsItem - - /** - * modnn - * @param array RS values - * @param int $x X position - * @return int X osition - */ - protected function modnn($rs, $x) { - while ($x >= $rs['nn']) { - $x -= $rs['nn']; - $x = ($x >> $rs['mm']) + ($x & $rs['nn']); - } - return $x; - } - - /** - * Initialize a Reed-Solomon codec and returns an array of values. - * @param int $symsize symbol size, bits - * @param int $gfpoly Field generator polynomial coefficients - * @param int $fcr first root of RS code generator polynomial, index form - * @param int $prim primitive element to generate polynomial roots - * @param int $nroots RS code generator polynomial degree (number of roots) - * @param int $pad padding bytes at front of shortened block - * @return array Array of RS values:
  • mm = Bits per symbol;
  • nn = Symbols per block;
  • alpha_to = log lookup table array;
  • index_of = Antilog lookup table array;
  • genpoly = Generator polynomial array;
  • nroots = Number of generator;
  • roots = number of parity symbols;
  • fcr = First consecutive root, index form;
  • prim = Primitive element, index form;
  • iprim = prim-th root of 1, index form;
  • pad = Padding bytes in shortened block;
  • gfpoly
. - */ - protected function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) { - // Based on Reed solomon encoder by Phil Karn, KA9Q (GNU-LGPLv2) - $rs = null; - // Check parameter ranges - if (($symsize < 0) OR ($symsize > 8)) { - return $rs; - } - if (($fcr < 0) OR ($fcr >= (1<<$symsize))) { - return $rs; - } - if (($prim <= 0) OR ($prim >= (1<<$symsize))) { - return $rs; - } - if (($nroots < 0) OR ($nroots >= (1<<$symsize))) { - return $rs; - } - if (($pad < 0) OR ($pad >= ((1<<$symsize) -1 - $nroots))) { - return $rs; - } - $rs = array(); - $rs['mm'] = $symsize; - $rs['nn'] = (1 << $symsize) - 1; - $rs['pad'] = $pad; - $rs['alpha_to'] = array_fill(0, ($rs['nn'] + 1), 0); - $rs['index_of'] = array_fill(0, ($rs['nn'] + 1), 0); - // PHP style macro replacement ;) - $NN =& $rs['nn']; - $A0 =& $NN; - // Generate Galois field lookup tables - $rs['index_of'][0] = $A0; // log(zero) = -inf - $rs['alpha_to'][$A0] = 0; // alpha**-inf = 0 - $sr = 1; - for ($i=0; $i<$rs['nn']; ++$i) { - $rs['index_of'][$sr] = $i; - $rs['alpha_to'][$i] = $sr; - $sr <<= 1; - if ($sr & (1 << $symsize)) { - $sr ^= $gfpoly; - } - $sr &= $rs['nn']; - } - if ($sr != 1) { - // field generator polynomial is not primitive! - return NULL; - } - // Form RS code generator polynomial from its roots - $rs['genpoly'] = array_fill(0, ($nroots + 1), 0); - $rs['fcr'] = $fcr; - $rs['prim'] = $prim; - $rs['nroots'] = $nroots; - $rs['gfpoly'] = $gfpoly; - // Find prim-th root of 1, used in decoding - for ($iprim=1; ($iprim % $prim) != 0; $iprim += $rs['nn']) { - ; // intentional empty-body loop! - } - $rs['iprim'] = (int)($iprim / $prim); - $rs['genpoly'][0] = 1; - - - for ($i = 0,$root=$fcr*$prim; $i < $nroots; $i++, $root += $prim) { - $rs['genpoly'][$i+1] = 1; - // Multiply rs->genpoly[] by @**(root + x) - for ($j = $i; $j > 0; --$j) { - if ($rs['genpoly'][$j] != 0) { - $rs['genpoly'][$j] = $rs['genpoly'][$j-1] ^ $rs['alpha_to'][$this->modnn($rs, $rs['index_of'][$rs['genpoly'][$j]] + $root)]; - } else { - $rs['genpoly'][$j] = $rs['genpoly'][$j-1]; - } - } - // rs->genpoly[0] can never be zero - $rs['genpoly'][0] = $rs['alpha_to'][$this->modnn($rs, $rs['index_of'][$rs['genpoly'][0]] + $root)]; - } - // convert rs->genpoly[] to index form for quicker encoding - for ($i = 0; $i <= $nroots; ++$i) { - $rs['genpoly'][$i] = $rs['index_of'][$rs['genpoly'][$i]]; - } - return $rs; - } - - /** - * Encode a Reed-Solomon codec and returns the parity array - * @param array $rs RS values - * @param array $data data - * @param array $parity parity - * @return parity array - */ - protected function encode_rs_char($rs, $data, $parity) { - $MM =& $rs['mm']; // bits per symbol - $NN =& $rs['nn']; // the total number of symbols in a RS block - $ALPHA_TO =& $rs['alpha_to']; // the address of an array of NN elements to convert Galois field elements in index (log) form to polynomial form - $INDEX_OF =& $rs['index_of']; // the address of an array of NN elements to convert Galois field elements in polynomial form to index (log) form - $GENPOLY =& $rs['genpoly']; // an array of NROOTS+1 elements containing the generator polynomial in index form - $NROOTS =& $rs['nroots']; // the number of roots in the RS code generator polynomial, which is the same as the number of parity symbols in a block - $FCR =& $rs['fcr']; // first consecutive root, index form - $PRIM =& $rs['prim']; // primitive element, index form - $IPRIM =& $rs['iprim']; // prim-th root of 1, index form - $PAD =& $rs['pad']; // the number of pad symbols in a block - $A0 =& $NN; - $parity = array_fill(0, $NROOTS, 0); - for ($i=0; $i < ($NN - $NROOTS - $PAD); $i++) { - $feedback = $INDEX_OF[$data[$i] ^ $parity[0]]; - if ($feedback != $A0) { - // feedback term is non-zero - // This line is unnecessary when GENPOLY[NROOTS] is unity, as it must - // always be for the polynomials constructed by init_rs() - $feedback = $this->modnn($rs, $NN - $GENPOLY[$NROOTS] + $feedback); - for ($j=1; $j < $NROOTS; ++$j) { - $parity[$j] ^= $ALPHA_TO[$this->modnn($rs, $feedback + $GENPOLY[($NROOTS - $j)])]; - } - } - // Shift - array_shift($parity); - if ($feedback != $A0) { - array_push($parity, $ALPHA_TO[$this->modnn($rs, $feedback + $GENPOLY[0])]); - } else { - array_push($parity, 0); - } - } - return $parity; - } - - } // end QRcode class - -} // END OF "class_exists QRcode" -?> diff --git a/admin/phpqrcode/cache/frame_1.dat b/admin/phpqrcode/cache/frame_1.dat deleted file mode 100644 index be28fea..0000000 --- a/admin/phpqrcode/cache/frame_1.dat +++ /dev/null @@ -1,2 +0,0 @@ -xڝ E9u`"PńC牗T!0$ -EɲQmh۾9{kI" 9Ln)Ap־>^zmnŖ;mn \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_1.png b/admin/phpqrcode/cache/frame_1.png deleted file mode 100644 index 86ce6e9..0000000 Binary files a/admin/phpqrcode/cache/frame_1.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_10.dat b/admin/phpqrcode/cache/frame_10.dat deleted file mode 100644 index aff163f..0000000 Binary files a/admin/phpqrcode/cache/frame_10.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_10.png b/admin/phpqrcode/cache/frame_10.png deleted file mode 100644 index dbfcd70..0000000 Binary files a/admin/phpqrcode/cache/frame_10.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_11.dat b/admin/phpqrcode/cache/frame_11.dat deleted file mode 100644 index 95af68a..0000000 Binary files a/admin/phpqrcode/cache/frame_11.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_11.png b/admin/phpqrcode/cache/frame_11.png deleted file mode 100644 index c07c761..0000000 Binary files a/admin/phpqrcode/cache/frame_11.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_12.dat b/admin/phpqrcode/cache/frame_12.dat deleted file mode 100644 index 73228b3..0000000 Binary files a/admin/phpqrcode/cache/frame_12.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_12.png b/admin/phpqrcode/cache/frame_12.png deleted file mode 100644 index 8ba6782..0000000 Binary files a/admin/phpqrcode/cache/frame_12.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_13.dat b/admin/phpqrcode/cache/frame_13.dat deleted file mode 100644 index 2256f0e..0000000 Binary files a/admin/phpqrcode/cache/frame_13.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_13.png b/admin/phpqrcode/cache/frame_13.png deleted file mode 100644 index 6e49d35..0000000 Binary files a/admin/phpqrcode/cache/frame_13.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_14.dat b/admin/phpqrcode/cache/frame_14.dat deleted file mode 100644 index e9ae093..0000000 Binary files a/admin/phpqrcode/cache/frame_14.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_14.png b/admin/phpqrcode/cache/frame_14.png deleted file mode 100644 index efc36c0..0000000 Binary files a/admin/phpqrcode/cache/frame_14.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_15.dat b/admin/phpqrcode/cache/frame_15.dat deleted file mode 100644 index 1872781..0000000 Binary files a/admin/phpqrcode/cache/frame_15.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_15.png b/admin/phpqrcode/cache/frame_15.png deleted file mode 100644 index a9f416c..0000000 Binary files a/admin/phpqrcode/cache/frame_15.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_16.dat b/admin/phpqrcode/cache/frame_16.dat deleted file mode 100644 index 60af678..0000000 --- a/admin/phpqrcode/cache/frame_16.dat +++ /dev/null @@ -1 +0,0 @@ -xA E]sIX;n6`qW6`%A/3!!g̡1N) E|;>6⸏97$c]kkw1[mC͜cR>E,hʼnp#xFyWVWG3+˓S}Ğ#G8b^c^cpc&3YQ"vk9܇} ĿQL/ \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_16.png b/admin/phpqrcode/cache/frame_16.png deleted file mode 100644 index 6ac8fe8..0000000 Binary files a/admin/phpqrcode/cache/frame_16.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_17.dat b/admin/phpqrcode/cache/frame_17.dat deleted file mode 100644 index 87f0cf5..0000000 Binary files a/admin/phpqrcode/cache/frame_17.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_17.png b/admin/phpqrcode/cache/frame_17.png deleted file mode 100644 index 5b929ac..0000000 Binary files a/admin/phpqrcode/cache/frame_17.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_18.dat b/admin/phpqrcode/cache/frame_18.dat deleted file mode 100644 index bb7138c..0000000 --- a/admin/phpqrcode/cache/frame_18.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA -0E]օ,2;s&͚hO1&09OIv@DD &ىKXFv<dq9<%h Ys !(ds;~||b(Yůg#`KSĶsidߍLg:әt/gmkM3{4rTQes><әt3;H#љt3Y+oghٽlnF>i^#awm;g~pgNs{6zp' \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_18.png b/admin/phpqrcode/cache/frame_18.png deleted file mode 100644 index ee0d6a3..0000000 Binary files a/admin/phpqrcode/cache/frame_18.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_19.dat b/admin/phpqrcode/cache/frame_19.dat deleted file mode 100644 index 95e26ad..0000000 --- a/admin/phpqrcode/cache/frame_19.dat +++ /dev/null @@ -1,3 +0,0 @@ -xA - E.No7ћiiRN2W%x@ڜ' -u6.*S;}àT zrt%,};)ZLP$qgLdJ;w.]z#[͝Og" B}};w#1Gb;w_C+w@Dfu2N9R7|pWkk \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_19.png b/admin/phpqrcode/cache/frame_19.png deleted file mode 100644 index 20fddd8..0000000 Binary files a/admin/phpqrcode/cache/frame_19.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_2.dat b/admin/phpqrcode/cache/frame_2.dat deleted file mode 100644 index 7e42f31..0000000 --- a/admin/phpqrcode/cache/frame_2.dat +++ /dev/null @@ -1 +0,0 @@ -x͒ F{v& &Y+?Z1S'y!a815&۴HٞclF1#6 f6O7C֏8gIfB\DԻ( \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_2.png b/admin/phpqrcode/cache/frame_2.png deleted file mode 100644 index 9c150eb..0000000 Binary files a/admin/phpqrcode/cache/frame_2.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_20.dat b/admin/phpqrcode/cache/frame_20.dat deleted file mode 100644 index d5ecc1d..0000000 Binary files a/admin/phpqrcode/cache/frame_20.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_20.png b/admin/phpqrcode/cache/frame_20.png deleted file mode 100644 index 23a061d..0000000 Binary files a/admin/phpqrcode/cache/frame_20.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_21.dat b/admin/phpqrcode/cache/frame_21.dat deleted file mode 100644 index 1974dd9..0000000 --- a/admin/phpqrcode/cache/frame_21.dat +++ /dev/null @@ -1 +0,0 @@ -xA E]sIX;n6Upв]٘< i-eW)ŕ…H\jvqHL\6ЅrILܹ%@Vv(P4|Xngɝ~]Du1Us S\,2N?DKF-:eJ]p_,a0` X` w,` X]5 Y4{2vJs9)u۹,]^_7$_ \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_21.png b/admin/phpqrcode/cache/frame_21.png deleted file mode 100644 index 291598c..0000000 Binary files a/admin/phpqrcode/cache/frame_21.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_22.dat b/admin/phpqrcode/cache/frame_22.dat deleted file mode 100644 index 0f01802..0000000 --- a/admin/phpqrcode/cache/frame_22.dat +++ /dev/null @@ -1,3 +0,0 @@ -xA -0 E]{.]{{{ZBepwe@VERZ3"*2o4y)i#dbdF҅I"4WIu45x.ZS{8k={o.q[:帒qy -)t#N8dCj-OOG}:/:sz!)^IO- 7p 7$}>ɷ7p tssrs Vmҹ}R~7&?7ԦIbh{<Mi- \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_23.png b/admin/phpqrcode/cache/frame_23.png deleted file mode 100644 index b8f16ae..0000000 Binary files a/admin/phpqrcode/cache/frame_23.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_24.dat b/admin/phpqrcode/cache/frame_24.dat deleted file mode 100644 index 7b92e29..0000000 --- a/admin/phpqrcode/cache/frame_24.dat +++ /dev/null @@ -1 +0,0 @@ -xA EMX0;nVP4HSSxU3/O LiJ4V JC%6VR&DBHjDJ??BlcDZ'UXUޏ0ywįj똳3ścj{:GqGNv;笓J <]#8#8H'GqGtr:9#8#8ؓhNt_>teS^\gQe?vuo;>*wlm \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_24.png b/admin/phpqrcode/cache/frame_24.png deleted file mode 100644 index 397c64f..0000000 Binary files a/admin/phpqrcode/cache/frame_24.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_25.dat b/admin/phpqrcode/cache/frame_25.dat deleted file mode 100644 index ba12518..0000000 --- a/admin/phpqrcode/cache/frame_25.dat +++ /dev/null @@ -1,3 +0,0 @@ -xA - s낋]rxY51mMBG -*Sx|Ua5ƵZ-,1HPRjX5iG>WR/+uT廯 ӯ嗴u[Sa[kv5+5nJ%+VXbŊ߬u'SRtzZ++VXbŊٟٟٟ+VXb}Ŋ+VXVI+kq[toVZvoNVw}{r<ýR"R] Wr} \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_25.png b/admin/phpqrcode/cache/frame_25.png deleted file mode 100644 index 25bc445..0000000 Binary files a/admin/phpqrcode/cache/frame_25.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_26.dat b/admin/phpqrcode/cache/frame_26.dat deleted file mode 100644 index d34a73f..0000000 --- a/admin/phpqrcode/cache/frame_26.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA - Eօ,t77ћU E)i7*~cXEBFC6:&L,Mv.KgոYM>>mۚ?vmg?ұηdCUIkE\Msfafa>[sӈ9쬩ެ8b]LgEo w1 \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_26.png b/admin/phpqrcode/cache/frame_26.png deleted file mode 100644 index f4a6b39..0000000 Binary files a/admin/phpqrcode/cache/frame_26.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_27.dat b/admin/phpqrcode/cache/frame_27.dat deleted file mode 100644 index b4d9ffd..0000000 Binary files a/admin/phpqrcode/cache/frame_27.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_27.png b/admin/phpqrcode/cache/frame_27.png deleted file mode 100644 index 8419ec2..0000000 Binary files a/admin/phpqrcode/cache/frame_27.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_28.dat b/admin/phpqrcode/cache/frame_28.dat deleted file mode 100644 index 8cbaa19..0000000 Binary files a/admin/phpqrcode/cache/frame_28.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_28.png b/admin/phpqrcode/cache/frame_28.png deleted file mode 100644 index 7609d8e..0000000 Binary files a/admin/phpqrcode/cache/frame_28.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_29.dat b/admin/phpqrcode/cache/frame_29.dat deleted file mode 100644 index 5e4a711..0000000 --- a/admin/phpqrcode/cache/frame_29.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA a޺ @n7+*4!?J 抮]STf)sI"Ȕb0|"Luٸ,E1\6*uQ?>aυR-rn.ꯋ\T:*)|) , ,x_}:^RUoɢu~މX`XЏЏЏЏ_`X`XЏЏЏ_`X`XЏЏЏЏwbX`PU)D"c{z3<}^?bm잃a.] -{Q6uT,9 \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_29.png b/admin/phpqrcode/cache/frame_29.png deleted file mode 100644 index ffe072c..0000000 Binary files a/admin/phpqrcode/cache/frame_29.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_3.dat b/admin/phpqrcode/cache/frame_3.dat deleted file mode 100644 index 188d531..0000000 --- a/admin/phpqrcode/cache/frame_3.dat +++ /dev/null @@ -1 +0,0 @@ -x E{v& &Y+bk'ya:TXl޶$W+ӏv9}gR@H0YPBEm?s"bt2cn:ﺭ;YzQ7 \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_3.png b/admin/phpqrcode/cache/frame_3.png deleted file mode 100644 index 945ee7c..0000000 Binary files a/admin/phpqrcode/cache/frame_3.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_30.dat b/admin/phpqrcode/cache/frame_30.dat deleted file mode 100644 index 44cf3d3..0000000 Binary files a/admin/phpqrcode/cache/frame_30.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_30.png b/admin/phpqrcode/cache/frame_30.png deleted file mode 100644 index 75dbddd..0000000 Binary files a/admin/phpqrcode/cache/frame_30.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_31.dat b/admin/phpqrcode/cache/frame_31.dat deleted file mode 100644 index ce429d0..0000000 --- a/admin/phpqrcode/cache/frame_31.dat +++ /dev/null @@ -1 +0,0 @@ -xA a޺ &r4yķ!mV3Iv!Ҝ2i\NSS4EF2+65e/Ws]!?p=S~Đ?+x6r6y}ǴeR1-WllҌXz/>V櫷:ñA8-+mTbllltM&]ll&]Ill&]y 6` 6`iuyXWi\tz>.zk t77wJϔ4w҈85 \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_31.png b/admin/phpqrcode/cache/frame_31.png deleted file mode 100644 index b14d1fa..0000000 Binary files a/admin/phpqrcode/cache/frame_31.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_32.dat b/admin/phpqrcode/cache/frame_32.dat deleted file mode 100644 index aaa0808..0000000 --- a/admin/phpqrcode/cache/frame_32.dat +++ /dev/null @@ -1,2 +0,0 @@ -x - ־. Dl, Mz6Ç gcJD;'.AIqމI,IrYFk%DOy|EDD(L_Y>*ߚ?aOkL_<[c>c˘uLI%#0#0#otѢ}4fv_)Eph5R881#0#0itZ#0#0#0itZ#0#0#0itZl0#09q"HܜHQ"L5}-Y׾k`>z鸳4&p!!`:5 \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_32.png b/admin/phpqrcode/cache/frame_32.png deleted file mode 100644 index 58d42db..0000000 Binary files a/admin/phpqrcode/cache/frame_32.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_33.dat b/admin/phpqrcode/cache/frame_33.dat deleted file mode 100644 index a261375..0000000 --- a/admin/phpqrcode/cache/frame_33.dat +++ /dev/null @@ -1,14 +0,0 @@ -xA a޺@n7+*L++柮bb*LCc kHrjJ5Yi~0_TT}e>5b_w͟?\Rai+7W\wLUNL -+ -+jOkc\˩|%o} 8 -+ -+ -+ 3g -+ -+ -+3g@ -+ -+ -+:RXB9I=ko/Swؘٯ`gr_ٙYVSYzIefnmQoz > \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_33.png b/admin/phpqrcode/cache/frame_33.png deleted file mode 100644 index 924c728..0000000 Binary files a/admin/phpqrcode/cache/frame_33.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_34.dat b/admin/phpqrcode/cache/frame_34.dat deleted file mode 100644 index 7ceb025..0000000 Binary files a/admin/phpqrcode/cache/frame_34.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_34.png b/admin/phpqrcode/cache/frame_34.png deleted file mode 100644 index a477042..0000000 Binary files a/admin/phpqrcode/cache/frame_34.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_35.dat b/admin/phpqrcode/cache/frame_35.dat deleted file mode 100644 index 56bc3e2..0000000 Binary files a/admin/phpqrcode/cache/frame_35.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_35.png b/admin/phpqrcode/cache/frame_35.png deleted file mode 100644 index d29806c..0000000 Binary files a/admin/phpqrcode/cache/frame_35.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_36.dat b/admin/phpqrcode/cache/frame_36.dat deleted file mode 100644 index 282c60d..0000000 Binary files a/admin/phpqrcode/cache/frame_36.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_36.png b/admin/phpqrcode/cache/frame_36.png deleted file mode 100644 index 96ecb42..0000000 Binary files a/admin/phpqrcode/cache/frame_36.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_37.dat b/admin/phpqrcode/cache/frame_37.dat deleted file mode 100644 index 015c0f2..0000000 Binary files a/admin/phpqrcode/cache/frame_37.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_37.png b/admin/phpqrcode/cache/frame_37.png deleted file mode 100644 index fcc5162..0000000 Binary files a/admin/phpqrcode/cache/frame_37.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_38.dat b/admin/phpqrcode/cache/frame_38.dat deleted file mode 100644 index 71cf53e..0000000 --- a/admin/phpqrcode/cache/frame_38.dat +++ /dev/null @@ -1 +0,0 @@ -xA0ЎuA2;Нk(gytp9$D\e^'t-aIFMSkIŤ:7|LkN8N7i}i,[WgӴ?31iN}}=OM:4)SL2eʔ)SL#$ JJM:}]L٧SQL2eʔ)SL2աPt(:)SL2eʔ)S:ECq2eʔ)SL2eʔECѡ8O2eʔ)SL2eTCѡPL2eʔ)SL2ݓsJCIKԂi93n_ +Ri4\g;% }an \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_38.png b/admin/phpqrcode/cache/frame_38.png deleted file mode 100644 index 89238f3..0000000 Binary files a/admin/phpqrcode/cache/frame_38.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_39.dat b/admin/phpqrcode/cache/frame_39.dat deleted file mode 100644 index 53511f7..0000000 Binary files a/admin/phpqrcode/cache/frame_39.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_39.png b/admin/phpqrcode/cache/frame_39.png deleted file mode 100644 index 1dc9cd1..0000000 Binary files a/admin/phpqrcode/cache/frame_39.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_4.dat b/admin/phpqrcode/cache/frame_4.dat deleted file mode 100644 index 67b30e8..0000000 --- a/admin/phpqrcode/cache/frame_4.dat +++ /dev/null @@ -1 +0,0 @@ -x E=u pجQCOM'ˏ$ @3eF\FNXRyؾC{a8R Ńa2@qkH1(`cj~0ܨعnXGĀ \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_4.png b/admin/phpqrcode/cache/frame_4.png deleted file mode 100644 index b72f9e7..0000000 Binary files a/admin/phpqrcode/cache/frame_4.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_40.dat b/admin/phpqrcode/cache/frame_40.dat deleted file mode 100644 index 90d36dd..0000000 --- a/admin/phpqrcode/cache/frame_40.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA@Ь@o7`Qfe䕫PA><]߳bZn^AQ}[9^]ynajM܇K̘1cƌ3f̘1{W5}{7lMޚxI<Kαyl3f̘1cƌ3f̘1ۻٻ={αyl3f̘1cƌ3f̘1ۻٻ={αyl3f̘1cƌ3f̘1ۻٻ={αyl3f̘1cƌ3f̘1ۻٻ={αyl3f̘1cƌ3f̘SʑӒ7HK޼g\u_r'4[-]qL8ƝY1q!/(% \ No newline at end of file diff --git a/admin/phpqrcode/cache/frame_40.png b/admin/phpqrcode/cache/frame_40.png deleted file mode 100644 index 8034d86..0000000 Binary files a/admin/phpqrcode/cache/frame_40.png and /dev/null differ diff --git a/admin/phpqrcode/cache/frame_5.dat b/admin/phpqrcode/cache/frame_5.dat deleted file mode 100644 index d5dafe1..0000000 --- a/admin/phpqrcode/cache/frame_5.dat +++ /dev/null @@ -1 +0,0 @@ -x1 Eu7ЛZ|ND B0@R$l,->VKZ[I9+Es=ϤL1̄[FZU4?i<;7;P#W-[ݯ6ddddddc",;"sk摑Q&erw######L.摑Иy1^˲\3 v \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_117_0.dat b/admin/phpqrcode/cache/mask_0/mask_117_0.dat deleted file mode 100644 index 781c7f8..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_117_0.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA -0 }OrR,#3,o5Cq:;;wvNJZG=m} ѱ2iRkj_YYYYYYYYe_/WVVVVVVkd-Ϻ,#OZc]|{ž$ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_121_0.dat b/admin/phpqrcode/cache/mask_0/mask_121_0.dat deleted file mode 100644 index 68810c3..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_121_0.dat +++ /dev/null @@ -1 +0,0 @@ -x1 О/w YMS8>2SFOEcW\ۼ{cpKGBКmxhfffffff/s22W|*d1*5̬RWas\xm~8߮r0wjsdm&y \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_125_0.dat b/admin/phpqrcode/cache/mask_0/mask_125_0.dat deleted file mode 100644 index 2c73ef1..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_125_0.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA - н_TH`3AOL4 k(ewGW. #2} \Ygggggggggg_d>j^s;;;;;;;;;;'q;;;;;;;;;'˰qu_PYw{e=dG/ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_129_0.dat b/admin/phpqrcode/cache/mask_0/mask_129_0.dat deleted file mode 100644 index 812ee8a..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_129_0.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 - /*DE'hgt-}_pV \"b=s[J=8Dho۞' 0X ۴e0`  j" 0`Wf`^P0`2Ȁ  d07(Y/XLGby"pT \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_137_0.dat b/admin/phpqrcode/cache/mask_0/mask_137_0.dat deleted file mode 100644 index f6d993b..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_137_0.dat +++ /dev/null @@ -1 +0,0 @@ -x1 О/+FZ?J L7Ժ*Ba%L~˻ʓCJYIWJ .K]R0a„ $INTwlLaL0a„ &Ld@PO0a„ &L0e@P?a„ &L0aDe@ &L0aMIlL&)dlgacR<$v,ɺ?U2] \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_141_0.dat b/admin/phpqrcode/cache/mask_0/mask_141_0.dat deleted file mode 100644 index 8c685c8..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_141_0.dat +++ /dev/null @@ -1,2 +0,0 @@ -x= -0 нi9'EDx͘%I9+E{$m^&uS"D6ڟ]98UMbҾY[2拉Ĉ#F1bĈ%iRN潝ѳ#;#F1bĈN1i#F1bĈ#FtZ}Nk1bĈ#F1bktZ;#F1bFV-u"IoD-*7uj>bMV+ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_149_0.dat b/admin/phpqrcode/cache/mask_0/mask_149_0.dat deleted file mode 100644 index d258350..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_149_0.dat +++ /dev/null @@ -1,3 +0,0 @@ -xA - н_MEQXP৞.|94e{JLv#^n[ ?; -ZIV-*w˒1*+VXbŊXgwqX}JRYbŊ+VXbeΠwfeΠ^bŊ+VXbʜAʜAbŊ+VXbŊ9ٜAbŊ+VXbŊl0*0Tj`?Ϊ;X=zZr* \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_153_0.dat b/admin/phpqrcode/cache/mask_0/mask_153_0.dat deleted file mode 100644 index fc79e9e..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_153_0.dat +++ /dev/null @@ -1 +0,0 @@ -x1 Н/礑h&F`Ҽ@I;PZ^X͌mf.=5 [if-R+!wr˜g\j̘1cƌ3f̘1cfo.2?1z `ƌ3f̘1cƌzƌ3f̘1cƌ3fztf3f̘1cƌ3f̘kk030cƌ3f̘1c9;Ď`vf͚̆ZϘW9 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_157_0.dat b/admin/phpqrcode/cache/mask_0/mask_157_0.dat deleted file mode 100644 index ad749f3..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_157_0.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA - н_QRY k*q͵=j7~nN.p%ڵsi.رcǎ;vر{.-W2={mgy+رcǎ;vɳ2;yּcǎ;vرcNɳ;vرcǎ;v2I9+DyI4ˠ5:Wvdqߜܴ<d2x%[U%2]&K,Ydɒ%ˡ,S՗r2yd=,k_{Xdɒ%K,Yd)0m,Ydɒ%K,Yd)0m,Ydɒ%K,Yme,e%K,Ydɒ%K,eq Ò%K,Ydɒe:I9EQ=Ls I{ZtR}Sn:|R[?_*SL2eʔ)SL&ϦI O2O2eʔ)SL2e*C1PPSL2eʔ)SLP22)SL2eʔ)SLe(}2)SL2eʔ)SLe(}2)SL2eʔ)Sic7;"ޙFͦސٙvL ^2}oO'r \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_173_0.dat b/admin/phpqrcode/cache/mask_0/mask_173_0.dat deleted file mode 100644 index 5ef85e7..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_173_0.dat +++ /dev/null @@ -1 +0,0 @@ -x10ޯT [4v2ƽok݇;Ӳ]f֞dljlG0n+߻mG˖-[lٲe"Y}oV[lٲe˖-[lٲeհՃ[2lٲe˖-[lٲeհՃ[2lٲe˖-[lٲeհՃ[lٲe˖-[lٲeValٲe˖-[lٲef[BmаE;N-ۜT/rl?* \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_177_0.dat b/admin/phpqrcode/cache/mask_0/mask_177_0.dat deleted file mode 100644 index 78a26a7..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_177_0.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 -0>I9+?߁iև d̹xֈxN/է|{ظ8d0h=cFf̘1cƌ3f̘qq=w6;l4cƕ<nj3f̘1cƌ3fXһ1ֻcƌ3f̘1cƌ3fXbwnj3f̘1cƌ3f̘M'X&1cƌ3f̘1cƌ3ֻnn1cƌ3f̘1cƌÍ3U< \7+(<OƌΊnj4@ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_21_0.dat b/admin/phpqrcode/cache/mask_0/mask_21_0.dat deleted file mode 100644 index 368c994..0000000 Binary files a/admin/phpqrcode/cache/mask_0/mask_21_0.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_0/mask_25_0.dat b/admin/phpqrcode/cache/mask_0/mask_25_0.dat deleted file mode 100644 index e4a5b6d..0000000 Binary files a/admin/phpqrcode/cache/mask_0/mask_25_0.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_0/mask_29_0.dat b/admin/phpqrcode/cache/mask_0/mask_29_0.dat deleted file mode 100644 index 74a216b..0000000 Binary files a/admin/phpqrcode/cache/mask_0/mask_29_0.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_0/mask_33_0.dat b/admin/phpqrcode/cache/mask_0/mask_33_0.dat deleted file mode 100644 index 2ec712a..0000000 Binary files a/admin/phpqrcode/cache/mask_0/mask_33_0.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_0/mask_37_0.dat b/admin/phpqrcode/cache/mask_0/mask_37_0.dat deleted file mode 100644 index 1588cfc..0000000 Binary files a/admin/phpqrcode/cache/mask_0/mask_37_0.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_0/mask_41_0.dat b/admin/phpqrcode/cache/mask_0/mask_41_0.dat deleted file mode 100644 index e369027..0000000 Binary files a/admin/phpqrcode/cache/mask_0/mask_41_0.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_0/mask_45_0.dat b/admin/phpqrcode/cache/mask_0/mask_45_0.dat deleted file mode 100644 index 452f126..0000000 Binary files a/admin/phpqrcode/cache/mask_0/mask_45_0.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_0/mask_49_0.dat b/admin/phpqrcode/cache/mask_0/mask_49_0.dat deleted file mode 100644 index fdd2aac..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_49_0.dat +++ /dev/null @@ -1,2 +0,0 @@ -xK E9o#?H/6g$-,X] -xݘ; X԰9<Ѻq2AfH7/5We{#fި?4=N > \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_53_0.dat b/admin/phpqrcode/cache/mask_0/mask_53_0.dat deleted file mode 100644 index 572d279..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_53_0.dat +++ /dev/null @@ -1,2 +0,0 @@ -xK -@!йoQϺ:(m&s-6Z{m4YX.F٭XZij=:έ֋b忑VH 8 #[Y^Xe \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_57_0.dat b/admin/phpqrcode/cache/mask_0/mask_57_0.dat deleted file mode 100644 index ea81e6d..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_57_0.dat +++ /dev/null @@ -1,4 +0,0 @@ -xA - {^s=YL՚ ( -ouj)  -Z7yv,ԴwVQ iGiҤDfەwo4ѤoLLȼ}4 h \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_61_0.dat b/admin/phpqrcode/cache/mask_0/mask_61_0.dat deleted file mode 100644 index 93d2444..0000000 Binary files a/admin/phpqrcode/cache/mask_0/mask_61_0.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_0/mask_65_0.dat b/admin/phpqrcode/cache/mask_0/mask_65_0.dat deleted file mode 100644 index df29d7b..0000000 Binary files a/admin/phpqrcode/cache/mask_0/mask_65_0.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_0/mask_69_0.dat b/admin/phpqrcode/cache/mask_0/mask_69_0.dat deleted file mode 100644 index 8a2cfbd..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_69_0.dat +++ /dev/null @@ -1 +0,0 @@ -xK =_+mBd|Q"s+1"),=Ea T"ŐnE-3 ,KYw=ZZT .,K1#֞!Ŋ+V嬪.2XbŊ+VX.kBzwձ̀gkYZ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_89_0.dat b/admin/phpqrcode/cache/mask_0/mask_89_0.dat deleted file mode 100644 index aaa4c52..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_89_0.dat +++ /dev/null @@ -1 +0,0 @@ -x1 ὧi9'Hl?L^"&M?bq?˸,9!z]VScƌ3_c!`n3f̘1č 3f̘1/f>.Uc˻; 2;Y+7 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_93_0.dat b/admin/phpqrcode/cache/mask_0/mask_93_0.dat deleted file mode 100644 index e218fa0..0000000 --- a/admin/phpqrcode/cache/mask_0/mask_93_0.dat +++ /dev/null @@ -1,3 +0,0 @@ -xK - EyV,OmޠrPH0{2bc{tQ] -{Q{{弬֒ǎ;v_ڳ}L}l߱cǎ;v̑̑̑رcǎ.Legw3qeѾ@i \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_0/mask_97_0.dat b/admin/phpqrcode/cache/mask_0/mask_97_0.dat deleted file mode 100644 index 74ac719..0000000 Binary files a/admin/phpqrcode/cache/mask_0/mask_97_0.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_101_1.dat b/admin/phpqrcode/cache/mask_1/mask_101_1.dat deleted file mode 100644 index ec939b5..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_101_1.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 - н\QEd  1N<#Ֆ-7u.lԦeiXXXXXRZVVeIo1,,,,,v%?gaaaaY K&K=/+ۍ˱ގ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_105_1.dat b/admin/phpqrcode/cache/mask_1/mask_105_1.dat deleted file mode 100644 index e1f5c99..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_105_1.dat +++ /dev/null @@ -1 +0,0 @@ -x1 Ӕ_Υb KB?"*#WʘtgӎJqUM9TLLvǤLLLLLLzgG01111yiߘ4m=՛n+2 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_109_1.dat b/admin/phpqrcode/cache/mask_1/mask_109_1.dat deleted file mode 100644 index 7e0d6d1..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_109_1.dat +++ /dev/null @@ -1 +0,0 @@ -xֱ >ӘK}:!iY'*3]fsmb[JƶŖK9}cccccc'u.6Ʀs6666R[^g{/lٷ 7͂ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_113_1.dat b/admin/phpqrcode/cache/mask_1/mask_113_1.dat deleted file mode 100644 index 1dd666d..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_113_1.dat +++ /dev/null @@ -1 +0,0 @@ -x1  -8fL(pBlDM9";-;?1p{\%-3:@ad4*Nadddddd########c]751xYu \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_117_1.dat b/admin/phpqrcode/cache/mask_1/mask_117_1.dat deleted file mode 100644 index 8921f64..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_117_1.dat +++ /dev/null @@ -1,2 +0,0 @@ -xֻ >ӘK$^ 8YQSV'z8jzʇ^]סekXYYYYYYYjݵ# -+yeeeeeeee#WVVVVVVVV;"+yeeeeeeel'e;b&^9{/J$p \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_121_1.dat b/admin/phpqrcode/cache/mask_1/mask_121_1.dat deleted file mode 100644 index 64bd8ba..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_121_1.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 - н\CPbїE$DdƩYtڅλ0$ήꝝga7yٯ痽Y??{{D \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_129_1.dat b/admin/phpqrcode/cache/mask_1/mask_129_1.dat deleted file mode 100644 index 62cd1c9..0000000 Binary files a/admin/phpqrcode/cache/mask_1/mask_129_1.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_133_1.dat b/admin/phpqrcode/cache/mask_1/mask_133_1.dat deleted file mode 100644 index 18d68dc..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_133_1.dat +++ /dev/null @@ -1 +0,0 @@ -x1 Ӕ_΅hh|"zۉ-*dNHQĢR ,X`c9Y(na_` ,X,X,X` #:8  ,X`Bd¾` ,X|ϢY\X; 7-; ` \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_137_1.dat b/admin/phpqrcode/cache/mask_1/mask_137_1.dat deleted file mode 100644 index 284d7be..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_137_1.dat +++ /dev/null @@ -1,3 +0,0 @@ -x1 -0 ӤKh]D,-t #ڌQ[T Ks7_?9|B&X^L0a„&3„M&L0a„ &2D4c0a„ &LȀЌe„ &L0abwȀf,&L0a„7&y2anoL<01O - \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_141_1.dat b/admin/phpqrcode/cache/mask_1/mask_141_1.dat deleted file mode 100644 index 83220dd..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_141_1.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 - >946)3$`s uʮ>Wd )g'M{3\d6ubذaÆ 6lؼn]Nذ9FްaÆ 6lذa3a#oذaÆ 6lذذ5e16lذaÆ ]Sbk6lذaÆ mͤ;CcfIdsG \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_145_1.dat b/admin/phpqrcode/cache/mask_1/mask_145_1.dat deleted file mode 100644 index 6a9950f..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_145_1.dat +++ /dev/null @@ -1 +0,0 @@ -x!0@k 4a)q2i.YCUO{35UZFn]fN>bdwtzJF}F1bĈ#F(F6r1bĈ#F1E1ilF1bĈ#FtF#F1bĈ#FtZ}##F1bĈleHGܣ@ٝ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_149_1.dat b/admin/phpqrcode/cache/mask_1/mask_149_1.dat deleted file mode 100644 index 02a3cdc..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_149_1.dat +++ /dev/null @@ -1 +0,0 @@ -x1 Ӕ_΅qH_Xci#Gd̘Ք՛gLU^ݮVR>dKVXbŊ+VXeoXJ_bŊ+VXb;ݙ+}Ŋ+VXbŊ+VAVngŊ+VXbŊ}+ +VXbŊVj>hewf*`uTq \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_153_1.dat b/admin/phpqrcode/cache/mask_1/mask_153_1.dat deleted file mode 100644 index 2abfca2..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_153_1.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 -0\9btEc'HH9efߞmffM#.̘1cƌ3f̘1cf73f̘g̘1cƌ3f̘1co2c]?3f̘1cƌ3f5Mf3f̘1cƌ3f̘17utf3f̘1cƌ3f̘=lj3>V \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_157_1.dat b/admin/phpqrcode/cache/mask_1/mask_157_1.dat deleted file mode 100644 index 17344b8..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_157_1.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 - >94Sd/51V)SkJv7eGcǎ;vرc]Zٱc'رcǎ;vر+رg;vرcǎ;}V`N+رcǎ;v:;v;vرcǎ;;}Vޱcǎ;vص'vz#;]klwoA` \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_161_1.dat b/admin/phpqrcode/cache/mask_1/mask_161_1.dat deleted file mode 100644 index 669ade1..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_161_1.dat +++ /dev/null @@ -1 +0,0 @@ -x10_΅Xš yi~Qbkvp7'M u=]([ 2dȐ +\' 2 2dȐ!C 2s0/3d() 2dȐ!C 241dh 2dȐ!C 2dhcȐSL2eʔ)SL2M SLSL2eʔ)SL2M}LSSL2eʔ)SLeSy)SŔ)SL2eʔ)S;ٔ)S;)SL2eʔ)Sv()Sv()SL2eʔ)SLdT6}a*3mljmzC' \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_173_1.dat b/admin/phpqrcode/cache/mask_1/mask_173_1.dat deleted file mode 100644 index 436918c..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_173_1.dat +++ /dev/null @@ -1 +0,0 @@ -x1 Ӕ_Υ''@y]X1?"g:1犝fn˶˻mm.?lٲe˖-F>glٲ2lٲe˖-[lٲeO`˖e˖-[lٲe˖-[l lٲlٲe˖-[lٲeVO`˖e˖-[lٲe˖-[z0}[z0y˖-[lٲe˖-[Ee[hOVWö=t*| \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_177_1.dat b/admin/phpqrcode/cache/mask_1/mask_177_1.dat deleted file mode 100644 index 12e2e52..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_177_1.dat +++ /dev/null @@ -1 +0,0 @@ -x1 Ep0X,a#r}6}nj~\8ƌ3f̘1cƌ7{3f,y3f̘1cƌ3fX_`X&3f̘1cƌ3f̘M_1cy̘1cƌ3f̘1cƌ+3f,y3f̘1cƌ3fX_bX&3f̘1cƌ3fx2dX'x[cy| 3 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_21_1.dat b/admin/phpqrcode/cache/mask_1/mask_21_1.dat deleted file mode 100644 index f87e0a1..0000000 Binary files a/admin/phpqrcode/cache/mask_1/mask_21_1.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_25_1.dat b/admin/phpqrcode/cache/mask_1/mask_25_1.dat deleted file mode 100644 index 3a225e3..0000000 Binary files a/admin/phpqrcode/cache/mask_1/mask_25_1.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_29_1.dat b/admin/phpqrcode/cache/mask_1/mask_29_1.dat deleted file mode 100644 index 0a1cb3b..0000000 Binary files a/admin/phpqrcode/cache/mask_1/mask_29_1.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_33_1.dat b/admin/phpqrcode/cache/mask_1/mask_33_1.dat deleted file mode 100644 index 318949d..0000000 Binary files a/admin/phpqrcode/cache/mask_1/mask_33_1.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_37_1.dat b/admin/phpqrcode/cache/mask_1/mask_37_1.dat deleted file mode 100644 index 5bd9e3a..0000000 Binary files a/admin/phpqrcode/cache/mask_1/mask_37_1.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_41_1.dat b/admin/phpqrcode/cache/mask_1/mask_41_1.dat deleted file mode 100644 index 52e9e58..0000000 Binary files a/admin/phpqrcode/cache/mask_1/mask_41_1.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_45_1.dat b/admin/phpqrcode/cache/mask_1/mask_45_1.dat deleted file mode 100644 index b35c567..0000000 Binary files a/admin/phpqrcode/cache/mask_1/mask_45_1.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_49_1.dat b/admin/phpqrcode/cache/mask_1/mask_49_1.dat deleted file mode 100644 index d20d717..0000000 Binary files a/admin/phpqrcode/cache/mask_1/mask_49_1.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_53_1.dat b/admin/phpqrcode/cache/mask_1/mask_53_1.dat deleted file mode 100644 index a676d7d..0000000 Binary files a/admin/phpqrcode/cache/mask_1/mask_53_1.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_57_1.dat b/admin/phpqrcode/cache/mask_1/mask_57_1.dat deleted file mode 100644 index 896ed43..0000000 Binary files a/admin/phpqrcode/cache/mask_1/mask_57_1.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_1/mask_61_1.dat b/admin/phpqrcode/cache/mask_1/mask_61_1.dat deleted file mode 100644 index 4165a4b..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_61_1.dat +++ /dev/null @@ -1 +0,0 @@ -x30CbpPi`@&H^nadQG{n_.4Iy킎`)-5*(of[sm}6YM ;;;;;G{zطz1vw}=wuL%?"=~ei \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_1/mask_97_1.dat b/admin/phpqrcode/cache/mask_1/mask_97_1.dat deleted file mode 100644 index 24fa60f..0000000 --- a/admin/phpqrcode/cache/mask_1/mask_97_1.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 -0н1\tncKD"H$DH$D"Q&WerH$D"*x[(?/'nd \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_117_2.dat b/admin/phpqrcode/cache/mask_2/mask_117_2.dat deleted file mode 100644 index b4dcce4..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_117_2.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 - >94!m dOs\0X,la5#E>Z[ַRT*JR?Q-*T*JR?UW*JRTݟ+JRԤ~m5;S&+ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_121_2.dat b/admin/phpqrcode/cache/mask_2/mask_121_2.dat deleted file mode 100644 index a2a0097..0000000 Binary files a/admin/phpqrcode/cache/mask_2/mask_121_2.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_2/mask_125_2.dat b/admin/phpqrcode/cache/mask_2/mask_125_2.dat deleted file mode 100644 index 0ea40fd..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_125_2.dat +++ /dev/null @@ -1 +0,0 @@ -x! PӔ_@ U(kp@^Mڮ5-:VF_\t:NtyNqt:NtG;Nt:.8:NtzA}yNq;+n& \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_129_2.dat b/admin/phpqrcode/cache/mask_2/mask_129_2.dat deleted file mode 100644 index bf04839..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_129_2.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 -0н_KVڡ'.!w]A0X~  !࣠fK# xFy4 vey@^+  ~  L#veI \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_133_2.dat b/admin/phpqrcode/cache/mask_2/mask_133_2.dat deleted file mode 100644 index 9e78b6d..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_133_2.dat +++ /dev/null @@ -1,10 +0,0 @@ -x1 - н&`LQ-g=Aqbʪl fƄȚ44& )OȚYF4444444444c4~9S:3ЌטpǮ> \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_145_2.dat b/admin/phpqrcode/cache/mask_2/mask_145_2.dat deleted file mode 100644 index 9ff2bbf..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_145_2.dat +++ /dev/null @@ -1,4 +0,0 @@ -x1 - нr] -,tQ^&C~ -щj~mɾ.FgMDDDDDDDDDDDST׈DHdZL+ɴDDDDDDDDDDD2-'"""""""":BתEYDd \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_149_2.dat b/admin/phpqrcode/cache/mask_2/mask_149_2.dat deleted file mode 100644 index d52e048..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_149_2.dat +++ /dev/null @@ -1 +0,0 @@ -x;@/gcaGBXB'-ˆouէUQdRVOmT*ǫ;;j廝Ee2PQQQQQQQQQQQ TTTTTTTTTTTTr33R &Tskz_e2P=d \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_153_2.dat b/admin/phpqrcode/cache/mask_2/mask_153_2.dat deleted file mode 100644 index 3b06041..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_153_2.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 -0 Ӥ8ZP!BZu賶"bu*)]MFFFFFFFFFFFF%= #ddddddddddddr ot2yFFFFFFFFFFFF& #k5L 2222222222(Y7"d@H \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_157_2.dat b/admin/phpqrcode/cache/mask_2/mask_157_2.dat deleted file mode 100644 index 2baf535..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_157_2.dat +++ /dev/null @@ -1,3 +0,0 @@ -x1 -0>s6MqUH1X&U̘f/u-'.[KGGGGGGGGGGH|NG(ttttttttttNF;::::::::::}Nz$ ->n A#^AG(t =3{ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_161_2.dat b/admin/phpqrcode/cache/mask_2/mask_161_2.dat deleted file mode 100644 index d2df759..0000000 Binary files a/admin/phpqrcode/cache/mask_2/mask_161_2.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_2/mask_165_2.dat b/admin/phpqrcode/cache/mask_2/mask_165_2.dat deleted file mode 100644 index 2e6cd7c..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_165_2.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 -0 Ӥ?BVUG%*+_fs MIIIIIIIII2d;l4()))))))))))eqJنIDIIIIIIIIIII)۠mPRRRRRRRRRRR6l JJJJJJJJJJJJن}RaQRRRRRRRRRRNeK?R퐔͔&W3U \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_169_2.dat b/admin/phpqrcode/cache/mask_2/mask_169_2.dat deleted file mode 100644 index 4052062..0000000 Binary files a/admin/phpqrcode/cache/mask_2/mask_169_2.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_2/mask_173_2.dat b/admin/phpqrcode/cache/mask_2/mask_173_2.dat deleted file mode 100644 index 0a30ba5..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_173_2.dat +++ /dev/null @@ -1 +0,0 @@ -x+@ Pift:>y &d U߬S[]5Z;a5V۞A[Z˴VՃI0ZZZZZZZZZZZZZZ=-Lhi`VFK?ݧhioJ0}o \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_177_2.dat b/admin/phpqrcode/cache/mask_2/mask_177_2.dat deleted file mode 100644 index d2c52f9..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_177_2.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 - E>Y4V$~ ,C&U;Ook5bϙGx9%&&&&&&&&&&&n$OL|v#&&&&&&&&&&&&&bbݍXw#&l7bbbbbbbbbbbbbbM"l7bbbbbbbbbbbbbbMa!&݈3)U*F> \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_45_2.dat b/admin/phpqrcode/cache/mask_2/mask_45_2.dat deleted file mode 100644 index ad44ff1..0000000 Binary files a/admin/phpqrcode/cache/mask_2/mask_45_2.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_2/mask_49_2.dat b/admin/phpqrcode/cache/mask_2/mask_49_2.dat deleted file mode 100644 index 6e8edff..0000000 Binary files a/admin/phpqrcode/cache/mask_2/mask_49_2.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_2/mask_53_2.dat b/admin/phpqrcode/cache/mask_2/mask_53_2.dat deleted file mode 100644 index 682cae2..0000000 Binary files a/admin/phpqrcode/cache/mask_2/mask_53_2.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_2/mask_57_2.dat b/admin/phpqrcode/cache/mask_2/mask_57_2.dat deleted file mode 100644 index 66a5c05..0000000 Binary files a/admin/phpqrcode/cache/mask_2/mask_57_2.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_2/mask_61_2.dat b/admin/phpqrcode/cache/mask_2/mask_61_2.dat deleted file mode 100644 index 77d3815..0000000 Binary files a/admin/phpqrcode/cache/mask_2/mask_61_2.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_2/mask_65_2.dat b/admin/phpqrcode/cache/mask_2/mask_65_2.dat deleted file mode 100644 index caf184a..0000000 Binary files a/admin/phpqrcode/cache/mask_2/mask_65_2.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_2/mask_69_2.dat b/admin/phpqrcode/cache/mask_2/mask_69_2.dat deleted file mode 100644 index 6a3801b..0000000 Binary files a/admin/phpqrcode/cache/mask_2/mask_69_2.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_2/mask_73_2.dat b/admin/phpqrcode/cache/mask_2/mask_73_2.dat deleted file mode 100644 index 74945b7..0000000 Binary files a/admin/phpqrcode/cache/mask_2/mask_73_2.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_2/mask_77_2.dat b/admin/phpqrcode/cache/mask_2/mask_77_2.dat deleted file mode 100644 index 903cba4..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_77_2.dat +++ /dev/null @@ -1 +0,0 @@ -x1 н_CM>Gt ѫe+FWZEm&gއFѶhF+t/FYvFj[*7a \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_81_2.dat b/admin/phpqrcode/cache/mask_2/mask_81_2.dat deleted file mode 100644 index 17a9ac2..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_81_2.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 -0н_KҩVi!O\"A]:xbW1uȦ&_T ΋6H$U^D~bׯb=gX \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_85_2.dat b/admin/phpqrcode/cache/mask_2/mask_85_2.dat deleted file mode 100644 index 72c74ff..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_85_2.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 -0=1\B7O$A0$8Wwjguu槊RT*uS֧JRTJRRޢN浘V \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_2/mask_89_2.dat b/admin/phpqrcode/cache/mask_2/mask_89_2.dat deleted file mode 100644 index 06c9a4f..0000000 --- a/admin/phpqrcode/cache/mask_2/mask_89_2.dat +++ /dev/null @@ -1 +0,0 @@ -xٱ 0 >/&E*cQqŃ zf$rM)_%s_d3KO1^aL,$H"$KzRPt[I&X9$H"$I$ysI$DI$ɓI$I$Dɍ%es!=LAZ5'̓IVrn/2oƅ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_113_3.dat b/admin/phpqrcode/cache/mask_3/mask_113_3.dat deleted file mode 100644 index 023b273..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_113_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA -0 D}NrnDFj2KCt?WݲZi.qoP %Smj7ަ:*N:@:***fW9d2*j*}S@`*j৪6Jlѿ}}էTUa24hnt \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_117_3.dat b/admin/phpqrcode/cache/mask_3/mask_117_3.dat deleted file mode 100644 index 79cc04d..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_117_3.dat +++ /dev/null @@ -1,4 +0,0 @@ -x1 -0 ]Q.xIB$?~!z#E)RHZ@bl-)ݿ<ߧ*OUR"5&5*ie J]+ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_145_3.dat b/admin/phpqrcode/cache/mask_3/mask_145_3.dat deleted file mode 100644 index 338b7e7..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_145_3.dat +++ /dev/null @@ -1,3 +0,0 @@ -x -@|:^ Jy̡yMj-' -9VS֦K9e)PyUwe-m jԨQF5jԨRi٫F4_wk}0+jRBRF5jԨQeOMBJHjԨQF5jwP״˪IH I5jԨQFͳc w5jԨQF:zS*2UZ_C*e_OZ%dIȯb \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_149_3.dat b/admin/phpqrcode/cache/mask_3/mask_149_3.dat deleted file mode 100644 index 30bc5fa..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_149_3.dat +++ /dev/null @@ -1 +0,0 @@ -xA0}Oܠ⦐H頯'Z2{oV|Ι%>yR{!8ÂI+JpI|#f5κ[P A $H Q})&X{ט+Wb`I)5%d \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_153_3.dat b/admin/phpqrcode/cache/mask_3/mask_153_3.dat deleted file mode 100644 index 89cdec0..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_153_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA -0}Ns˹)7mJ,}8X=cW^GeN}o%uJV/{%O>}ӧO}K~O>}ӧO>Q=/ї>}ӧO>}u{ח>}ӧO>}u{蟪/%?}ӧO>}ׯ.N4჏VMmRt(1| \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_177_3.dat b/admin/phpqrcode/cache/mask_3/mask_177_3.dat deleted file mode 100644 index 9586979..0000000 Binary files a/admin/phpqrcode/cache/mask_3/mask_177_3.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_3/mask_21_3.dat b/admin/phpqrcode/cache/mask_3/mask_21_3.dat deleted file mode 100644 index bcb4eec..0000000 Binary files a/admin/phpqrcode/cache/mask_3/mask_21_3.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_3/mask_25_3.dat b/admin/phpqrcode/cache/mask_3/mask_25_3.dat deleted file mode 100644 index 0ffc375..0000000 Binary files a/admin/phpqrcode/cache/mask_3/mask_25_3.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_3/mask_29_3.dat b/admin/phpqrcode/cache/mask_3/mask_29_3.dat deleted file mode 100644 index 6150ac1..0000000 Binary files a/admin/phpqrcode/cache/mask_3/mask_29_3.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_3/mask_33_3.dat b/admin/phpqrcode/cache/mask_3/mask_33_3.dat deleted file mode 100644 index 6053b5e..0000000 Binary files a/admin/phpqrcode/cache/mask_3/mask_33_3.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_3/mask_37_3.dat b/admin/phpqrcode/cache/mask_3/mask_37_3.dat deleted file mode 100644 index 5dea5b9..0000000 Binary files a/admin/phpqrcode/cache/mask_3/mask_37_3.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_3/mask_41_3.dat b/admin/phpqrcode/cache/mask_3/mask_41_3.dat deleted file mode 100644 index ca9ddc2..0000000 Binary files a/admin/phpqrcode/cache/mask_3/mask_41_3.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_3/mask_45_3.dat b/admin/phpqrcode/cache/mask_3/mask_45_3.dat deleted file mode 100644 index 3daad97..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_45_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -xK - DsFJ(&)0dЇFg![8=&iaD)d8&Aլa 1'II׳79 ex߾ I&֝CuJy \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_49_3.dat b/admin/phpqrcode/cache/mask_3/mask_49_3.dat deleted file mode 100644 index 7f6508d..0000000 Binary files a/admin/phpqrcode/cache/mask_3/mask_49_3.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_3/mask_53_3.dat b/admin/phpqrcode/cache/mask_3/mask_53_3.dat deleted file mode 100644 index 8800bea..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_53_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -xK -0Ds ! -(.Bp&|"-t&`qQ-"9_+)Be/H8D%a~}spKFN=,;;a^t4\FSN \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_57_3.dat b/admin/phpqrcode/cache/mask_3/mask_57_3.dat deleted file mode 100644 index 4e1e5da..0000000 Binary files a/admin/phpqrcode/cache/mask_3/mask_57_3.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_3/mask_61_3.dat b/admin/phpqrcode/cache/mask_3/mask_61_3.dat deleted file mode 100644 index bf1a3cc..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_61_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA -0fz4-%*dp!yZܫu(~=&ۓ)R2"/"<9FΊ=rb"/rw"2B#3-0-KW \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_65_3.dat b/admin/phpqrcode/cache/mask_3/mask_65_3.dat deleted file mode 100644 index 8589208..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_65_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -xQ - D4\?R ,!O-Nv1:cZu "UMÕF ~jK-la[^q^Q\=o-laZpUB @IKJzɢ|1Í  \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_69_3.dat b/admin/phpqrcode/cache/mask_3/mask_69_3.dat deleted file mode 100644 index 55318a8..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_69_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -x -0 {&2'd l=,Fy;$쇤WE-R:%T,O2g"",Ȣ/DyĈɧ{O䮳",:NvEWN#(&,,]x؅ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_73_3.dat b/admin/phpqrcode/cache/mask_3/mask_73_3.dat deleted file mode 100644 index 15be77f..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_73_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -xQ -0 C{g;JJ?dԬK=RasJhTJ6exka\$nIE,-/XB*х=wee4t̒tLщtt߫b gFf qoddn-? \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_77_3.dat b/admin/phpqrcode/cache/mask_3/mask_77_3.dat deleted file mode 100644 index ec78280..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_77_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA -0 &BiRaK"t`I@|fXyilE:Sza18GifK*?:YC1쌞졘(ቷJ*jl*TRIKR^ؙks)c)c)JZa \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_81_3.dat b/admin/phpqrcode/cache/mask_3/mask_81_3.dat deleted file mode 100644 index 47bc0f7..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_81_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 - F=\,JGAġhj>#3X:kԹ\FM Jhu3>TZ{PSgP'kVjժU_ۯUV=P oO:Wҝj[Wxm 5 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_85_3.dat b/admin/phpqrcode/cache/mask_3/mask_85_3.dat deleted file mode 100644 index 02c4f8c..0000000 Binary files a/admin/phpqrcode/cache/mask_3/mask_85_3.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_3/mask_89_3.dat b/admin/phpqrcode/cache/mask_3/mask_89_3.dat deleted file mode 100644 index 2b4cb59..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_89_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 ὧ) *.@U |eŵ6ۢw5*) oiK4nk>1}d>@ 4XYCo ۡ1<AhFt - 4@51Wr>7G}}x7|NgN \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_93_3.dat b/admin/phpqrcode/cache/mask_3/mask_93_3.dat deleted file mode 100644 index b4cc8a9..0000000 --- a/admin/phpqrcode/cache/mask_3/mask_93_3.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA -0 D}NrnJɪQ~B06na<<ׇe6MRCP L̓i9M 2 LkŮdDv*"aXjBdAddZTdAdqY0exqeN&WVQvc \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_3/mask_97_3.dat b/admin/phpqrcode/cache/mask_3/mask_97_3.dat deleted file mode 100644 index 7adc9eb..0000000 Binary files a/admin/phpqrcode/cache/mask_3/mask_97_3.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_4/mask_101_4.dat b/admin/phpqrcode/cache/mask_4/mask_101_4.dat deleted file mode 100644 index 1c97dc0..0000000 --- a/admin/phpqrcode/cache/mask_4/mask_101_4.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA Fs^1bИ]4m+8+Ve^HR]\c -oWN#X+l HEcp \^.9qW9":.BB \0aPǨcp \ONqjpG}}$.˅ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_4/mask_105_4.dat b/admin/phpqrcode/cache/mask_4/mask_105_4.dat deleted file mode 100644 index 0211cdb..0000000 --- a/admin/phpqrcode/cache/mask_4/mask_105_4.dat +++ /dev/null @@ -1,2 +0,0 @@ -xK -0 D=Mr˹A TeEFL2 #鹢_I!딤Ѻ-իkmO]sS T6*'8 N$'NZ^}rU*G9r|c[cN[_=׫5^J 1*qv \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_4/mask_117_4.dat b/admin/phpqrcode/cache/mask_4/mask_117_4.dat deleted file mode 100644 index 3867259..0000000 --- a/admin/phpqrcode/cache/mask_4/mask_117_4.dat +++ /dev/null @@ -1,2 +0,0 @@ -x - н_s]4Dgn2Jj}ҾRsSWGRɧ)5Em#ܯk_"z3\rʕ+r Lk|/{;'/#\p\p># \p\p#>qp\p.$Iq dGR_4  \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_4/mask_137_4.dat b/admin/phpqrcode/cache/mask_4/mask_137_4.dat deleted file mode 100644 index 0c09c48..0000000 Binary files a/admin/phpqrcode/cache/mask_4/mask_137_4.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_4/mask_141_4.dat b/admin/phpqrcode/cache/mask_4/mask_141_4.dat deleted file mode 100644 index 62b03f2..0000000 Binary files a/admin/phpqrcode/cache/mask_4/mask_141_4.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_4/mask_145_4.dat b/admin/phpqrcode/cache/mask_4/mask_145_4.dat deleted file mode 100644 index 33fb211..0000000 Binary files a/admin/phpqrcode/cache/mask_4/mask_145_4.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_4/mask_149_4.dat b/admin/phpqrcode/cache/mask_4/mask_149_4.dat deleted file mode 100644 index de99310..0000000 --- a/admin/phpqrcode/cache/mask_4/mask_149_4.dat +++ /dev/null @@ -1,2 +0,0 @@ -x -!н_sm +XӋ9=.=Zka]ޒ> Kjo |SSWKZm׌j\Ъ2 W\qW\q"~ jvtv_\qW\qW\q%g3 }+++ r9ArW\qW\qŕA g3WA W\qW\qW]V~v{D3Ȝ!\W^Tڍ[S7vۜgq? -{peo383838{YXz,_OYfe3s38383\C!Ms38383r \C?37938383\C!07M8383q,mMrskWv3~W WB \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_4/mask_157_4.dat b/admin/phpqrcode/cache/mask_4/mask_157_4.dat deleted file mode 100644 index ad5fcf6..0000000 --- a/admin/phpqrcode/cache/mask_4/mask_157_4.dat +++ /dev/null @@ -1 +0,0 @@ -x10ޯs4"FP=iRX¢X0멪u 4ftl}m➭S|юS P5<]rwqwq^QN6ÏZsߙ,wqwqǝ>Μ5g;;Y}Vgw,wqwqw>9wqwq>3gY;[ww?P3Ƙggt퐮;].3w4A \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_4/mask_161_4.dat b/admin/phpqrcode/cache/mask_4/mask_161_4.dat deleted file mode 100644 index 7604c45..0000000 --- a/admin/phpqrcode/cache/mask_4/mask_161_4.dat +++ /dev/null @@ -1 +0,0 @@ -xA@ fs!AL_|,4l)iml׉0' +E ]N\x#2/_{7g9쏼ٷ}2r!?}-#Te9C9C9~6Sʇ겺!r!r!ۘse9C9C94_Ɯ|.r!r!s/s0 2r!r8}DwrDXΡ|x|!2 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_4/mask_165_4.dat b/admin/phpqrcode/cache/mask_4/mask_165_4.dat deleted file mode 100644 index d83d631..0000000 --- a/admin/phpqrcode/cache/mask_4/mask_165_4.dat +++ /dev/null @@ -1,3 +0,0 @@ -xA -1 }Or."*?fPLHIkΫZQ8 -Gyqk-n5+?|֎kKnEŹK.K.?2.|EJ{2<:.Ku\K.K.ǝmu)_8\r%\r%\Џ;'2!_8\r%\r%\Џ;'2!_\r%\r%\rinC?nn9 RK.K.;.HqY'ݽNF?K㕢,R| My*3 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_4/mask_169_4.dat b/admin/phpqrcode/cache/mask_4/mask_169_4.dat deleted file mode 100644 index 4aac95c..0000000 Binary files a/admin/phpqrcode/cache/mask_4/mask_169_4.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_4/mask_173_4.dat b/admin/phpqrcode/cache/mask_4/mask_173_4.dat deleted file mode 100644 index 9df4d86..0000000 --- a/admin/phpqrcode/cache/mask_4/mask_173_4.dat +++ /dev/null @@ -1,2 +0,0 @@ -xK -1}Nrna ~ZY!Jt^5(/jkz[pj_?~v:|jwՖ_mXzo6?naCe \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_4/mask_81_4.dat b/admin/phpqrcode/cache/mask_4/mask_81_4.dat deleted file mode 100644 index dd65216..0000000 --- a/admin/phpqrcode/cache/mask_4/mask_81_4.dat +++ /dev/null @@ -1,3 +0,0 @@ -xA -0 yMyXE m7"892ѸQ1ݳ+xx;t35DIY1x\:u}e/ #Th< -UBz<5G<5{G<5<饫>]Urxu \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_4/mask_85_4.dat b/admin/phpqrcode/cache/mask_4/mask_85_4.dat deleted file mode 100644 index c8d5123..0000000 Binary files a/admin/phpqrcode/cache/mask_4/mask_85_4.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_4/mask_89_4.dat b/admin/phpqrcode/cache/mask_4/mask_89_4.dat deleted file mode 100644 index 5b9bd7e..0000000 --- a/admin/phpqrcode/cache/mask_4/mask_89_4.dat +++ /dev/null @@ -1,2 +0,0 @@ -x1 -0 ὧI9%  Vڀfr0}z=#9ҕ:~s1BՁg&4pgq.p.&gT05rgsgqrg捯u38k.Egmb*&7? : \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_4/mask_93_4.dat b/admin/phpqrcode/cache/mask_4/mask_93_4.dat deleted file mode 100644 index be7f5e5..0000000 --- a/admin/phpqrcode/cache/mask_4/mask_93_4.dat +++ /dev/null @@ -1,2 +0,0 @@ -xK - ὧIn$}PŌB]N@%sfkҫ}CzoA}aʽ2|~D&l=Ywq}q\EYjK_ywqwz$==;_݋>+pH9Di \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_4/mask_97_4.dat b/admin/phpqrcode/cache/mask_4/mask_97_4.dat deleted file mode 100644 index 5d848ca..0000000 Binary files a/admin/phpqrcode/cache/mask_4/mask_97_4.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_101_5.dat b/admin/phpqrcode/cache/mask_5/mask_101_5.dat deleted file mode 100644 index c21869e..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_101_5.dat +++ /dev/null @@ -1,2 +0,0 @@ -x - E+%=M3Cbv ѬNkûgqkqq{%Oo,iKee3[|iVh]` ` 0ʕz˴T0Gu/q8F13:W>#ȕ0c0Q8E=F#+a X͞+cV%9W>Q]TkY-gLqD艋 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_105_5.dat b/admin/phpqrcode/cache/mask_5/mask_105_5.dat deleted file mode 100644 index bc8798c..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_105_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_109_5.dat b/admin/phpqrcode/cache/mask_5/mask_109_5.dat deleted file mode 100644 index 25a3944..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_109_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_113_5.dat b/admin/phpqrcode/cache/mask_5/mask_113_5.dat deleted file mode 100644 index 25f42b8..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_113_5.dat +++ /dev/null @@ -1,9 +0,0 @@ -x -0D^6I63[[EDqc+jy81\c -7c?u}DK4},kkg--3[UƂyUXUXSV:ϫ՝,|кS⫰ - - -Vɫ*X[* - - -zU*NV*JUXUXSXijTi4fZkU^_~Ux }ծZ/r \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_117_5.dat b/admin/phpqrcode/cache/mask_5/mask_117_5.dat deleted file mode 100644 index f236940..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_117_5.dat +++ /dev/null @@ -1 +0,0 @@ -x D|Mn/*{M+pI_&m-ѾC32u?o-kgB7wc=U%yoRhӯșDo:ֶyRJkQ^aaaqOgiJ ;qOg)ӊ0 0 0 [vö>=>0 0 0 Ofz3=>0 0 0.3Z$׷8\pw4:Zp:qX 7 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_121_5.dat b/admin/phpqrcode/cache/mask_5/mask_121_5.dat deleted file mode 100644 index 9bb5c41..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_121_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_125_5.dat b/admin/phpqrcode/cache/mask_5/mask_125_5.dat deleted file mode 100644 index 2161c50..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_125_5.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA - E&fc;S$?؏Q4YahûyJ}9g==li.;nh_wz.qCWȧy uPk;<<<|*q, mkWqNl% yyyy^2䰅sX|aaaa3ϙ9lH<<<<̿웁[n`Tq8^vy \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_129_5.dat b/admin/phpqrcode/cache/mask_5/mask_129_5.dat deleted file mode 100644 index f0c1d65..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_129_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_133_5.dat b/admin/phpqrcode/cache/mask_5/mask_133_5.dat deleted file mode 100644 index 46be8b0..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_133_5.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA -0 DѽOcr]4%1mCTxΜ[Dv={FEϏq?ݿ9keѭ}'2^c4G:3=JK-F0`#Hw'#<{~Z4 :BG舻F0`G~:`#?#tw-`#?##t#F0r}Q}eR;M/k1mX=hsH"k M:3qOW}9ԖIH1G;- sڶ?[%M - v#;zg^3d}69Ψޙ@7҄#gv`;׳ީ\$wlv`v;ލ}7wߑa;vkA#gv`=N2wxgWӤ@n?c}SQ:Zd?+9vz)P \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_141_5.dat b/admin/phpqrcode/cache/mask_5/mask_141_5.dat deleted file mode 100644 index 60c1a8e..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_141_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_145_5.dat b/admin/phpqrcode/cache/mask_5/mask_145_5.dat deleted file mode 100644 index 9303c07..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_145_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_149_5.dat b/admin/phpqrcode/cache/mask_5/mask_149_5.dat deleted file mode 100644 index 4256cef..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_149_5.dat +++ /dev/null @@ -1,3 +0,0 @@ -x[ -0&c}-s+'^;Ax=Q_gUݏﵪxGTȺV¹UUE_IǴ;T1̠ -]W 2 2 |o5uꆬuI:(WKU躒rPAdAdA; vo_zNO{2rPA9 2 29}^O挞rwQdAdAnMA9(dAdA^W Z.+G^K`׵}`_Fk \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_153_5.dat b/admin/phpqrcode/cache/mask_5/mask_153_5.dat deleted file mode 100644 index deea09d..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_153_5.dat +++ /dev/null @@ -1,2 +0,0 @@ -x -@wfЬ`D"Ie<:au,7Of۳uP6~szs,jլcVZvߨm s^uHYu&l&l&_9 ;]^jsO;ܔrSn&l&l9yכzA rSnM6dM6dM6ރ@/$7ܔl&l&lzŽzACrSnM6dM6dOl7ᰚUuN֛FcPPS,l;HO \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_157_5.dat b/admin/phpqrcode/cache/mask_5/mask_157_5.dat deleted file mode 100644 index 176e2a6..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_157_5.dat +++ /dev/null @@ -1 +0,0 @@ -x10Dާri( r* \~>C*vs]Ŝ_{W!zﶬ/)˙v V6V޻,f1Yb n^o>\O],,b,f1YyVgYYYb,f1+ʳ<˳<˳1YbŬ<+ʳ,,b,f1YyVgYYYb,fukys77}vmb=wsw)tW: \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_161_5.dat b/admin/phpqrcode/cache/mask_5/mask_161_5.dat deleted file mode 100644 index 70d5fb0..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_161_5.dat +++ /dev/null @@ -1,2 +0,0 @@ -xI -@нDp@ o|m rHk㨤~co^Jzװ#5l¦S_92 [}ZÊ=T2ƀP2[cV衆CYf'-X9>v~usK5`e,2,2,2-///o_q}K\reYfeYf峖o+/,\feYfeYfٳexB.e2,2,̲g+l\r16,2,>ϰ=te&_4=tU}/>>>Or5/u>/g}g}gOsvO}/g}g}ٷGo-w{r_{g}g}g_n=n]4Nkβ_M8m?SF< \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_173_5.dat b/admin/phpqrcode/cache/mask_5/mask_173_5.dat deleted file mode 100644 index f9a6741..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_173_5.dat +++ /dev/null @@ -1,4 +0,0 @@ -x[ -0&G1gD)[CzeDѷц=RN6FJm JqP}x s_}GFy; -[;]ek[QbTmy&0 L`̄Y?رw؛ fcVN9&0 L`ׄZ}0=F=F9ANL`&0 L`BzYfI=F9AN&0 L`&0 fIsr ' L`&0 L`<i͒"9AN&0 L`VaBX",Um> -=wZgBΜP !8 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_177_5.dat b/admin/phpqrcode/cache/mask_5/mask_177_5.dat deleted file mode 100644 index b07c636..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_177_5.dat +++ /dev/null @@ -1,11 +0,0 @@ -xъ0~ܾح uO,"% :$Xui=ѶՃgƸ?Ώq.So~z׉W:=h1cq]Ƕi!r8Ɓ`+X -V jj;8ƁX+ -oV`+X -V?[1^h-ֳ5Z;rmS+ -oV`+X -V;Z,YMB+ -V`+X -VZeڦ}r\!W`+X -V`+3Km>SB+ -V`+X -Vc㊛{g;^Qq5ZUݮQL0+*&YDq*6 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_21_5.dat b/admin/phpqrcode/cache/mask_5/mask_21_5.dat deleted file mode 100644 index 04f97ea..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_21_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_25_5.dat b/admin/phpqrcode/cache/mask_5/mask_25_5.dat deleted file mode 100644 index c20b59b..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_25_5.dat +++ /dev/null @@ -1,2 +0,0 @@ -xڝa -@!4 ޳ʢ ?,""j?n=GZy:DR \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_33_5.dat b/admin/phpqrcode/cache/mask_5/mask_33_5.dat deleted file mode 100644 index 726d7fd..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_33_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_37_5.dat b/admin/phpqrcode/cache/mask_5/mask_37_5.dat deleted file mode 100644 index 6d32ca6..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_37_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_41_5.dat b/admin/phpqrcode/cache/mask_5/mask_41_5.dat deleted file mode 100644 index e07c617..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_41_5.dat +++ /dev/null @@ -1,2 +0,0 @@ -xTA - 5?7XMtxҴx ?@7@~"N$Sɰ{+CA'r\Pp<ޏ- ͺ:S3sԉۻީz#qw > \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_45_5.dat b/admin/phpqrcode/cache/mask_5/mask_45_5.dat deleted file mode 100644 index 5168a17..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_45_5.dat +++ /dev/null @@ -1 +0,0 @@ -xUA 5?U:N&Z":;4P1=bNvSGM1˛n'(κ J{Eѵs] ,sq \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_49_5.dat b/admin/phpqrcode/cache/mask_5/mask_49_5.dat deleted file mode 100644 index 9f3f3cd..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_49_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_53_5.dat b/admin/phpqrcode/cache/mask_5/mask_53_5.dat deleted file mode 100644 index 449807b..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_53_5.dat +++ /dev/null @@ -1 +0,0 @@ -xVA " zYf5ƐJC A;l\,dR. \(e_ еaNi5\żaLP(;2שjN6O u+l{y6od^ C[%  \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_57_5.dat b/admin/phpqrcode/cache/mask_5/mask_57_5.dat deleted file mode 100644 index c7dd81f..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_57_5.dat +++ /dev/null @@ -1,2 +0,0 @@ -xVA - 5?NlZHAbBZ0a Md`1z'"<Ր19nvͨ. )bݻ~;9Z#tB~ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_65_5.dat b/admin/phpqrcode/cache/mask_5/mask_65_5.dat deleted file mode 100644 index ecd9380..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_65_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_69_5.dat b/admin/phpqrcode/cache/mask_5/mask_69_5.dat deleted file mode 100644 index ead4edc..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_69_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_73_5.dat b/admin/phpqrcode/cache/mask_5/mask_73_5.dat deleted file mode 100644 index 0000117..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_73_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_77_5.dat b/admin/phpqrcode/cache/mask_5/mask_77_5.dat deleted file mode 100644 index 1652cdc..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_77_5.dat +++ /dev/null @@ -1 +0,0 @@ -xQ Cw#&C`T6ƹB(9 'ֆڢzk"hv.` cXB5[(F>71/34Ϊz^'[FyglgM>OTL4ϔ{&3Wy*ʧb*`<3;Vo0/s6n0ya[mcE \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_81_5.dat b/admin/phpqrcode/cache/mask_5/mask_81_5.dat deleted file mode 100644 index 71215e9..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_81_5.dat +++ /dev/null @@ -1,3 +0,0 @@ -x - C~M?tzU4" }tMX2|.ɋ˙F\~m4Xu -ٔ, w:EƄ>X̯=_]g>>zמ/)5ךkkkZsXXY{ܮ}~mt:S#&;U#) \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_85_5.dat b/admin/phpqrcode/cache/mask_5/mask_85_5.dat deleted file mode 100644 index 09cf0e2..0000000 Binary files a/admin/phpqrcode/cache/mask_5/mask_85_5.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_5/mask_89_5.dat b/admin/phpqrcode/cache/mask_5/mask_89_5.dat deleted file mode 100644 index 5fff530..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_89_5.dat +++ /dev/null @@ -1,2 +0,0 @@ -x - 45enpQ Gcfl^^;;b5;`kU͹߮j`NsO=\[a6~nLD? !6uF%w*Ȭkf77SĆbÆXodw_—mbClNۙ ck&YVoܡ׷BעبAl6 Jjx \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_5/mask_93_5.dat b/admin/phpqrcode/cache/mask_5/mask_93_5.dat deleted file mode 100644 index ec4240b..0000000 --- a/admin/phpqrcode/cache/mask_5/mask_93_5.dat +++ /dev/null @@ -1,2 +0,0 @@ -xK -0 D>&&  fP^8BY5s(imҮ=f3/wۧEyYQwf[} [90303ef̙3'3=,ͼwxDַ.,;s%g,,,=Rὓ7uKKTD<(n lYhV۹sޕyPEtyY]ns ;ss,!LkԅcbL12cX91Z#XEn#;svT~L~LR11vs.1111J1&؍Ń111J1&ƞg KLƪjlk{gڞ5K1/ǐ~,ac$ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_105_6.dat b/admin/phpqrcode/cache/mask_6/mask_105_6.dat deleted file mode 100644 index a58fec7..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_105_6.dat +++ /dev/null @@ -1,3 +0,0 @@ -xQ -@ DskBZ#o)Sd}Gܷl쯯^)G]S4S?#BZ:+{sHKNiI!me1 -RWe9!``Uyˀu:檞U=w-oԺwB}cMK蹰{{=y蹰{{=y蹰{wScaoi'fyO=CyO=Cy[{S޻=;|v4}ϯ20 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_109_6.dat b/admin/phpqrcode/cache/mask_6/mask_109_6.dat deleted file mode 100644 index be7b474..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_109_6.dat +++ /dev/null @@ -1 +0,0 @@ -xA0 ~ρDBHCHV20nuol쯯˻=ۢs9[l'?7R" &2:7QqX_n ]$՚EIY*Lq0 0 0{LJз(s\ɳwX-7^ItIII$~?N0 0 0O'Itg7L$L-Iuzrfr M^'}(O~R]1YLĞu9Qӕ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_113_6.dat b/admin/phpqrcode/cache/mask_6/mask_113_6.dat deleted file mode 100644 index 397f527..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_113_6.dat +++ /dev/null @@ -1,3 +0,0 @@ -x E5NՉbF6on,m>gS9RWcǕ9&%1_cx= GR^w-z?dzv=,}ԥ?ǹژ:9m==@U䲉UXUXVe~by4Wi:e=ɼÆ$<>Ov'Cytaaaa~|'9liΣ<<<<Iæ<:<<<ٕWDzy:.z= ݓʯ sVöE=ll_k0_#vίmj \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_129_6.dat b/admin/phpqrcode/cache/mask_6/mask_129_6.dat deleted file mode 100644 index b4695c3..0000000 Binary files a/admin/phpqrcode/cache/mask_6/mask_129_6.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_6/mask_133_6.dat b/admin/phpqrcode/cache/mask_6/mask_133_6.dat deleted file mode 100644 index 40911dc..0000000 Binary files a/admin/phpqrcode/cache/mask_6/mask_133_6.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_6/mask_137_6.dat b/admin/phpqrcode/cache/mask_6/mask_137_6.dat deleted file mode 100644 index 43ccb68..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_137_6.dat +++ /dev/null @@ -1,2 +0,0 @@ -x E5?e^4fHp[1-e)UQV]UWN5o*8|۩W6bk?{f|>s֪r666rҟ=vڲWy -' -Ο;q tQE>U϶f곭xN]Tc(s❮7tAw`v`v`v`kvwfwt;];;;;;!ޙ;ao];l;;;÷| ʷ(3}l.?"މr};\}S-Aw<9;EV'ם \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_141_6.dat b/admin/phpqrcode/cache/mask_6/mask_141_6.dat deleted file mode 100644 index 0340409..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_141_6.dat +++ /dev/null @@ -1,10 +0,0 @@ -xa F4/c]زȐ[=[E럓sm,fn/|kj\j?g[q(NOZc5SGGP[oMVָfvL<WóCaz6U~һ{`nݻdvVy~rZ"qk{>g$XKU}m\bjaGx,f1Yb]z̞^.5[?嬜r,f1YY>grVb,f1Y>g,rVmYb,f,|VY9Yb,f,|VY9+g1Ybً ̦M7>2{9z϶hm3l|9xټ#f#x6 -v%N' \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_161_6.dat b/admin/phpqrcode/cache/mask_6/mask_161_6.dat deleted file mode 100644 index ecec68b..0000000 Binary files a/admin/phpqrcode/cache/mask_6/mask_161_6.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_6/mask_165_6.dat b/admin/phpqrcode/cache/mask_6/mask_165_6.dat deleted file mode 100644 index d641dfa..0000000 Binary files a/admin/phpqrcode/cache/mask_6/mask_165_6.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_6/mask_169_6.dat b/admin/phpqrcode/cache/mask_6/mask_169_6.dat deleted file mode 100644 index ae68972..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_169_6.dat +++ /dev/null @@ -1 +0,0 @@ -xJ0i9[Jɘk{1b!gnhHkS뉭-V?KIׁ1큏1ƣݎ/`/z)*=3ڏg6^k65CY>㵾+'{է_Vˊx-J<ӛܗr_>>i;rO}/g}g}ٿ}}xO}/g}g}ٷGo/{{r_>>o/z^#}g}ٿd'ʳ|QRNS3YڳZ'msEǷj5 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_173_6.dat b/admin/phpqrcode/cache/mask_6/mask_173_6.dat deleted file mode 100644 index 95fa97c..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_173_6.dat +++ /dev/null @@ -1 +0,0 @@ -xa09MrM S*:a_-5hh_)uZ֭[loےsmKN{H?x`l#f9>ڟ[eЄώߓ ?^m*/Kmhy%v-nKlkKL`&& g5(gwxYܞa¬pVcZ[#O=SN9&0 L`DŽ 'tjj]QN9&0 L`sYRc@QN9 L`&0 L`"YRc\ ' r&0 L`EH9AN&0 L`& 7p6`|hms R5Ƙȉ k\X/ )g9 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_177_6.dat b/admin/phpqrcode/cache/mask_6/mask_177_6.dat deleted file mode 100644 index e9f0476..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_177_6.dat +++ /dev/null @@ -1,14 +0,0 @@ -xn {ڤ*4v۴u1{f{_,,K9o 4ǵ7lniJiggir<-MG - - - -xuV+zRCr9+Gq6QWb"Qe"WL+ - XXXXX/|~j,nmuMۤ+ - XXXXXYa,X;M+ - XXXXXe)oӘf|5H늚7/D \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_21_6.dat b/admin/phpqrcode/cache/mask_6/mask_21_6.dat deleted file mode 100644 index 6bd505b..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_21_6.dat +++ /dev/null @@ -1 +0,0 @@ -xڝQ C9M{i]X1- C!D7 W ٜ&rD)~]<M 3(>{A aS \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_25_6.dat b/admin/phpqrcode/cache/mask_6/mask_25_6.dat deleted file mode 100644 index d45083a..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_25_6.dat +++ /dev/null @@ -1 +0,0 @@ -xڝQA 52)e+(XmZt*(ڹ;tJ<峂_ڤ3oڴ"̢azh}&qvSG֙,-J4}oS[}w \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_29_6.dat b/admin/phpqrcode/cache/mask_6/mask_29_6.dat deleted file mode 100644 index 0408e22..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_29_6.dat +++ /dev/null @@ -1,3 +0,0 @@ -xRA -0 XcL(4EԈB -8Cܾ޳nM+lǝՆO1]&ڍ4UD-6-$:6dZ?ylf? 8?߲_ݏ`8G1`B`;+}&s]<iK'l'9%.7 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_65_6.dat b/admin/phpqrcode/cache/mask_6/mask_65_6.dat deleted file mode 100644 index 550fc8f..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_65_6.dat +++ /dev/null @@ -1 +0,0 @@ -xWQ i{KNLk?e$Qik41{`+!ڮM ? 1b8 .^wsnFj5EaQX|=w@2v<ŋŞ|4w\UXBQz+TTcBz/48,5`ȱ OV$ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_69_6.dat b/admin/phpqrcode/cache/mask_6/mask_69_6.dat deleted file mode 100644 index a3e4fa0..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_69_6.dat +++ /dev/null @@ -1 +0,0 @@ -xK @dTh hLSSEq eY@<+*|窮 %>z*7e6QS`.>sE '%@[6@P0h aFxtpl2 Q-g1Nfeo^0FdT>N_OwG3ug {3<[Ժ b?'6^ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_73_6.dat b/admin/phpqrcode/cache/mask_6/mask_73_6.dat deleted file mode 100644 index ab71b70..0000000 Binary files a/admin/phpqrcode/cache/mask_6/mask_73_6.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_6/mask_77_6.dat b/admin/phpqrcode/cache/mask_6/mask_77_6.dat deleted file mode 100644 index ad5a660..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_77_6.dat +++ /dev/null @@ -1 +0,0 @@ -x E۲iVa.FpSTY4q~z=:͒ 6m8:#0PضiDy:2Š'Zs&}滜\r0\ŚXw;iPȔL)Seԕ{hDu9LbJSS))gZ{e)qJdLw+#3-V0շljڠS-S 9=ݯ5PPq1M?g \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_81_6.dat b/admin/phpqrcode/cache/mask_6/mask_81_6.dat deleted file mode 100644 index 28a6d07..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_81_6.dat +++ /dev/null @@ -1,3 +0,0 @@ -xQ0D9 rRLvk`0 ;i6\|_cc1huio#2}x*.Yt& -ְq/K;3ve̢ȊAH?`]5Kw!}{Zû߲W -yⷾ^_ykk^Kתb-bYSڸ'֜Nu#MfHSQ?|]IAiMyyuW \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_6/mask_85_6.dat b/admin/phpqrcode/cache/mask_6/mask_85_6.dat deleted file mode 100644 index d5403e4..0000000 Binary files a/admin/phpqrcode/cache/mask_6/mask_85_6.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_6/mask_89_6.dat b/admin/phpqrcode/cache/mask_6/mask_89_6.dat deleted file mode 100644 index eeeb5d1..0000000 Binary files a/admin/phpqrcode/cache/mask_6/mask_89_6.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_6/mask_93_6.dat b/admin/phpqrcode/cache/mask_6/mask_93_6.dat deleted file mode 100644 index 6ff38db..0000000 Binary files a/admin/phpqrcode/cache/mask_6/mask_93_6.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_6/mask_97_6.dat b/admin/phpqrcode/cache/mask_6/mask_97_6.dat deleted file mode 100644 index 3a2072e..0000000 --- a/admin/phpqrcode/cache/mask_6/mask_97_6.dat +++ /dev/null @@ -1,2 +0,0 @@ -xa0sdFx[=4Hoj34&s}* a Vc&35arW^aLClzq,1x SQN]/Giu`&w%,%DY"Kt+HE'|R2(v1vqiqd,%D~%ػJj}ͺĺgY"Kd,+K -]Wt+sF/)].zN'`>1='#`+bl]Z \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_101_7.dat b/admin/phpqrcode/cache/mask_7/mask_101_7.dat deleted file mode 100644 index 1f6bc51..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_101_7.dat +++ /dev/null @@ -1 +0,0 @@ -xQ C}rm`fjT#54'tfaЇo$cmOJ23c<6Xn0F ) \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_105_7.dat b/admin/phpqrcode/cache/mask_7/mask_105_7.dat deleted file mode 100644 index 6b0cacf..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_105_7.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA -0EFaMҙNPx)pQ_~|ñ(bF$.aoWGNPUǖM%{oHQUlִL^>+m#{{eo&Y2soM)gncO9sZ3wo+{=f.zޣ{{=zGcskCQϞp^&{^NʷU e5}EwGn+o \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_109_7.dat b/admin/phpqrcode/cache/mask_7/mask_109_7.dat deleted file mode 100644 index 9875cbe..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_109_7.dat +++ /dev/null @@ -1,2 +0,0 @@ -xA -0 D9Mr}* _x-d:"NJ-k"⨚d{ջגɬ|'rQ5+ s)c7-1nn햺qɔJtg^ʉw̘Ň-?*&Mm@ee5^ -c - -,b\13j4TZfŢo* - - -:Ut* - - -Xů0"%6ed 8rS NsUnk5XejުuVXg,l`u!hXZ\VlM|[ͬ0 0 0 #hF'c]i>Hataaa~<ÆzyqkO0 0 0 㪞Faaa)2˰fÒ%z8tO=3=3:cw -V$ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_121_7.dat b/admin/phpqrcode/cache/mask_7/mask_121_7.dat deleted file mode 100644 index d5d577f..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_121_7.dat +++ /dev/null @@ -1,2 +0,0 @@ -x[ - Edi;^az,#6ƞ^rh&^amY9_غ5Cr6t^^WlEز~ɿ|MmmS}( ۰ ۰ ۰}mQ]ZVq]vѲ"M1fG, qBmtaaazeF3cxIDmtaaamný$n۰ ۰ ۰ ۏa[}`[yޖ޻)n<4K/Oslnlm/G \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_125_7.dat b/admin/phpqrcode/cache/mask_7/mask_125_7.dat deleted file mode 100644 index f9ec088..0000000 Binary files a/admin/phpqrcode/cache/mask_7/mask_125_7.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_7/mask_129_7.dat b/admin/phpqrcode/cache/mask_7/mask_129_7.dat deleted file mode 100644 index 9bf51d5..0000000 Binary files a/admin/phpqrcode/cache/mask_7/mask_129_7.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_7/mask_133_7.dat b/admin/phpqrcode/cache/mask_7/mask_133_7.dat deleted file mode 100644 index b643ffe..0000000 Binary files a/admin/phpqrcode/cache/mask_7/mask_133_7.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_7/mask_137_7.dat b/admin/phpqrcode/cache/mask_7/mask_137_7.dat deleted file mode 100644 index 11d212b..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_137_7.dat +++ /dev/null @@ -1,5 +0,0 @@ -x - F4/ c_ǂ+{SK<o[l -Ο -07։Vl;b7fMS;1LCvR|KMH -#Н(Sqd \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_141_7.dat b/admin/phpqrcode/cache/mask_7/mask_141_7.dat deleted file mode 100644 index 98dffab..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_141_7.dat +++ /dev/null @@ -1 +0,0 @@ -xA E= rITY@Ä0!|1tbG0ԗѤs2Z/oa\qzOnҋMntX"KmeM}CpPL^S0S0S0SL )ǔژY߾%b,Sl?zC)tLLLLI2zRXh@)tLLLLI1zbϷB)~0S0S0S07)|B)))3ՖL% tfwM*:~hZsnc$1UTtJg8OYE \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_145_7.dat b/admin/phpqrcode/cache/mask_7/mask_145_7.dat deleted file mode 100644 index 4aa2bac..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_145_7.dat +++ /dev/null @@ -1,2 +0,0 @@ -x - E5?W6Z-^2qbGX6(Ɖu"LbbGuμGk:HwA[jmHݞ3OkQ{l|TEm JfL?2"&)kRfc̉F,z=5X5X5X7F\pUs#5X5X5XFdYk!a ` ` `o8ct ]CC gM5[N%khZp?Iܣϲ^n$Y7AZP[ fȓ0 \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_149_7.dat b/admin/phpqrcode/cache/mask_7/mask_149_7.dat deleted file mode 100644 index 809f005..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_149_7.dat +++ /dev/null @@ -1 +0,0 @@ -xn {? uچ2G$ncFKb3֪tPc ̥7[?9:['9'*Ӗ Gah_/z+6XB>2qYJ0黏Bfa 1 9c7G Ol,^꽓3A:H  1A b0X4%٫#d>&C  1A b+g嬜,f1Yb|Y>+g嬜,f1Ylio.\Ɲo=gϙ-yk_TA \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_161_7.dat b/admin/phpqrcode/cache/mask_7/mask_161_7.dat deleted file mode 100644 index 35ba8ff..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_161_7.dat +++ /dev/null @@ -1 +0,0 @@ -xю y/皨E)Ʈ1~493,˵+ZT=ZeC.~iߏ&>,6e~,lW] 2\;׵2j"e,rXݵV(c쵵ZӖ18ީ/,'t.ee,cX2߱,_|yt|]t.cX2e,cy/ɗys.eLe,cX2lo|Z{+2]bl,cX2e{+֊[A2]X2e,c9CX;QIQH8R҈G"z,&;'o97%P8%6oǽ;]NWn[f7v \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_29_7.dat b/admin/phpqrcode/cache/mask_7/mask_29_7.dat deleted file mode 100644 index e3d7391..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_29_7.dat +++ /dev/null @@ -1,2 +0,0 @@ -xR9 QpX$lŲf!I2pgSMZj"te0#ԛ`_1-cha~/Eh4"~ \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_37_7.dat b/admin/phpqrcode/cache/mask_7/mask_37_7.dat deleted file mode 100644 index 87d9a1a..0000000 Binary files a/admin/phpqrcode/cache/mask_7/mask_37_7.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_7/mask_41_7.dat b/admin/phpqrcode/cache/mask_7/mask_41_7.dat deleted file mode 100644 index 8acec04..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_41_7.dat +++ /dev/null @@ -1 +0,0 @@ -xTA 5[fDY(O^bR3/~t/L"7SQQ5j\Sib#Նȏ+ǣw#zx?㽧A-wu曑Y7$b.%A;wRoxG}? \ No newline at end of file diff --git a/admin/phpqrcode/cache/mask_7/mask_45_7.dat b/admin/phpqrcode/cache/mask_7/mask_45_7.dat deleted file mode 100644 index dbba31d..0000000 Binary files a/admin/phpqrcode/cache/mask_7/mask_45_7.dat and /dev/null differ diff --git a/admin/phpqrcode/cache/mask_7/mask_49_7.dat b/admin/phpqrcode/cache/mask_7/mask_49_7.dat deleted file mode 100644 index be5dce8..0000000 --- a/admin/phpqrcode/cache/mask_7/mask_49_7.dat +++ /dev/null @@ -1 +0,0 @@ -xV0khC-X.ukv o40T%96U5*sI{`_>S?}(:yTl{G&E\6}"AX XϬback'); - - // user data - $filename = $PNG_TEMP_DIR.'test'.md5($_REQUEST['data'].'|'.$errorCorrectionLevel.'|'.$matrixPointSize).'.png'; - QRcode::png($_REQUEST['data'], $filename, $errorCorrectionLevel, $matrixPointSize, 2); - - } else { - - //default data - echo 'You can provide data in GET parameter: like that
'; - QRcode::png('PHP QR Code :)', $filename, $errorCorrectionLevel, $matrixPointSize, 2); - - } - - //display generated file - echo '
'; - - //config form - echo ' - Data:   - ECC:   - Size:   -
'; - - // benchmark - QRtools::timeBenchmark(); - - \ No newline at end of file diff --git a/admin/phpqrcode/phpqrcode.php b/admin/phpqrcode/phpqrcode.php deleted file mode 100644 index 13307b6..0000000 --- a/admin/phpqrcode/phpqrcode.php +++ /dev/null @@ -1,3312 +0,0 @@ - - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - - -/* - * Version: 1.1.4 - * Build: 2010100721 - */ - - - -//---- qrconst.php ----------------------------- - - - - - -/* - * PHP QR Code encoder - * - * Common constants - * - * Based on libqrencode C library distributed under LGPL 2.1 - * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - // Encoding modes - - define('QR_MODE_NUL', -1); - define('QR_MODE_NUM', 0); - define('QR_MODE_AN', 1); - define('QR_MODE_8', 2); - define('QR_MODE_KANJI', 3); - define('QR_MODE_STRUCTURE', 4); - - // Levels of error correction. - - define('QR_ECLEVEL_L', 0); - define('QR_ECLEVEL_M', 1); - define('QR_ECLEVEL_Q', 2); - define('QR_ECLEVEL_H', 3); - - // Supported output formats - - define('QR_FORMAT_TEXT', 0); - define('QR_FORMAT_PNG', 1); - - class qrstr { - public static function set(&$srctab, $x, $y, $repl, $replLen = false) { - $srctab[$y] = substr_replace($srctab[$y], ($replLen !== false)?substr($repl,0,$replLen):$repl, $x, ($replLen !== false)?$replLen:strlen($repl)); - } - } - - - -//---- merged_config.php ----------------------------- - - - - -/* - * PHP QR Code encoder - * - * Config file, tuned-up for merged verion - */ - - define('QR_CACHEABLE', false); // use cache - more disk reads but less CPU power, masks and format templates are stored there - define('QR_CACHE_DIR', false); // used when QR_CACHEABLE === true - define('QR_LOG_DIR', false); // default error logs dir - - define('QR_FIND_BEST_MASK', true); // if true, estimates best mask (spec. default, but extremally slow; set to false to significant performance boost but (propably) worst quality code - define('QR_FIND_FROM_RANDOM', 2); // if false, checks all masks available, otherwise value tells count of masks need to be checked, mask id are got randomly - define('QR_DEFAULT_MASK', 2); // when QR_FIND_BEST_MASK === false - - define('QR_PNG_MAXIMUM_SIZE', 1024); // maximum allowed png image width (in pixels), tune to make sure GD and PHP can handle such big images - - - - -//---- qrtools.php ----------------------------- - - - - -/* - * PHP QR Code encoder - * - * Toolset, handy and debug utilites. - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - class QRtools { - - //---------------------------------------------------------------------- - public static function binarize($frame) - { - $len = count($frame); - foreach ($frame as &$frameLine) { - - for($i=0; $i<$len; $i++) { - $frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0'; - } - } - - return $frame; - } - - //---------------------------------------------------------------------- - public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037') - { - $barcode_array = array(); - - if (!is_array($mode)) - $mode = explode(',', $mode); - - $eccLevel = 'L'; - - if (count($mode) > 1) { - $eccLevel = $mode[1]; - } - - $qrTab = QRcode::text($code, false, $eccLevel); - $size = count($qrTab); - - $barcode_array['num_rows'] = $size; - $barcode_array['num_cols'] = $size; - $barcode_array['bcode'] = array(); - - foreach ($qrTab as $line) { - $arrAdd = array(); - foreach(str_split($line) as $char) - $arrAdd[] = ($char=='1')?1:0; - $barcode_array['bcode'][] = $arrAdd; - } - - return $barcode_array; - } - - //---------------------------------------------------------------------- - public static function clearCache() - { - self::$frames = array(); - } - - //---------------------------------------------------------------------- - public static function buildCache() - { - QRtools::markTime('before_build_cache'); - - $mask = new QRmask(); - for ($a=1; $a <= QRSPEC_VERSION_MAX; $a++) { - $frame = QRspec::newFrame($a); - if (QR_IMAGE) { - $fileName = QR_CACHE_DIR.'frame_'.$a.'.png'; - QRimage::png(self::binarize($frame), $fileName, 1, 0); - } - - $width = count($frame); - $bitMask = array_fill(0, $width, array_fill(0, $width, 0)); - for ($maskNo=0; $maskNo<8; $maskNo++) - $mask->makeMaskNo($maskNo, $width, $frame, $bitMask, true); - } - - QRtools::markTime('after_build_cache'); - } - - //---------------------------------------------------------------------- - public static function log($outfile, $err) - { - if (QR_LOG_DIR !== false) { - if ($err != '') { - if ($outfile !== false) { - file_put_contents(QR_LOG_DIR.basename($outfile).'-errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND); - } else { - file_put_contents(QR_LOG_DIR.'errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND); - } - } - } - } - - //---------------------------------------------------------------------- - public static function dumpMask($frame) - { - $width = count($frame); - for($y=0;$y<$width;$y++) { - for($x=0;$x<$width;$x++) { - echo ord($frame[$y][$x]).','; - } - } - } - - //---------------------------------------------------------------------- - public static function markTime($markerId) - { - list($usec, $sec) = explode(" ", microtime()); - $time = ((float)$usec + (float)$sec); - - if (!isset($GLOBALS['qr_time_bench'])) - $GLOBALS['qr_time_bench'] = array(); - - $GLOBALS['qr_time_bench'][$markerId] = $time; - } - - //---------------------------------------------------------------------- - public static function timeBenchmark() - { - self::markTime('finish'); - - $lastTime = 0; - $startTime = 0; - $p = 0; - - echo ' - - '; - - foreach($GLOBALS['qr_time_bench'] as $markerId=>$thisTime) { - if ($p > 0) { - echo ''; - } else { - $startTime = $thisTime; - } - - $p++; - $lastTime = $thisTime; - } - - echo ' - - -
BENCHMARK
till '.$markerId.': '.number_format($thisTime-$lastTime, 6).'s
TOTAL: '.number_format($lastTime-$startTime, 6).'s
'; - } - - } - - //########################################################################## - - QRtools::markTime('start'); - - - - -//---- qrspec.php ----------------------------- - - - - -/* - * PHP QR Code encoder - * - * QR Code specifications - * - * Based on libqrencode C library distributed under LGPL 2.1 - * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * The following data / specifications are taken from - * "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004) - * or - * "Automatic identification and data capture techniques -- - * QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006) - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - define('QRSPEC_VERSION_MAX', 40); - define('QRSPEC_WIDTH_MAX', 177); - - define('QRCAP_WIDTH', 0); - define('QRCAP_WORDS', 1); - define('QRCAP_REMINDER', 2); - define('QRCAP_EC', 3); - - class QRspec { - - public static $capacity = array( - array( 0, 0, 0, array( 0, 0, 0, 0)), - array( 21, 26, 0, array( 7, 10, 13, 17)), // 1 - array( 25, 44, 7, array( 10, 16, 22, 28)), - array( 29, 70, 7, array( 15, 26, 36, 44)), - array( 33, 100, 7, array( 20, 36, 52, 64)), - array( 37, 134, 7, array( 26, 48, 72, 88)), // 5 - array( 41, 172, 7, array( 36, 64, 96, 112)), - array( 45, 196, 0, array( 40, 72, 108, 130)), - array( 49, 242, 0, array( 48, 88, 132, 156)), - array( 53, 292, 0, array( 60, 110, 160, 192)), - array( 57, 346, 0, array( 72, 130, 192, 224)), //10 - array( 61, 404, 0, array( 80, 150, 224, 264)), - array( 65, 466, 0, array( 96, 176, 260, 308)), - array( 69, 532, 0, array( 104, 198, 288, 352)), - array( 73, 581, 3, array( 120, 216, 320, 384)), - array( 77, 655, 3, array( 132, 240, 360, 432)), //15 - array( 81, 733, 3, array( 144, 280, 408, 480)), - array( 85, 815, 3, array( 168, 308, 448, 532)), - array( 89, 901, 3, array( 180, 338, 504, 588)), - array( 93, 991, 3, array( 196, 364, 546, 650)), - array( 97, 1085, 3, array( 224, 416, 600, 700)), //20 - array(101, 1156, 4, array( 224, 442, 644, 750)), - array(105, 1258, 4, array( 252, 476, 690, 816)), - array(109, 1364, 4, array( 270, 504, 750, 900)), - array(113, 1474, 4, array( 300, 560, 810, 960)), - array(117, 1588, 4, array( 312, 588, 870, 1050)), //25 - array(121, 1706, 4, array( 336, 644, 952, 1110)), - array(125, 1828, 4, array( 360, 700, 1020, 1200)), - array(129, 1921, 3, array( 390, 728, 1050, 1260)), - array(133, 2051, 3, array( 420, 784, 1140, 1350)), - array(137, 2185, 3, array( 450, 812, 1200, 1440)), //30 - array(141, 2323, 3, array( 480, 868, 1290, 1530)), - array(145, 2465, 3, array( 510, 924, 1350, 1620)), - array(149, 2611, 3, array( 540, 980, 1440, 1710)), - array(153, 2761, 3, array( 570, 1036, 1530, 1800)), - array(157, 2876, 0, array( 570, 1064, 1590, 1890)), //35 - array(161, 3034, 0, array( 600, 1120, 1680, 1980)), - array(165, 3196, 0, array( 630, 1204, 1770, 2100)), - array(169, 3362, 0, array( 660, 1260, 1860, 2220)), - array(173, 3532, 0, array( 720, 1316, 1950, 2310)), - array(177, 3706, 0, array( 750, 1372, 2040, 2430)) //40 - ); - - //---------------------------------------------------------------------- - public static function getDataLength($version, $level) - { - return self::$capacity[$version][QRCAP_WORDS] - self::$capacity[$version][QRCAP_EC][$level]; - } - - //---------------------------------------------------------------------- - public static function getECCLength($version, $level) - { - return self::$capacity[$version][QRCAP_EC][$level]; - } - - //---------------------------------------------------------------------- - public static function getWidth($version) - { - return self::$capacity[$version][QRCAP_WIDTH]; - } - - //---------------------------------------------------------------------- - public static function getRemainder($version) - { - return self::$capacity[$version][QRCAP_REMINDER]; - } - - //---------------------------------------------------------------------- - public static function getMinimumVersion($size, $level) - { - - for($i=1; $i<= QRSPEC_VERSION_MAX; $i++) { - $words = self::$capacity[$i][QRCAP_WORDS] - self::$capacity[$i][QRCAP_EC][$level]; - if($words >= $size) - return $i; - } - - return -1; - } - - //###################################################################### - - public static $lengthTableBits = array( - array(10, 12, 14), - array( 9, 11, 13), - array( 8, 16, 16), - array( 8, 10, 12) - ); - - //---------------------------------------------------------------------- - public static function lengthIndicator($mode, $version) - { - if ($mode == QR_MODE_STRUCTURE) - return 0; - - if ($version <= 9) { - $l = 0; - } else if ($version <= 26) { - $l = 1; - } else { - $l = 2; - } - - return self::$lengthTableBits[$mode][$l]; - } - - //---------------------------------------------------------------------- - public static function maximumWords($mode, $version) - { - if($mode == QR_MODE_STRUCTURE) - return 3; - - if($version <= 9) { - $l = 0; - } else if($version <= 26) { - $l = 1; - } else { - $l = 2; - } - - $bits = self::$lengthTableBits[$mode][$l]; - $words = (1 << $bits) - 1; - - if($mode == QR_MODE_KANJI) { - $words *= 2; // the number of bytes is required - } - - return $words; - } - - // Error correction code ----------------------------------------------- - // Table of the error correction code (Reed-Solomon block) - // See Table 12-16 (pp.30-36), JIS X0510:2004. - - public static $eccTable = array( - array(array( 0, 0), array( 0, 0), array( 0, 0), array( 0, 0)), - array(array( 1, 0), array( 1, 0), array( 1, 0), array( 1, 0)), // 1 - array(array( 1, 0), array( 1, 0), array( 1, 0), array( 1, 0)), - array(array( 1, 0), array( 1, 0), array( 2, 0), array( 2, 0)), - array(array( 1, 0), array( 2, 0), array( 2, 0), array( 4, 0)), - array(array( 1, 0), array( 2, 0), array( 2, 2), array( 2, 2)), // 5 - array(array( 2, 0), array( 4, 0), array( 4, 0), array( 4, 0)), - array(array( 2, 0), array( 4, 0), array( 2, 4), array( 4, 1)), - array(array( 2, 0), array( 2, 2), array( 4, 2), array( 4, 2)), - array(array( 2, 0), array( 3, 2), array( 4, 4), array( 4, 4)), - array(array( 2, 2), array( 4, 1), array( 6, 2), array( 6, 2)), //10 - array(array( 4, 0), array( 1, 4), array( 4, 4), array( 3, 8)), - array(array( 2, 2), array( 6, 2), array( 4, 6), array( 7, 4)), - array(array( 4, 0), array( 8, 1), array( 8, 4), array(12, 4)), - array(array( 3, 1), array( 4, 5), array(11, 5), array(11, 5)), - array(array( 5, 1), array( 5, 5), array( 5, 7), array(11, 7)), //15 - array(array( 5, 1), array( 7, 3), array(15, 2), array( 3, 13)), - array(array( 1, 5), array(10, 1), array( 1, 15), array( 2, 17)), - array(array( 5, 1), array( 9, 4), array(17, 1), array( 2, 19)), - array(array( 3, 4), array( 3, 11), array(17, 4), array( 9, 16)), - array(array( 3, 5), array( 3, 13), array(15, 5), array(15, 10)), //20 - array(array( 4, 4), array(17, 0), array(17, 6), array(19, 6)), - array(array( 2, 7), array(17, 0), array( 7, 16), array(34, 0)), - array(array( 4, 5), array( 4, 14), array(11, 14), array(16, 14)), - array(array( 6, 4), array( 6, 14), array(11, 16), array(30, 2)), - array(array( 8, 4), array( 8, 13), array( 7, 22), array(22, 13)), //25 - array(array(10, 2), array(19, 4), array(28, 6), array(33, 4)), - array(array( 8, 4), array(22, 3), array( 8, 26), array(12, 28)), - array(array( 3, 10), array( 3, 23), array( 4, 31), array(11, 31)), - array(array( 7, 7), array(21, 7), array( 1, 37), array(19, 26)), - array(array( 5, 10), array(19, 10), array(15, 25), array(23, 25)), //30 - array(array(13, 3), array( 2, 29), array(42, 1), array(23, 28)), - array(array(17, 0), array(10, 23), array(10, 35), array(19, 35)), - array(array(17, 1), array(14, 21), array(29, 19), array(11, 46)), - array(array(13, 6), array(14, 23), array(44, 7), array(59, 1)), - array(array(12, 7), array(12, 26), array(39, 14), array(22, 41)), //35 - array(array( 6, 14), array( 6, 34), array(46, 10), array( 2, 64)), - array(array(17, 4), array(29, 14), array(49, 10), array(24, 46)), - array(array( 4, 18), array(13, 32), array(48, 14), array(42, 32)), - array(array(20, 4), array(40, 7), array(43, 22), array(10, 67)), - array(array(19, 6), array(18, 31), array(34, 34), array(20, 61)),//40 - ); - - //---------------------------------------------------------------------- - // CACHEABLE!!! - - public static function getEccSpec($version, $level, array &$spec) - { - if (count($spec) < 5) { - $spec = array(0,0,0,0,0); - } - - $b1 = self::$eccTable[$version][$level][0]; - $b2 = self::$eccTable[$version][$level][1]; - $data = self::getDataLength($version, $level); - $ecc = self::getECCLength($version, $level); - - if($b2 == 0) { - $spec[0] = $b1; - $spec[1] = (int)($data / $b1); - $spec[2] = (int)($ecc / $b1); - $spec[3] = 0; - $spec[4] = 0; - } else { - $spec[0] = $b1; - $spec[1] = (int)($data / ($b1 + $b2)); - $spec[2] = (int)($ecc / ($b1 + $b2)); - $spec[3] = $b2; - $spec[4] = $spec[1] + 1; - } - } - - // Alignment pattern --------------------------------------------------- - - // Positions of alignment patterns. - // This array includes only the second and the third position of the - // alignment patterns. Rest of them can be calculated from the distance - // between them. - - // See Table 1 in Appendix E (pp.71) of JIS X0510:2004. - - public static $alignmentPattern = array( - array( 0, 0), - array( 0, 0), array(18, 0), array(22, 0), array(26, 0), array(30, 0), // 1- 5 - array(34, 0), array(22, 38), array(24, 42), array(26, 46), array(28, 50), // 6-10 - array(30, 54), array(32, 58), array(34, 62), array(26, 46), array(26, 48), //11-15 - array(26, 50), array(30, 54), array(30, 56), array(30, 58), array(34, 62), //16-20 - array(28, 50), array(26, 50), array(30, 54), array(28, 54), array(32, 58), //21-25 - array(30, 58), array(34, 62), array(26, 50), array(30, 54), array(26, 52), //26-30 - array(30, 56), array(34, 60), array(30, 58), array(34, 62), array(30, 54), //31-35 - array(24, 50), array(28, 54), array(32, 58), array(26, 54), array(30, 58), //35-40 - ); - - - /** -------------------------------------------------------------------- - * Put an alignment marker. - * @param frame - * @param width - * @param ox,oy center coordinate of the pattern - */ - public static function putAlignmentMarker(array &$frame, $ox, $oy) - { - $finder = array( - "\xa1\xa1\xa1\xa1\xa1", - "\xa1\xa0\xa0\xa0\xa1", - "\xa1\xa0\xa1\xa0\xa1", - "\xa1\xa0\xa0\xa0\xa1", - "\xa1\xa1\xa1\xa1\xa1" - ); - - $yStart = $oy-2; - $xStart = $ox-2; - - for($y=0; $y<5; $y++) { - QRstr::set($frame, $xStart, $yStart+$y, $finder[$y]); - } - } - - //---------------------------------------------------------------------- - public static function putAlignmentPattern($version, &$frame, $width) - { - if($version < 2) - return; - - $d = self::$alignmentPattern[$version][1] - self::$alignmentPattern[$version][0]; - if($d < 0) { - $w = 2; - } else { - $w = (int)(($width - self::$alignmentPattern[$version][0]) / $d + 2); - } - - if($w * $w - 3 == 1) { - $x = self::$alignmentPattern[$version][0]; - $y = self::$alignmentPattern[$version][0]; - self::putAlignmentMarker($frame, $x, $y); - return; - } - - $cx = self::$alignmentPattern[$version][0]; - for($x=1; $x<$w - 1; $x++) { - self::putAlignmentMarker($frame, 6, $cx); - self::putAlignmentMarker($frame, $cx, 6); - $cx += $d; - } - - $cy = self::$alignmentPattern[$version][0]; - for($y=0; $y<$w-1; $y++) { - $cx = self::$alignmentPattern[$version][0]; - for($x=0; $x<$w-1; $x++) { - self::putAlignmentMarker($frame, $cx, $cy); - $cx += $d; - } - $cy += $d; - } - } - - // Version information pattern ----------------------------------------- - - // Version information pattern (BCH coded). - // See Table 1 in Appendix D (pp.68) of JIS X0510:2004. - - // size: [QRSPEC_VERSION_MAX - 6] - - public static $versionPattern = array( - 0x07c94, 0x085bc, 0x09a99, 0x0a4d3, 0x0bbf6, 0x0c762, 0x0d847, 0x0e60d, - 0x0f928, 0x10b78, 0x1145d, 0x12a17, 0x13532, 0x149a6, 0x15683, 0x168c9, - 0x177ec, 0x18ec4, 0x191e1, 0x1afab, 0x1b08e, 0x1cc1a, 0x1d33f, 0x1ed75, - 0x1f250, 0x209d5, 0x216f0, 0x228ba, 0x2379f, 0x24b0b, 0x2542e, 0x26a64, - 0x27541, 0x28c69 - ); - - //---------------------------------------------------------------------- - public static function getVersionPattern($version) - { - if($version < 7 || $version > QRSPEC_VERSION_MAX) - return 0; - - return self::$versionPattern[$version -7]; - } - - // Format information -------------------------------------------------- - // See calcFormatInfo in tests/test_qrspec.c (orginal qrencode c lib) - - public static $formatInfo = array( - array(0x77c4, 0x72f3, 0x7daa, 0x789d, 0x662f, 0x6318, 0x6c41, 0x6976), - array(0x5412, 0x5125, 0x5e7c, 0x5b4b, 0x45f9, 0x40ce, 0x4f97, 0x4aa0), - array(0x355f, 0x3068, 0x3f31, 0x3a06, 0x24b4, 0x2183, 0x2eda, 0x2bed), - array(0x1689, 0x13be, 0x1ce7, 0x19d0, 0x0762, 0x0255, 0x0d0c, 0x083b) - ); - - public static function getFormatInfo($mask, $level) - { - if($mask < 0 || $mask > 7) - return 0; - - if($level < 0 || $level > 3) - return 0; - - return self::$formatInfo[$level][$mask]; - } - - // Frame --------------------------------------------------------------- - // Cache of initial frames. - - public static $frames = array(); - - /** -------------------------------------------------------------------- - * Put a finder pattern. - * @param frame - * @param width - * @param ox,oy upper-left coordinate of the pattern - */ - public static function putFinderPattern(&$frame, $ox, $oy) - { - $finder = array( - "\xc1\xc1\xc1\xc1\xc1\xc1\xc1", - "\xc1\xc0\xc0\xc0\xc0\xc0\xc1", - "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", - "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", - "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", - "\xc1\xc0\xc0\xc0\xc0\xc0\xc1", - "\xc1\xc1\xc1\xc1\xc1\xc1\xc1" - ); - - for($y=0; $y<7; $y++) { - QRstr::set($frame, $ox, $oy+$y, $finder[$y]); - } - } - - //---------------------------------------------------------------------- - public static function createFrame($version) - { - $width = self::$capacity[$version][QRCAP_WIDTH]; - $frameLine = str_repeat ("\0", $width); - $frame = array_fill(0, $width, $frameLine); - - // Finder pattern - self::putFinderPattern($frame, 0, 0); - self::putFinderPattern($frame, $width - 7, 0); - self::putFinderPattern($frame, 0, $width - 7); - - // Separator - $yOffset = $width - 7; - - for($y=0; $y<7; $y++) { - $frame[$y][7] = "\xc0"; - $frame[$y][$width - 8] = "\xc0"; - $frame[$yOffset][7] = "\xc0"; - $yOffset++; - } - - $setPattern = str_repeat("\xc0", 8); - - QRstr::set($frame, 0, 7, $setPattern); - QRstr::set($frame, $width-8, 7, $setPattern); - QRstr::set($frame, 0, $width - 8, $setPattern); - - // Format info - $setPattern = str_repeat("\x84", 9); - QRstr::set($frame, 0, 8, $setPattern); - QRstr::set($frame, $width - 8, 8, $setPattern, 8); - - $yOffset = $width - 8; - - for($y=0; $y<8; $y++,$yOffset++) { - $frame[$y][8] = "\x84"; - $frame[$yOffset][8] = "\x84"; - } - - // Timing pattern - - for($i=1; $i<$width-15; $i++) { - $frame[6][7+$i] = chr(0x90 | ($i & 1)); - $frame[7+$i][6] = chr(0x90 | ($i & 1)); - } - - // Alignment pattern - self::putAlignmentPattern($version, $frame, $width); - - // Version information - if($version >= 7) { - $vinf = self::getVersionPattern($version); - - $v = $vinf; - - for($x=0; $x<6; $x++) { - for($y=0; $y<3; $y++) { - $frame[($width - 11)+$y][$x] = chr(0x88 | ($v & 1)); - $v = $v >> 1; - } - } - - $v = $vinf; - for($y=0; $y<6; $y++) { - for($x=0; $x<3; $x++) { - $frame[$y][$x+($width - 11)] = chr(0x88 | ($v & 1)); - $v = $v >> 1; - } - } - } - - // and a little bit... - $frame[$width - 8][8] = "\x81"; - - return $frame; - } - - //---------------------------------------------------------------------- - public static function debug($frame, $binary_mode = false) - { - if ($binary_mode) { - - foreach ($frame as &$frameLine) { - $frameLine = join('  ', explode('0', $frameLine)); - $frameLine = join('██', explode('1', $frameLine)); - } - - ?> - -


        '; - echo join("
        ", $frame); - echo '






'; - - } else { - - foreach ($frame as &$frameLine) { - $frameLine = join(' ', explode("\xc0", $frameLine)); - $frameLine = join('', explode("\xc1", $frameLine)); - $frameLine = join(' ', explode("\xa0", $frameLine)); - $frameLine = join('', explode("\xa1", $frameLine)); - $frameLine = join('', explode("\x84", $frameLine)); //format 0 - $frameLine = join('', explode("\x85", $frameLine)); //format 1 - $frameLine = join('', explode("\x81", $frameLine)); //special bit - $frameLine = join(' ', explode("\x90", $frameLine)); //clock 0 - $frameLine = join('', explode("\x91", $frameLine)); //clock 1 - $frameLine = join(' ', explode("\x88", $frameLine)); //version - $frameLine = join('', explode("\x89", $frameLine)); //version - $frameLine = join('♦', explode("\x01", $frameLine)); - $frameLine = join('⋅', explode("\0", $frameLine)); - } - - ?> - - "; - echo join("
", $frame); - echo "
"; - - } - } - - //---------------------------------------------------------------------- - public static function serial($frame) - { - return gzcompress(join("\n", $frame), 9); - } - - //---------------------------------------------------------------------- - public static function unserial($code) - { - return explode("\n", gzuncompress($code)); - } - - //---------------------------------------------------------------------- - public static function newFrame($version) - { - if($version < 1 || $version > QRSPEC_VERSION_MAX) - return null; - - if(!isset(self::$frames[$version])) { - - $fileName = QR_CACHE_DIR.'frame_'.$version.'.dat'; - - if (QR_CACHEABLE) { - if (file_exists($fileName)) { - self::$frames[$version] = self::unserial(file_get_contents($fileName)); - } else { - self::$frames[$version] = self::createFrame($version); - file_put_contents($fileName, self::serial(self::$frames[$version])); - } - } else { - self::$frames[$version] = self::createFrame($version); - } - } - - if(is_null(self::$frames[$version])) - return null; - - return self::$frames[$version]; - } - - //---------------------------------------------------------------------- - public static function rsBlockNum($spec) { return $spec[0] + $spec[3]; } - public static function rsBlockNum1($spec) { return $spec[0]; } - public static function rsDataCodes1($spec) { return $spec[1]; } - public static function rsEccCodes1($spec) { return $spec[2]; } - public static function rsBlockNum2($spec) { return $spec[3]; } - public static function rsDataCodes2($spec) { return $spec[4]; } - public static function rsEccCodes2($spec) { return $spec[2]; } - public static function rsDataLength($spec) { return ($spec[0] * $spec[1]) + ($spec[3] * $spec[4]); } - public static function rsEccLength($spec) { return ($spec[0] + $spec[3]) * $spec[2]; } - - } - - - -//---- qrimage.php ----------------------------- - - - - -/* - * PHP QR Code encoder - * - * Image output of code using GD2 - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - define('QR_IMAGE', true); - - class QRimage { - - //---------------------------------------------------------------------- - public static function png($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 4,$saveandprint=FALSE) - { - $image = self::image($frame, $pixelPerPoint, $outerFrame); - - if ($filename === false) { - Header("Content-type: image/png"); - ImagePng($image); - } else { - if($saveandprint===TRUE){ - ImagePng($image, $filename); - header("Content-type: image/png"); - ImagePng($image); - }else{ - ImagePng($image, $filename); - } - } - - ImageDestroy($image); - } - - //---------------------------------------------------------------------- - public static function jpg($frame, $filename = false, $pixelPerPoint = 8, $outerFrame = 4, $q = 85) - { - $image = self::image($frame, $pixelPerPoint, $outerFrame); - - if ($filename === false) { - Header("Content-type: image/jpeg"); - ImageJpeg($image, null, $q); - } else { - ImageJpeg($image, $filename, $q); - } - - ImageDestroy($image); - } - - //---------------------------------------------------------------------- - private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4) - { - $h = count($frame); - $w = strlen($frame[0]); - - $imgW = $w + 2*$outerFrame; - $imgH = $h + 2*$outerFrame; - - $base_image =ImageCreate($imgW, $imgH); - - $col[0] = ImageColorAllocate($base_image,255,255,255); - $col[1] = ImageColorAllocate($base_image,0,0,0); - - imagefill($base_image, 0, 0, $col[0]); - - for($y=0; $y<$h; $y++) { - for($x=0; $x<$w; $x++) { - if ($frame[$y][$x] == '1') { - ImageSetPixel($base_image,$x+$outerFrame,$y+$outerFrame,$col[1]); - } - } - } - - $target_image =ImageCreate($imgW * $pixelPerPoint, $imgH * $pixelPerPoint); - ImageCopyResized($target_image, $base_image, 0, 0, 0, 0, $imgW * $pixelPerPoint, $imgH * $pixelPerPoint, $imgW, $imgH); - ImageDestroy($base_image); - - return $target_image; - } - } - - - -//---- qrinput.php ----------------------------- - - - - -/* - * PHP QR Code encoder - * - * Input encoding class - * - * Based on libqrencode C library distributed under LGPL 2.1 - * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - define('STRUCTURE_HEADER_BITS', 20); - define('MAX_STRUCTURED_SYMBOLS', 16); - - class QRinputItem { - - public $mode; - public $size; - public $data; - public $bstream; - - public function __construct($mode, $size, $data, $bstream = null) - { - $setData = array_slice($data, 0, $size); - - if (count($setData) < $size) { - $setData = array_merge($setData, array_fill(0,$size-count($setData),0)); - } - - if(!QRinput::check($mode, $size, $setData)) { - throw new Exception('Error m:'.$mode.',s:'.$size.',d:'.join(',',$setData)); - return null; - } - - $this->mode = $mode; - $this->size = $size; - $this->data = $setData; - $this->bstream = $bstream; - } - - //---------------------------------------------------------------------- - public function encodeModeNum($version) - { - try { - - $words = (int)($this->size / 3); - $bs = new QRbitstream(); - - $val = 0x1; - $bs->appendNum(4, $val); - $bs->appendNum(QRspec::lengthIndicator(QR_MODE_NUM, $version), $this->size); - - for($i=0; $i<$words; $i++) { - $val = (ord($this->data[$i*3 ]) - ord('0')) * 100; - $val += (ord($this->data[$i*3+1]) - ord('0')) * 10; - $val += (ord($this->data[$i*3+2]) - ord('0')); - $bs->appendNum(10, $val); - } - - if($this->size - $words * 3 == 1) { - $val = ord($this->data[$words*3]) - ord('0'); - $bs->appendNum(4, $val); - } else if($this->size - $words * 3 == 2) { - $val = (ord($this->data[$words*3 ]) - ord('0')) * 10; - $val += (ord($this->data[$words*3+1]) - ord('0')); - $bs->appendNum(7, $val); - } - - $this->bstream = $bs; - return 0; - - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function encodeModeAn($version) - { - try { - $words = (int)($this->size / 2); - $bs = new QRbitstream(); - - $bs->appendNum(4, 0x02); - $bs->appendNum(QRspec::lengthIndicator(QR_MODE_AN, $version), $this->size); - - for($i=0; $i<$words; $i++) { - $val = (int)QRinput::lookAnTable(ord($this->data[$i*2 ])) * 45; - $val += (int)QRinput::lookAnTable(ord($this->data[$i*2+1])); - - $bs->appendNum(11, $val); - } - - if($this->size & 1) { - $val = QRinput::lookAnTable(ord($this->data[$words * 2])); - $bs->appendNum(6, $val); - } - - $this->bstream = $bs; - return 0; - - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function encodeMode8($version) - { - try { - $bs = new QRbitstream(); - - $bs->appendNum(4, 0x4); - $bs->appendNum(QRspec::lengthIndicator(QR_MODE_8, $version), $this->size); - - for($i=0; $i<$this->size; $i++) { - $bs->appendNum(8, ord($this->data[$i])); - } - - $this->bstream = $bs; - return 0; - - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function encodeModeKanji($version) - { - try { - - $bs = new QRbitrtream(); - - $bs->appendNum(4, 0x8); - $bs->appendNum(QRspec::lengthIndicator(QR_MODE_KANJI, $version), (int)($this->size / 2)); - - for($i=0; $i<$this->size; $i+=2) { - $val = (ord($this->data[$i]) << 8) | ord($this->data[$i+1]); - if($val <= 0x9ffc) { - $val -= 0x8140; - } else { - $val -= 0xc140; - } - - $h = ($val >> 8) * 0xc0; - $val = ($val & 0xff) + $h; - - $bs->appendNum(13, $val); - } - - $this->bstream = $bs; - return 0; - - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function encodeModeStructure() - { - try { - $bs = new QRbitstream(); - - $bs->appendNum(4, 0x03); - $bs->appendNum(4, ord($this->data[1]) - 1); - $bs->appendNum(4, ord($this->data[0]) - 1); - $bs->appendNum(8, ord($this->data[2])); - - $this->bstream = $bs; - return 0; - - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function estimateBitStreamSizeOfEntry($version) - { - $bits = 0; - - if($version == 0) - $version = 1; - - switch($this->mode) { - case QR_MODE_NUM: $bits = QRinput::estimateBitsModeNum($this->size); break; - case QR_MODE_AN: $bits = QRinput::estimateBitsModeAn($this->size); break; - case QR_MODE_8: $bits = QRinput::estimateBitsMode8($this->size); break; - case QR_MODE_KANJI: $bits = QRinput::estimateBitsModeKanji($this->size);break; - case QR_MODE_STRUCTURE: return STRUCTURE_HEADER_BITS; - default: - return 0; - } - - $l = QRspec::lengthIndicator($this->mode, $version); - $m = 1 << $l; - $num = (int)(($this->size + $m - 1) / $m); - - $bits += $num * (4 + $l); - - return $bits; - } - - //---------------------------------------------------------------------- - public function encodeBitStream($version) - { - try { - - unset($this->bstream); - $words = QRspec::maximumWords($this->mode, $version); - - if($this->size > $words) { - - $st1 = new QRinputItem($this->mode, $words, $this->data); - $st2 = new QRinputItem($this->mode, $this->size - $words, array_slice($this->data, $words)); - - $st1->encodeBitStream($version); - $st2->encodeBitStream($version); - - $this->bstream = new QRbitstream(); - $this->bstream->append($st1->bstream); - $this->bstream->append($st2->bstream); - - unset($st1); - unset($st2); - - } else { - - $ret = 0; - - switch($this->mode) { - case QR_MODE_NUM: $ret = $this->encodeModeNum($version); break; - case QR_MODE_AN: $ret = $this->encodeModeAn($version); break; - case QR_MODE_8: $ret = $this->encodeMode8($version); break; - case QR_MODE_KANJI: $ret = $this->encodeModeKanji($version);break; - case QR_MODE_STRUCTURE: $ret = $this->encodeModeStructure(); break; - - default: - break; - } - - if($ret < 0) - return -1; - } - - return $this->bstream->size(); - - } catch (Exception $e) { - return -1; - } - } - }; - - //########################################################################## - - class QRinput { - - public $items; - - private $version; - private $level; - - //---------------------------------------------------------------------- - public function __construct($version = 0, $level = QR_ECLEVEL_L) - { - if ($version < 0 || $version > QRSPEC_VERSION_MAX || $level > QR_ECLEVEL_H) { - throw new Exception('Invalid version no'); - return NULL; - } - - $this->version = $version; - $this->level = $level; - } - - //---------------------------------------------------------------------- - public function getVersion() - { - return $this->version; - } - - //---------------------------------------------------------------------- - public function setVersion($version) - { - if($version < 0 || $version > QRSPEC_VERSION_MAX) { - throw new Exception('Invalid version no'); - return -1; - } - - $this->version = $version; - - return 0; - } - - //---------------------------------------------------------------------- - public function getErrorCorrectionLevel() - { - return $this->level; - } - - //---------------------------------------------------------------------- - public function setErrorCorrectionLevel($level) - { - if($level > QR_ECLEVEL_H) { - throw new Exception('Invalid ECLEVEL'); - return -1; - } - - $this->level = $level; - - return 0; - } - - //---------------------------------------------------------------------- - public function appendEntry(QRinputItem $entry) - { - $this->items[] = $entry; - } - - //---------------------------------------------------------------------- - public function append($mode, $size, $data) - { - try { - $entry = new QRinputItem($mode, $size, $data); - $this->items[] = $entry; - return 0; - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - - public function insertStructuredAppendHeader($size, $index, $parity) - { - if( $size > MAX_STRUCTURED_SYMBOLS ) { - throw new Exception('insertStructuredAppendHeader wrong size'); - } - - if( $index <= 0 || $index > MAX_STRUCTURED_SYMBOLS ) { - throw new Exception('insertStructuredAppendHeader wrong index'); - } - - $buf = array($size, $index, $parity); - - try { - $entry = new QRinputItem(QR_MODE_STRUCTURE, 3, buf); - array_unshift($this->items, $entry); - return 0; - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function calcParity() - { - $parity = 0; - - foreach($this->items as $item) { - if($item->mode != QR_MODE_STRUCTURE) { - for($i=$item->size-1; $i>=0; $i--) { - $parity ^= $item->data[$i]; - } - } - } - - return $parity; - } - - //---------------------------------------------------------------------- - public static function checkModeNum($size, $data) - { - for($i=0; $i<$size; $i++) { - if((ord($data[$i]) < ord('0')) || (ord($data[$i]) > ord('9'))){ - return false; - } - } - - return true; - } - - //---------------------------------------------------------------------- - public static function estimateBitsModeNum($size) - { - $w = (int)$size / 3; - $bits = $w * 10; - - switch($size - $w * 3) { - case 1: - $bits += 4; - break; - case 2: - $bits += 7; - break; - default: - break; - } - - return $bits; - } - - //---------------------------------------------------------------------- - public static $anTable = array( - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, - -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 - ); - - //---------------------------------------------------------------------- - public static function lookAnTable($c) - { - return (($c > 127)?-1:self::$anTable[$c]); - } - - //---------------------------------------------------------------------- - public static function checkModeAn($size, $data) - { - for($i=0; $i<$size; $i++) { - if (self::lookAnTable(ord($data[$i])) == -1) { - return false; - } - } - - return true; - } - - //---------------------------------------------------------------------- - public static function estimateBitsModeAn($size) - { - $w = (int)($size / 2); - $bits = $w * 11; - - if($size & 1) { - $bits += 6; - } - - return $bits; - } - - //---------------------------------------------------------------------- - public static function estimateBitsMode8($size) - { - return $size * 8; - } - - //---------------------------------------------------------------------- - public function estimateBitsModeKanji($size) - { - return (int)(($size / 2) * 13); - } - - //---------------------------------------------------------------------- - public static function checkModeKanji($size, $data) - { - if($size & 1) - return false; - - for($i=0; $i<$size; $i+=2) { - $val = (ord($data[$i]) << 8) | ord($data[$i+1]); - if( $val < 0x8140 - || ($val > 0x9ffc && $val < 0xe040) - || $val > 0xebbf) { - return false; - } - } - - return true; - } - - /*********************************************************************** - * Validation - **********************************************************************/ - - public static function check($mode, $size, $data) - { - if($size <= 0) - return false; - - switch($mode) { - case QR_MODE_NUM: return self::checkModeNum($size, $data); break; - case QR_MODE_AN: return self::checkModeAn($size, $data); break; - case QR_MODE_KANJI: return self::checkModeKanji($size, $data); break; - case QR_MODE_8: return true; break; - case QR_MODE_STRUCTURE: return true; break; - - default: - break; - } - - return false; - } - - - //---------------------------------------------------------------------- - public function estimateBitStreamSize($version) - { - $bits = 0; - - foreach($this->items as $item) { - $bits += $item->estimateBitStreamSizeOfEntry($version); - } - - return $bits; - } - - //---------------------------------------------------------------------- - public function estimateVersion() - { - $version = 0; - $prev = 0; - do { - $prev = $version; - $bits = $this->estimateBitStreamSize($prev); - $version = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level); - if ($version < 0) { - return -1; - } - } while ($version > $prev); - - return $version; - } - - //---------------------------------------------------------------------- - public static function lengthOfCode($mode, $version, $bits) - { - $payload = $bits - 4 - QRspec::lengthIndicator($mode, $version); - switch($mode) { - case QR_MODE_NUM: - $chunks = (int)($payload / 10); - $remain = $payload - $chunks * 10; - $size = $chunks * 3; - if($remain >= 7) { - $size += 2; - } else if($remain >= 4) { - $size += 1; - } - break; - case QR_MODE_AN: - $chunks = (int)($payload / 11); - $remain = $payload - $chunks * 11; - $size = $chunks * 2; - if($remain >= 6) - $size++; - break; - case QR_MODE_8: - $size = (int)($payload / 8); - break; - case QR_MODE_KANJI: - $size = (int)(($payload / 13) * 2); - break; - case QR_MODE_STRUCTURE: - $size = (int)($payload / 8); - break; - default: - $size = 0; - break; - } - - $maxsize = QRspec::maximumWords($mode, $version); - if($size < 0) $size = 0; - if($size > $maxsize) $size = $maxsize; - - return $size; - } - - //---------------------------------------------------------------------- - public function createBitStream() - { - $total = 0; - - foreach($this->items as $item) { - $bits = $item->encodeBitStream($this->version); - - if($bits < 0) - return -1; - - $total += $bits; - } - - return $total; - } - - //---------------------------------------------------------------------- - public function convertData() - { - $ver = $this->estimateVersion(); - if($ver > $this->getVersion()) { - $this->setVersion($ver); - } - - for(;;) { - $bits = $this->createBitStream(); - - if($bits < 0) - return -1; - - $ver = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level); - if($ver < 0) { - throw new Exception('WRONG VERSION'); - return -1; - } else if($ver > $this->getVersion()) { - $this->setVersion($ver); - } else { - break; - } - } - - return 0; - } - - //---------------------------------------------------------------------- - public function appendPaddingBit(&$bstream) - { - $bits = $bstream->size(); - $maxwords = QRspec::getDataLength($this->version, $this->level); - $maxbits = $maxwords * 8; - - if ($maxbits == $bits) { - return 0; - } - - if ($maxbits - $bits < 5) { - return $bstream->appendNum($maxbits - $bits, 0); - } - - $bits += 4; - $words = (int)(($bits + 7) / 8); - - $padding = new QRbitstream(); - $ret = $padding->appendNum($words * 8 - $bits + 4, 0); - - if($ret < 0) - return $ret; - - $padlen = $maxwords - $words; - - if($padlen > 0) { - - $padbuf = array(); - for($i=0; $i<$padlen; $i++) { - $padbuf[$i] = ($i&1)?0x11:0xec; - } - - $ret = $padding->appendBytes($padlen, $padbuf); - - if($ret < 0) - return $ret; - - } - - $ret = $bstream->append($padding); - - return $ret; - } - - //---------------------------------------------------------------------- - public function mergeBitStream() - { - if($this->convertData() < 0) { - return null; - } - - $bstream = new QRbitstream(); - - foreach($this->items as $item) { - $ret = $bstream->append($item->bstream); - if($ret < 0) { - return null; - } - } - - return $bstream; - } - - //---------------------------------------------------------------------- - public function getBitStream() - { - - $bstream = $this->mergeBitStream(); - - if($bstream == null) { - return null; - } - - $ret = $this->appendPaddingBit($bstream); - if($ret < 0) { - return null; - } - - return $bstream; - } - - //---------------------------------------------------------------------- - public function getByteStream() - { - $bstream = $this->getBitStream(); - if($bstream == null) { - return null; - } - - return $bstream->toByte(); - } - } - - - - - - -//---- qrbitstream.php ----------------------------- - - - - -/* - * PHP QR Code encoder - * - * Bitstream class - * - * Based on libqrencode C library distributed under LGPL 2.1 - * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - class QRbitstream { - - public $data = array(); - - //---------------------------------------------------------------------- - public function size() - { - return count($this->data); - } - - //---------------------------------------------------------------------- - public function allocate($setLength) - { - $this->data = array_fill(0, $setLength, 0); - return 0; - } - - //---------------------------------------------------------------------- - public static function newFromNum($bits, $num) - { - $bstream = new QRbitstream(); - $bstream->allocate($bits); - - $mask = 1 << ($bits - 1); - for($i=0; $i<$bits; $i++) { - if($num & $mask) { - $bstream->data[$i] = 1; - } else { - $bstream->data[$i] = 0; - } - $mask = $mask >> 1; - } - - return $bstream; - } - - //---------------------------------------------------------------------- - public static function newFromBytes($size, $data) - { - $bstream = new QRbitstream(); - $bstream->allocate($size * 8); - $p=0; - - for($i=0; $i<$size; $i++) { - $mask = 0x80; - for($j=0; $j<8; $j++) { - if($data[$i] & $mask) { - $bstream->data[$p] = 1; - } else { - $bstream->data[$p] = 0; - } - $p++; - $mask = $mask >> 1; - } - } - - return $bstream; - } - - //---------------------------------------------------------------------- - public function append(QRbitstream $arg) - { - if (is_null($arg)) { - return -1; - } - - if($arg->size() == 0) { - return 0; - } - - if($this->size() == 0) { - $this->data = $arg->data; - return 0; - } - - $this->data = array_values(array_merge($this->data, $arg->data)); - - return 0; - } - - //---------------------------------------------------------------------- - public function appendNum($bits, $num) - { - if ($bits == 0) - return 0; - - $b = QRbitstream::newFromNum($bits, $num); - - if(is_null($b)) - return -1; - - $ret = $this->append($b); - unset($b); - - return $ret; - } - - //---------------------------------------------------------------------- - public function appendBytes($size, $data) - { - if ($size == 0) - return 0; - - $b = QRbitstream::newFromBytes($size, $data); - - if(is_null($b)) - return -1; - - $ret = $this->append($b); - unset($b); - - return $ret; - } - - //---------------------------------------------------------------------- - public function toByte() - { - - $size = $this->size(); - - if($size == 0) { - return array(); - } - - $data = array_fill(0, (int)(($size + 7) / 8), 0); - $bytes = (int)($size / 8); - - $p = 0; - - for($i=0; $i<$bytes; $i++) { - $v = 0; - for($j=0; $j<8; $j++) { - $v = $v << 1; - $v |= $this->data[$p]; - $p++; - } - $data[$i] = $v; - } - - if($size & 7) { - $v = 0; - for($j=0; $j<($size & 7); $j++) { - $v = $v << 1; - $v |= $this->data[$p]; - $p++; - } - $data[$bytes] = $v; - } - - return $data; - } - - } - - - - -//---- qrsplit.php ----------------------------- - - - - -/* - * PHP QR Code encoder - * - * Input splitting classes - * - * Based on libqrencode C library distributed under LGPL 2.1 - * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * The following data / specifications are taken from - * "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004) - * or - * "Automatic identification and data capture techniques -- - * QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006) - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - class QRsplit { - - public $dataStr = ''; - public $input; - public $modeHint; - - //---------------------------------------------------------------------- - public function __construct($dataStr, $input, $modeHint) - { - $this->dataStr = $dataStr; - $this->input = $input; - $this->modeHint = $modeHint; - } - - //---------------------------------------------------------------------- - public static function isdigitat($str, $pos) - { - if ($pos >= strlen($str)) - return false; - - return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9'))); - } - - //---------------------------------------------------------------------- - public static function isalnumat($str, $pos) - { - if ($pos >= strlen($str)) - return false; - - return (QRinput::lookAnTable(ord($str[$pos])) >= 0); - } - - //---------------------------------------------------------------------- - public function identifyMode($pos) - { - if ($pos >= strlen($this->dataStr)) - return QR_MODE_NUL; - - $c = $this->dataStr[$pos]; - - if(self::isdigitat($this->dataStr, $pos)) { - return QR_MODE_NUM; - } else if(self::isalnumat($this->dataStr, $pos)) { - return QR_MODE_AN; - } else if($this->modeHint == QR_MODE_KANJI) { - - if ($pos+1 < strlen($this->dataStr)) - { - $d = $this->dataStr[$pos+1]; - $word = (ord($c) << 8) | ord($d); - if(($word >= 0x8140 && $word <= 0x9ffc) || ($word >= 0xe040 && $word <= 0xebbf)) { - return QR_MODE_KANJI; - } - } - } - - return QR_MODE_8; - } - - //---------------------------------------------------------------------- - public function eatNum() - { - $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion()); - - $p = 0; - while(self::isdigitat($this->dataStr, $p)) { - $p++; - } - - $run = $p; - $mode = $this->identifyMode($p); - - if($mode == QR_MODE_8) { - $dif = QRinput::estimateBitsModeNum($run) + 4 + $ln - + QRinput::estimateBitsMode8(1) // + 4 + l8 - - QRinput::estimateBitsMode8($run + 1); // - 4 - l8 - if($dif > 0) { - return $this->eat8(); - } - } - if($mode == QR_MODE_AN) { - $dif = QRinput::estimateBitsModeNum($run) + 4 + $ln - + QRinput::estimateBitsModeAn(1) // + 4 + la - - QRinput::estimateBitsModeAn($run + 1);// - 4 - la - if($dif > 0) { - return $this->eatAn(); - } - } - - $ret = $this->input->append(QR_MODE_NUM, $run, str_split($this->dataStr)); - if($ret < 0) - return -1; - - return $run; - } - - //---------------------------------------------------------------------- - public function eatAn() - { - $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion()); - $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion()); - - $p = 0; - - while(self::isalnumat($this->dataStr, $p)) { - if(self::isdigitat($this->dataStr, $p)) { - $q = $p; - while(self::isdigitat($this->dataStr, $q)) { - $q++; - } - - $dif = QRinput::estimateBitsModeAn($p) // + 4 + la - + QRinput::estimateBitsModeNum($q - $p) + 4 + $ln - - QRinput::estimateBitsModeAn($q); // - 4 - la - - if($dif < 0) { - break; - } else { - $p = $q; - } - } else { - $p++; - } - } - - $run = $p; - - if(!self::isalnumat($this->dataStr, $p)) { - $dif = QRinput::estimateBitsModeAn($run) + 4 + $la - + QRinput::estimateBitsMode8(1) // + 4 + l8 - - QRinput::estimateBitsMode8($run + 1); // - 4 - l8 - if($dif > 0) { - return $this->eat8(); - } - } - - $ret = $this->input->append(QR_MODE_AN, $run, str_split($this->dataStr)); - if($ret < 0) - return -1; - - return $run; - } - - //---------------------------------------------------------------------- - public function eatKanji() - { - $p = 0; - - while($this->identifyMode($p) == QR_MODE_KANJI) { - $p += 2; - } - - $ret = $this->input->append(QR_MODE_KANJI, $p, str_split($this->dataStr)); - if($ret < 0) - return -1; - - return $run; - } - - //---------------------------------------------------------------------- - public function eat8() - { - $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion()); - $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion()); - - $p = 1; - $dataStrLen = strlen($this->dataStr); - - while($p < $dataStrLen) { - - $mode = $this->identifyMode($p); - if($mode == QR_MODE_KANJI) { - break; - } - if($mode == QR_MODE_NUM) { - $q = $p; - while(self::isdigitat($this->dataStr, $q)) { - $q++; - } - $dif = QRinput::estimateBitsMode8($p) // + 4 + l8 - + QRinput::estimateBitsModeNum($q - $p) + 4 + $ln - - QRinput::estimateBitsMode8($q); // - 4 - l8 - if($dif < 0) { - break; - } else { - $p = $q; - } - } else if($mode == QR_MODE_AN) { - $q = $p; - while(self::isalnumat($this->dataStr, $q)) { - $q++; - } - $dif = QRinput::estimateBitsMode8($p) // + 4 + l8 - + QRinput::estimateBitsModeAn($q - $p) + 4 + $la - - QRinput::estimateBitsMode8($q); // - 4 - l8 - if($dif < 0) { - break; - } else { - $p = $q; - } - } else { - $p++; - } - } - - $run = $p; - $ret = $this->input->append(QR_MODE_8, $run, str_split($this->dataStr)); - - if($ret < 0) - return -1; - - return $run; - } - - //---------------------------------------------------------------------- - public function splitString() - { - while (strlen($this->dataStr) > 0) - { - if($this->dataStr == '') - return 0; - - $mode = $this->identifyMode(0); - - switch ($mode) { - case QR_MODE_NUM: $length = $this->eatNum(); break; - case QR_MODE_AN: $length = $this->eatAn(); break; - case QR_MODE_KANJI: - if ($hint == QR_MODE_KANJI) - $length = $this->eatKanji(); - else $length = $this->eat8(); - break; - default: $length = $this->eat8(); break; - - } - - if($length == 0) return 0; - if($length < 0) return -1; - - $this->dataStr = substr($this->dataStr, $length); - } - } - - //---------------------------------------------------------------------- - public function toUpper() - { - $stringLen = strlen($this->dataStr); - $p = 0; - - while ($p<$stringLen) { - $mode = self::identifyMode(substr($this->dataStr, $p), $this->modeHint); - if($mode == QR_MODE_KANJI) { - $p += 2; - } else { - if (ord($this->dataStr[$p]) >= ord('a') && ord($this->dataStr[$p]) <= ord('z')) { - $this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32); - } - $p++; - } - } - - return $this->dataStr; - } - - //---------------------------------------------------------------------- - public static function splitStringToQRinput($string, QRinput $input, $modeHint, $casesensitive = true) - { - if(is_null($string) || $string == '\0' || $string == '') { - throw new Exception('empty string!!!'); - } - - $split = new QRsplit($string, $input, $modeHint); - - if(!$casesensitive) - $split->toUpper(); - - return $split->splitString(); - } - } - - - -//---- qrrscode.php ----------------------------- - - - - -/* - * PHP QR Code encoder - * - * Reed-Solomon error correction support - * - * Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q - * (libfec is released under the GNU Lesser General Public License.) - * - * Based on libqrencode C library distributed under LGPL 2.1 - * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - class QRrsItem { - - public $mm; // Bits per symbol - public $nn; // Symbols per block (= (1<= $this->nn) { - $x -= $this->nn; - $x = ($x >> $this->mm) + ($x & $this->nn); - } - - return $x; - } - - //---------------------------------------------------------------------- - public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) - { - // Common code for intializing a Reed-Solomon control block (char or int symbols) - // Copyright 2004 Phil Karn, KA9Q - // May be used under the terms of the GNU Lesser General Public License (LGPL) - - $rs = null; - - // Check parameter ranges - if($symsize < 0 || $symsize > 8) return $rs; - if($fcr < 0 || $fcr >= (1<<$symsize)) return $rs; - if($prim <= 0 || $prim >= (1<<$symsize)) return $rs; - if($nroots < 0 || $nroots >= (1<<$symsize)) return $rs; // Can't have more roots than symbol values! - if($pad < 0 || $pad >= ((1<<$symsize) -1 - $nroots)) return $rs; // Too much padding - - $rs = new QRrsItem(); - $rs->mm = $symsize; - $rs->nn = (1<<$symsize)-1; - $rs->pad = $pad; - - $rs->alpha_to = array_fill(0, $rs->nn+1, 0); - $rs->index_of = array_fill(0, $rs->nn+1, 0); - - // PHP style macro replacement ;) - $NN =& $rs->nn; - $A0 =& $NN; - - // Generate Galois field lookup tables - $rs->index_of[0] = $A0; // log(zero) = -inf - $rs->alpha_to[$A0] = 0; // alpha**-inf = 0 - $sr = 1; - - for($i=0; $i<$rs->nn; $i++) { - $rs->index_of[$sr] = $i; - $rs->alpha_to[$i] = $sr; - $sr <<= 1; - if($sr & (1<<$symsize)) { - $sr ^= $gfpoly; - } - $sr &= $rs->nn; - } - - if($sr != 1){ - // field generator polynomial is not primitive! - $rs = NULL; - return $rs; - } - - /* Form RS code generator polynomial from its roots */ - $rs->genpoly = array_fill(0, $nroots+1, 0); - - $rs->fcr = $fcr; - $rs->prim = $prim; - $rs->nroots = $nroots; - $rs->gfpoly = $gfpoly; - - /* Find prim-th root of 1, used in decoding */ - for($iprim=1;($iprim % $prim) != 0;$iprim += $rs->nn) - ; // intentional empty-body loop! - - $rs->iprim = (int)($iprim / $prim); - $rs->genpoly[0] = 1; - - for ($i = 0,$root=$fcr*$prim; $i < $nroots; $i++, $root += $prim) { - $rs->genpoly[$i+1] = 1; - - // Multiply rs->genpoly[] by @**(root + x) - for ($j = $i; $j > 0; $j--) { - if ($rs->genpoly[$j] != 0) { - $rs->genpoly[$j] = $rs->genpoly[$j-1] ^ $rs->alpha_to[$rs->modnn($rs->index_of[$rs->genpoly[$j]] + $root)]; - } else { - $rs->genpoly[$j] = $rs->genpoly[$j-1]; - } - } - // rs->genpoly[0] can never be zero - $rs->genpoly[0] = $rs->alpha_to[$rs->modnn($rs->index_of[$rs->genpoly[0]] + $root)]; - } - - // convert rs->genpoly[] to index form for quicker encoding - for ($i = 0; $i <= $nroots; $i++) - $rs->genpoly[$i] = $rs->index_of[$rs->genpoly[$i]]; - - return $rs; - } - - //---------------------------------------------------------------------- - public function encode_rs_char($data, &$parity) - { - $MM =& $this->mm; - $NN =& $this->nn; - $ALPHA_TO =& $this->alpha_to; - $INDEX_OF =& $this->index_of; - $GENPOLY =& $this->genpoly; - $NROOTS =& $this->nroots; - $FCR =& $this->fcr; - $PRIM =& $this->prim; - $IPRIM =& $this->iprim; - $PAD =& $this->pad; - $A0 =& $NN; - - $parity = array_fill(0, $NROOTS, 0); - - for($i=0; $i< ($NN-$NROOTS-$PAD); $i++) { - - $feedback = $INDEX_OF[$data[$i] ^ $parity[0]]; - if($feedback != $A0) { - // feedback term is non-zero - - // This line is unnecessary when GENPOLY[NROOTS] is unity, as it must - // always be for the polynomials constructed by init_rs() - $feedback = $this->modnn($NN - $GENPOLY[$NROOTS] + $feedback); - - for($j=1;$j<$NROOTS;$j++) { - $parity[$j] ^= $ALPHA_TO[$this->modnn($feedback + $GENPOLY[$NROOTS-$j])]; - } - } - - // Shift - array_shift($parity); - if($feedback != $A0) { - array_push($parity, $ALPHA_TO[$this->modnn($feedback + $GENPOLY[0])]); - } else { - array_push($parity, 0); - } - } - } - } - - //########################################################################## - - class QRrs { - - public static $items = array(); - - //---------------------------------------------------------------------- - public static function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) - { - foreach(self::$items as $rs) { - if($rs->pad != $pad) continue; - if($rs->nroots != $nroots) continue; - if($rs->mm != $symsize) continue; - if($rs->gfpoly != $gfpoly) continue; - if($rs->fcr != $fcr) continue; - if($rs->prim != $prim) continue; - - return $rs; - } - - $rs = QRrsItem::init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad); - array_unshift(self::$items, $rs); - - return $rs; - } - } - - - -//---- qrmask.php ----------------------------- - - - - -/* - * PHP QR Code encoder - * - * Masking - * - * Based on libqrencode C library distributed under LGPL 2.1 - * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - define('N1', 3); - define('N2', 3); - define('N3', 40); - define('N4', 10); - - class QRmask { - - public $runLength = array(); - - //---------------------------------------------------------------------- - public function __construct() - { - $this->runLength = array_fill(0, QRSPEC_WIDTH_MAX + 1, 0); - } - - //---------------------------------------------------------------------- - public function writeFormatInformation($width, &$frame, $mask, $level) - { - $blacks = 0; - $format = QRspec::getFormatInfo($mask, $level); - - for($i=0; $i<8; $i++) { - if($format & 1) { - $blacks += 2; - $v = 0x85; - } else { - $v = 0x84; - } - - $frame[8][$width - 1 - $i] = chr($v); - if($i < 6) { - $frame[$i][8] = chr($v); - } else { - $frame[$i + 1][8] = chr($v); - } - $format = $format >> 1; - } - - for($i=0; $i<7; $i++) { - if($format & 1) { - $blacks += 2; - $v = 0x85; - } else { - $v = 0x84; - } - - $frame[$width - 7 + $i][8] = chr($v); - if($i == 0) { - $frame[8][7] = chr($v); - } else { - $frame[8][6 - $i] = chr($v); - } - - $format = $format >> 1; - } - - return $blacks; - } - - //---------------------------------------------------------------------- - public function mask0($x, $y) { return ($x+$y)&1; } - public function mask1($x, $y) { return ($y&1); } - public function mask2($x, $y) { return ($x%3); } - public function mask3($x, $y) { return ($x+$y)%3; } - public function mask4($x, $y) { return (((int)($y/2))+((int)($x/3)))&1; } - public function mask5($x, $y) { return (($x*$y)&1)+($x*$y)%3; } - public function mask6($x, $y) { return ((($x*$y)&1)+($x*$y)%3)&1; } - public function mask7($x, $y) { return ((($x*$y)%3)+(($x+$y)&1))&1; } - - //---------------------------------------------------------------------- - private function generateMaskNo($maskNo, $width, $frame) - { - $bitMask = array_fill(0, $width, array_fill(0, $width, 0)); - - for($y=0; $y<$width; $y++) { - for($x=0; $x<$width; $x++) { - if(ord($frame[$y][$x]) & 0x80) { - $bitMask[$y][$x] = 0; - } else { - $maskFunc = call_user_func(array($this, 'mask'.$maskNo), $x, $y); - $bitMask[$y][$x] = ($maskFunc == 0)?1:0; - } - - } - } - - return $bitMask; - } - - //---------------------------------------------------------------------- - public static function serial($bitFrame) - { - $codeArr = array(); - - foreach ($bitFrame as $line) - $codeArr[] = join('', $line); - - return gzcompress(join("\n", $codeArr), 9); - } - - //---------------------------------------------------------------------- - public static function unserial($code) - { - $codeArr = array(); - - $codeLines = explode("\n", gzuncompress($code)); - foreach ($codeLines as $line) - $codeArr[] = str_split($line); - - return $codeArr; - } - - //---------------------------------------------------------------------- - public function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly = false) - { - $b = 0; - $bitMask = array(); - - $fileName = QR_CACHE_DIR.'mask_'.$maskNo.DIRECTORY_SEPARATOR.'mask_'.$width.'_'.$maskNo.'.dat'; - - if (QR_CACHEABLE) { - if (file_exists($fileName)) { - $bitMask = self::unserial(file_get_contents($fileName)); - } else { - $bitMask = $this->generateMaskNo($maskNo, $width, $s, $d); - if (!file_exists(QR_CACHE_DIR.'mask_'.$maskNo)) - mkdir(QR_CACHE_DIR.'mask_'.$maskNo); - file_put_contents($fileName, self::serial($bitMask)); - } - } else { - $bitMask = $this->generateMaskNo($maskNo, $width, $s, $d); - } - - if ($maskGenOnly) - return; - - $d = $s; - - for($y=0; $y<$width; $y++) { - for($x=0; $x<$width; $x++) { - if($bitMask[$y][$x] == 1) { - $d[$y][$x] = chr(ord($s[$y][$x]) ^ (int)$bitMask[$y][$x]); - } - $b += (int)(ord($d[$y][$x]) & 1); - } - } - - return $b; - } - - //---------------------------------------------------------------------- - public function makeMask($width, $frame, $maskNo, $level) - { - $masked = array_fill(0, $width, str_repeat("\0", $width)); - $this->makeMaskNo($maskNo, $width, $frame, $masked); - $this->writeFormatInformation($width, $masked, $maskNo, $level); - - return $masked; - } - - //---------------------------------------------------------------------- - public function calcN1N3($length) - { - $demerit = 0; - - for($i=0; $i<$length; $i++) { - - if($this->runLength[$i] >= 5) { - $demerit += (N1 + ($this->runLength[$i] - 5)); - } - if($i & 1) { - if(($i >= 3) && ($i < ($length-2)) && ($this->runLength[$i] % 3 == 0)) { - $fact = (int)($this->runLength[$i] / 3); - if(($this->runLength[$i-2] == $fact) && - ($this->runLength[$i-1] == $fact) && - ($this->runLength[$i+1] == $fact) && - ($this->runLength[$i+2] == $fact)) { - if(($this->runLength[$i-3] < 0) || ($this->runLength[$i-3] >= (4 * $fact))) { - $demerit += N3; - } else if((($i+3) >= $length) || ($this->runLength[$i+3] >= (4 * $fact))) { - $demerit += N3; - } - } - } - } - } - return $demerit; - } - - //---------------------------------------------------------------------- - public function evaluateSymbol($width, $frame) - { - $head = 0; - $demerit = 0; - - for($y=0; $y<$width; $y++) { - $head = 0; - $this->runLength[0] = 1; - - $frameY = $frame[$y]; - - if ($y>0) - $frameYM = $frame[$y-1]; - - for($x=0; $x<$width; $x++) { - if(($x > 0) && ($y > 0)) { - $b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]); - $w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]); - - if(($b22 | ($w22 ^ 1))&1) { - $demerit += N2; - } - } - if(($x == 0) && (ord($frameY[$x]) & 1)) { - $this->runLength[0] = -1; - $head = 1; - $this->runLength[$head] = 1; - } else if($x > 0) { - if((ord($frameY[$x]) ^ ord($frameY[$x-1])) & 1) { - $head++; - $this->runLength[$head] = 1; - } else { - $this->runLength[$head]++; - } - } - } - - $demerit += $this->calcN1N3($head+1); - } - - for($x=0; $x<$width; $x++) { - $head = 0; - $this->runLength[0] = 1; - - for($y=0; $y<$width; $y++) { - if($y == 0 && (ord($frame[$y][$x]) & 1)) { - $this->runLength[0] = -1; - $head = 1; - $this->runLength[$head] = 1; - } else if($y > 0) { - if((ord($frame[$y][$x]) ^ ord($frame[$y-1][$x])) & 1) { - $head++; - $this->runLength[$head] = 1; - } else { - $this->runLength[$head]++; - } - } - } - - $demerit += $this->calcN1N3($head+1); - } - - return $demerit; - } - - - //---------------------------------------------------------------------- - public function mask($width, $frame, $level) - { - $minDemerit = PHP_INT_MAX; - $bestMaskNum = 0; - $bestMask = array(); - - $checked_masks = array(0,1,2,3,4,5,6,7); - - if (QR_FIND_FROM_RANDOM !== false) { - - $howManuOut = 8-(QR_FIND_FROM_RANDOM % 9); - for ($i = 0; $i < $howManuOut; $i++) { - $remPos = rand (0, count($checked_masks)-1); - unset($checked_masks[$remPos]); - $checked_masks = array_values($checked_masks); - } - - } - - $bestMask = $frame; - - foreach($checked_masks as $i) { - $mask = array_fill(0, $width, str_repeat("\0", $width)); - - $demerit = 0; - $blacks = 0; - $blacks = $this->makeMaskNo($i, $width, $frame, $mask); - $blacks += $this->writeFormatInformation($width, $mask, $i, $level); - $blacks = (int)(100 * $blacks / ($width * $width)); - $demerit = (int)((int)(abs($blacks - 50) / 5) * N4); - $demerit += $this->evaluateSymbol($width, $mask); - - if($demerit < $minDemerit) { - $minDemerit = $demerit; - $bestMask = $mask; - $bestMaskNum = $i; - } - } - - return $bestMask; - } - - //---------------------------------------------------------------------- - } - - - - -//---- qrencode.php ----------------------------- - - - - -/* - * PHP QR Code encoder - * - * Main encoder classes. - * - * Based on libqrencode C library distributed under LGPL 2.1 - * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - class QRrsblock { - public $dataLength; - public $data = array(); - public $eccLength; - public $ecc = array(); - - public function __construct($dl, $data, $el, &$ecc, QRrsItem $rs) - { - $rs->encode_rs_char($data, $ecc); - - $this->dataLength = $dl; - $this->data = $data; - $this->eccLength = $el; - $this->ecc = $ecc; - } - }; - - //########################################################################## - - class QRrawcode { - public $version; - public $datacode = array(); - public $ecccode = array(); - public $blocks; - public $rsblocks = array(); //of RSblock - public $count; - public $dataLength; - public $eccLength; - public $b1; - - //---------------------------------------------------------------------- - public function __construct(QRinput $input) - { - $spec = array(0,0,0,0,0); - - $this->datacode = $input->getByteStream(); - if(is_null($this->datacode)) { - throw new Exception('null imput string'); - } - - QRspec::getEccSpec($input->getVersion(), $input->getErrorCorrectionLevel(), $spec); - - $this->version = $input->getVersion(); - $this->b1 = QRspec::rsBlockNum1($spec); - $this->dataLength = QRspec::rsDataLength($spec); - $this->eccLength = QRspec::rsEccLength($spec); - $this->ecccode = array_fill(0, $this->eccLength, 0); - $this->blocks = QRspec::rsBlockNum($spec); - - $ret = $this->init($spec); - if($ret < 0) { - throw new Exception('block alloc error'); - return null; - } - - $this->count = 0; - } - - //---------------------------------------------------------------------- - public function init(array $spec) - { - $dl = QRspec::rsDataCodes1($spec); - $el = QRspec::rsEccCodes1($spec); - $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el); - - - $blockNo = 0; - $dataPos = 0; - $eccPos = 0; - for($i=0; $iecccode,$eccPos); - $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs); - $this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc); - - $dataPos += $dl; - $eccPos += $el; - $blockNo++; - } - - if(QRspec::rsBlockNum2($spec) == 0) - return 0; - - $dl = QRspec::rsDataCodes2($spec); - $el = QRspec::rsEccCodes2($spec); - $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el); - - if($rs == NULL) return -1; - - for($i=0; $iecccode,$eccPos); - $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs); - $this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc); - - $dataPos += $dl; - $eccPos += $el; - $blockNo++; - } - - return 0; - } - - //---------------------------------------------------------------------- - public function getCode() - { - $ret; - - if($this->count < $this->dataLength) { - $row = $this->count % $this->blocks; - $col = $this->count / $this->blocks; - if($col >= $this->rsblocks[0]->dataLength) { - $row += $this->b1; - } - $ret = $this->rsblocks[$row]->data[$col]; - } else if($this->count < $this->dataLength + $this->eccLength) { - $row = ($this->count - $this->dataLength) % $this->blocks; - $col = ($this->count - $this->dataLength) / $this->blocks; - $ret = $this->rsblocks[$row]->ecc[$col]; - } else { - return 0; - } - $this->count++; - - return $ret; - } - } - - //########################################################################## - - class QRcode { - - public $version; - public $width; - public $data; - - //---------------------------------------------------------------------- - public function encodeMask(QRinput $input, $mask) - { - if($input->getVersion() < 0 || $input->getVersion() > QRSPEC_VERSION_MAX) { - throw new Exception('wrong version'); - } - if($input->getErrorCorrectionLevel() > QR_ECLEVEL_H) { - throw new Exception('wrong level'); - } - - $raw = new QRrawcode($input); - - QRtools::markTime('after_raw'); - - $version = $raw->version; - $width = QRspec::getWidth($version); - $frame = QRspec::newFrame($version); - - $filler = new FrameFiller($width, $frame); - if(is_null($filler)) { - return NULL; - } - - // inteleaved data and ecc codes - for($i=0; $i<$raw->dataLength + $raw->eccLength; $i++) { - $code = $raw->getCode(); - $bit = 0x80; - for($j=0; $j<8; $j++) { - $addr = $filler->next(); - $filler->setFrameAt($addr, 0x02 | (($bit & $code) != 0)); - $bit = $bit >> 1; - } - } - - QRtools::markTime('after_filler'); - - unset($raw); - - // remainder bits - $j = QRspec::getRemainder($version); - for($i=0; $i<$j; $i++) { - $addr = $filler->next(); - $filler->setFrameAt($addr, 0x02); - } - - $frame = $filler->frame; - unset($filler); - - - // masking - $maskObj = new QRmask(); - if($mask < 0) { - - if (QR_FIND_BEST_MASK) { - $masked = $maskObj->mask($width, $frame, $input->getErrorCorrectionLevel()); - } else { - $masked = $maskObj->makeMask($width, $frame, (intval(QR_DEFAULT_MASK) % 8), $input->getErrorCorrectionLevel()); - } - } else { - $masked = $maskObj->makeMask($width, $frame, $mask, $input->getErrorCorrectionLevel()); - } - - if($masked == NULL) { - return NULL; - } - - QRtools::markTime('after_mask'); - - $this->version = $version; - $this->width = $width; - $this->data = $masked; - - return $this; - } - - //---------------------------------------------------------------------- - public function encodeInput(QRinput $input) - { - return $this->encodeMask($input, -1); - } - - //---------------------------------------------------------------------- - public function encodeString8bit($string, $version, $level) - { - if(string == NULL) { - throw new Exception('empty string!'); - return NULL; - } - - $input = new QRinput($version, $level); - if($input == NULL) return NULL; - - $ret = $input->append($input, QR_MODE_8, strlen($string), str_split($string)); - if($ret < 0) { - unset($input); - return NULL; - } - return $this->encodeInput($input); - } - - //---------------------------------------------------------------------- - public function encodeString($string, $version, $level, $hint, $casesensitive) - { - - if($hint != QR_MODE_8 && $hint != QR_MODE_KANJI) { - throw new Exception('bad hint'); - return NULL; - } - - $input = new QRinput($version, $level); - if($input == NULL) return NULL; - - $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive); - if($ret < 0) { - return NULL; - } - - return $this->encodeInput($input); - } - - //---------------------------------------------------------------------- - public static function png($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false) - { - $enc = QRencode::factory($level, $size, $margin); - return $enc->encodePNG($text, $outfile, $saveandprint=false); - } - - //---------------------------------------------------------------------- - public static function text($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4) - { - $enc = QRencode::factory($level, $size, $margin); - return $enc->encode($text, $outfile); - } - - //---------------------------------------------------------------------- - public static function raw($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4) - { - $enc = QRencode::factory($level, $size, $margin); - return $enc->encodeRAW($text, $outfile); - } - } - - //########################################################################## - - class FrameFiller { - - public $width; - public $frame; - public $x; - public $y; - public $dir; - public $bit; - - //---------------------------------------------------------------------- - public function __construct($width, &$frame) - { - $this->width = $width; - $this->frame = $frame; - $this->x = $width - 1; - $this->y = $width - 1; - $this->dir = -1; - $this->bit = -1; - } - - //---------------------------------------------------------------------- - public function setFrameAt($at, $val) - { - $this->frame[$at['y']][$at['x']] = chr($val); - } - - //---------------------------------------------------------------------- - public function getFrameAt($at) - { - return ord($this->frame[$at['y']][$at['x']]); - } - - //---------------------------------------------------------------------- - public function next() - { - do { - - if($this->bit == -1) { - $this->bit = 0; - return array('x'=>$this->x, 'y'=>$this->y); - } - - $x = $this->x; - $y = $this->y; - $w = $this->width; - - if($this->bit == 0) { - $x--; - $this->bit++; - } else { - $x++; - $y += $this->dir; - $this->bit--; - } - - if($this->dir < 0) { - if($y < 0) { - $y = 0; - $x -= 2; - $this->dir = 1; - if($x == 6) { - $x--; - $y = 9; - } - } - } else { - if($y == $w) { - $y = $w - 1; - $x -= 2; - $this->dir = -1; - if($x == 6) { - $x--; - $y -= 8; - } - } - } - if($x < 0 || $y < 0) return null; - - $this->x = $x; - $this->y = $y; - - } while(ord($this->frame[$y][$x]) & 0x80); - - return array('x'=>$x, 'y'=>$y); - } - - } ; - - //########################################################################## - - class QRencode { - - public $casesensitive = true; - public $eightbit = false; - - public $version = 0; - public $size = 3; - public $margin = 4; - - public $structured = 0; // not supported yet - - public $level = QR_ECLEVEL_L; - public $hint = QR_MODE_8; - - //---------------------------------------------------------------------- - public static function factory($level = QR_ECLEVEL_L, $size = 3, $margin = 4) - { - $enc = new QRencode(); - $enc->size = $size; - $enc->margin = $margin; - - switch ($level.'') { - case '0': - case '1': - case '2': - case '3': - $enc->level = $level; - break; - case 'l': - case 'L': - $enc->level = QR_ECLEVEL_L; - break; - case 'm': - case 'M': - $enc->level = QR_ECLEVEL_M; - break; - case 'q': - case 'Q': - $enc->level = QR_ECLEVEL_Q; - break; - case 'h': - case 'H': - $enc->level = QR_ECLEVEL_H; - break; - } - - return $enc; - } - - //---------------------------------------------------------------------- - public function encodeRAW($intext, $outfile = false) - { - $code = new QRcode(); - - if($this->eightbit) { - $code->encodeString8bit($intext, $this->version, $this->level); - } else { - $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive); - } - - return $code->data; - } - - //---------------------------------------------------------------------- - public function encode($intext, $outfile = false) - { - $code = new QRcode(); - - if($this->eightbit) { - $code->encodeString8bit($intext, $this->version, $this->level); - } else { - $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive); - } - - QRtools::markTime('after_encode'); - - if ($outfile!== false) { - file_put_contents($outfile, join("\n", QRtools::binarize($code->data))); - } else { - return QRtools::binarize($code->data); - } - } - - //---------------------------------------------------------------------- - public function encodePNG($intext, $outfile = false,$saveandprint=false) - { - try { - - ob_start(); - $tab = $this->encode($intext); - $err = ob_get_contents(); - ob_end_clean(); - - if ($err != '') - QRtools::log($outfile, $err); - - $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin)); - - QRimage::png($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin,$saveandprint); - - } catch (Exception $e) { - - QRtools::log($outfile, $e->getMessage()); - - } - } - } - - diff --git a/admin/phpqrcode/qrbitstream.php b/admin/phpqrcode/qrbitstream.php deleted file mode 100644 index 7d4ec4a..0000000 --- a/admin/phpqrcode/qrbitstream.php +++ /dev/null @@ -1,180 +0,0 @@ - - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - class QRbitstream { - - public $data = array(); - - //---------------------------------------------------------------------- - public function size() - { - return count($this->data); - } - - //---------------------------------------------------------------------- - public function allocate($setLength) - { - $this->data = array_fill(0, $setLength, 0); - return 0; - } - - //---------------------------------------------------------------------- - public static function newFromNum($bits, $num) - { - $bstream = new QRbitstream(); - $bstream->allocate($bits); - - $mask = 1 << ($bits - 1); - for($i=0; $i<$bits; $i++) { - if($num & $mask) { - $bstream->data[$i] = 1; - } else { - $bstream->data[$i] = 0; - } - $mask = $mask >> 1; - } - - return $bstream; - } - - //---------------------------------------------------------------------- - public static function newFromBytes($size, $data) - { - $bstream = new QRbitstream(); - $bstream->allocate($size * 8); - $p=0; - - for($i=0; $i<$size; $i++) { - $mask = 0x80; - for($j=0; $j<8; $j++) { - if($data[$i] & $mask) { - $bstream->data[$p] = 1; - } else { - $bstream->data[$p] = 0; - } - $p++; - $mask = $mask >> 1; - } - } - - return $bstream; - } - - //---------------------------------------------------------------------- - public function append(QRbitstream $arg) - { - if (is_null($arg)) { - return -1; - } - - if($arg->size() == 0) { - return 0; - } - - if($this->size() == 0) { - $this->data = $arg->data; - return 0; - } - - $this->data = array_values(array_merge($this->data, $arg->data)); - - return 0; - } - - //---------------------------------------------------------------------- - public function appendNum($bits, $num) - { - if ($bits == 0) - return 0; - - $b = QRbitstream::newFromNum($bits, $num); - - if(is_null($b)) - return -1; - - $ret = $this->append($b); - unset($b); - - return $ret; - } - - //---------------------------------------------------------------------- - public function appendBytes($size, $data) - { - if ($size == 0) - return 0; - - $b = QRbitstream::newFromBytes($size, $data); - - if(is_null($b)) - return -1; - - $ret = $this->append($b); - unset($b); - - return $ret; - } - - //---------------------------------------------------------------------- - public function toByte() - { - - $size = $this->size(); - - if($size == 0) { - return array(); - } - - $data = array_fill(0, (int)(($size + 7) / 8), 0); - $bytes = (int)($size / 8); - - $p = 0; - - for($i=0; $i<$bytes; $i++) { - $v = 0; - for($j=0; $j<8; $j++) { - $v = $v << 1; - $v |= $this->data[$p]; - $p++; - } - $data[$i] = $v; - } - - if($size & 7) { - $v = 0; - for($j=0; $j<($size & 7); $j++) { - $v = $v << 1; - $v |= $this->data[$p]; - $p++; - } - $data[$bytes] = $v; - } - - return $data; - } - - } diff --git a/admin/phpqrcode/qrconfig.php b/admin/phpqrcode/qrconfig.php deleted file mode 100644 index e53dff8..0000000 --- a/admin/phpqrcode/qrconfig.php +++ /dev/null @@ -1,17 +0,0 @@ - - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - // Encoding modes - - define('QR_MODE_NUL', -1); - define('QR_MODE_NUM', 0); - define('QR_MODE_AN', 1); - define('QR_MODE_8', 2); - define('QR_MODE_KANJI', 3); - define('QR_MODE_STRUCTURE', 4); - - // Levels of error correction. - - define('QR_ECLEVEL_L', 0); - define('QR_ECLEVEL_M', 1); - define('QR_ECLEVEL_Q', 2); - define('QR_ECLEVEL_H', 3); - - // Supported output formats - - define('QR_FORMAT_TEXT', 0); - define('QR_FORMAT_PNG', 1); - - class qrstr { - public static function set(&$srctab, $x, $y, $repl, $replLen = false) { - $srctab[$y] = substr_replace($srctab[$y], ($replLen !== false)?substr($repl,0,$replLen):$repl, $x, ($replLen !== false)?$replLen:strlen($repl)); - } - } \ No newline at end of file diff --git a/admin/phpqrcode/qrencode.php b/admin/phpqrcode/qrencode.php deleted file mode 100644 index 4b77a5b..0000000 --- a/admin/phpqrcode/qrencode.php +++ /dev/null @@ -1,502 +0,0 @@ - - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - class QRrsblock { - public $dataLength; - public $data = array(); - public $eccLength; - public $ecc = array(); - - public function __construct($dl, $data, $el, &$ecc, QRrsItem $rs) - { - $rs->encode_rs_char($data, $ecc); - - $this->dataLength = $dl; - $this->data = $data; - $this->eccLength = $el; - $this->ecc = $ecc; - } - }; - - //########################################################################## - - class QRrawcode { - public $version; - public $datacode = array(); - public $ecccode = array(); - public $blocks; - public $rsblocks = array(); //of RSblock - public $count; - public $dataLength; - public $eccLength; - public $b1; - - //---------------------------------------------------------------------- - public function __construct(QRinput $input) - { - $spec = array(0,0,0,0,0); - - $this->datacode = $input->getByteStream(); - if(is_null($this->datacode)) { - throw new Exception('null imput string'); - } - - QRspec::getEccSpec($input->getVersion(), $input->getErrorCorrectionLevel(), $spec); - - $this->version = $input->getVersion(); - $this->b1 = QRspec::rsBlockNum1($spec); - $this->dataLength = QRspec::rsDataLength($spec); - $this->eccLength = QRspec::rsEccLength($spec); - $this->ecccode = array_fill(0, $this->eccLength, 0); - $this->blocks = QRspec::rsBlockNum($spec); - - $ret = $this->init($spec); - if($ret < 0) { - throw new Exception('block alloc error'); - return null; - } - - $this->count = 0; - } - - //---------------------------------------------------------------------- - public function init(array $spec) - { - $dl = QRspec::rsDataCodes1($spec); - $el = QRspec::rsEccCodes1($spec); - $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el); - - - $blockNo = 0; - $dataPos = 0; - $eccPos = 0; - for($i=0; $iecccode,$eccPos); - $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs); - $this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc); - - $dataPos += $dl; - $eccPos += $el; - $blockNo++; - } - - if(QRspec::rsBlockNum2($spec) == 0) - return 0; - - $dl = QRspec::rsDataCodes2($spec); - $el = QRspec::rsEccCodes2($spec); - $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el); - - if($rs == NULL) return -1; - - for($i=0; $iecccode,$eccPos); - $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs); - $this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc); - - $dataPos += $dl; - $eccPos += $el; - $blockNo++; - } - - return 0; - } - - //---------------------------------------------------------------------- - public function getCode() - { - $ret; - - if($this->count < $this->dataLength) { - $row = $this->count % $this->blocks; - $col = $this->count / $this->blocks; - if($col >= $this->rsblocks[0]->dataLength) { - $row += $this->b1; - } - $ret = $this->rsblocks[$row]->data[$col]; - } else if($this->count < $this->dataLength + $this->eccLength) { - $row = ($this->count - $this->dataLength) % $this->blocks; - $col = ($this->count - $this->dataLength) / $this->blocks; - $ret = $this->rsblocks[$row]->ecc[$col]; - } else { - return 0; - } - $this->count++; - - return $ret; - } - } - - //########################################################################## - - class QRcode { - - public $version; - public $width; - public $data; - - //---------------------------------------------------------------------- - public function encodeMask(QRinput $input, $mask) - { - if($input->getVersion() < 0 || $input->getVersion() > QRSPEC_VERSION_MAX) { - throw new Exception('wrong version'); - } - if($input->getErrorCorrectionLevel() > QR_ECLEVEL_H) { - throw new Exception('wrong level'); - } - - $raw = new QRrawcode($input); - - QRtools::markTime('after_raw'); - - $version = $raw->version; - $width = QRspec::getWidth($version); - $frame = QRspec::newFrame($version); - - $filler = new FrameFiller($width, $frame); - if(is_null($filler)) { - return NULL; - } - - // inteleaved data and ecc codes - for($i=0; $i<$raw->dataLength + $raw->eccLength; $i++) { - $code = $raw->getCode(); - $bit = 0x80; - for($j=0; $j<8; $j++) { - $addr = $filler->next(); - $filler->setFrameAt($addr, 0x02 | (($bit & $code) != 0)); - $bit = $bit >> 1; - } - } - - QRtools::markTime('after_filler'); - - unset($raw); - - // remainder bits - $j = QRspec::getRemainder($version); - for($i=0; $i<$j; $i++) { - $addr = $filler->next(); - $filler->setFrameAt($addr, 0x02); - } - - $frame = $filler->frame; - unset($filler); - - - // masking - $maskObj = new QRmask(); - if($mask < 0) { - - if (QR_FIND_BEST_MASK) { - $masked = $maskObj->mask($width, $frame, $input->getErrorCorrectionLevel()); - } else { - $masked = $maskObj->makeMask($width, $frame, (intval(QR_DEFAULT_MASK) % 8), $input->getErrorCorrectionLevel()); - } - } else { - $masked = $maskObj->makeMask($width, $frame, $mask, $input->getErrorCorrectionLevel()); - } - - if($masked == NULL) { - return NULL; - } - - QRtools::markTime('after_mask'); - - $this->version = $version; - $this->width = $width; - $this->data = $masked; - - return $this; - } - - //---------------------------------------------------------------------- - public function encodeInput(QRinput $input) - { - return $this->encodeMask($input, -1); - } - - //---------------------------------------------------------------------- - public function encodeString8bit($string, $version, $level) - { - if(string == NULL) { - throw new Exception('empty string!'); - return NULL; - } - - $input = new QRinput($version, $level); - if($input == NULL) return NULL; - - $ret = $input->append($input, QR_MODE_8, strlen($string), str_split($string)); - if($ret < 0) { - unset($input); - return NULL; - } - return $this->encodeInput($input); - } - - //---------------------------------------------------------------------- - public function encodeString($string, $version, $level, $hint, $casesensitive) - { - - if($hint != QR_MODE_8 && $hint != QR_MODE_KANJI) { - throw new Exception('bad hint'); - return NULL; - } - - $input = new QRinput($version, $level); - if($input == NULL) return NULL; - - $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive); - if($ret < 0) { - return NULL; - } - - return $this->encodeInput($input); - } - - //---------------------------------------------------------------------- - public static function png($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false) - { - $enc = QRencode::factory($level, $size, $margin); - return $enc->encodePNG($text, $outfile, $saveandprint=false); - } - - //---------------------------------------------------------------------- - public static function text($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4) - { - $enc = QRencode::factory($level, $size, $margin); - return $enc->encode($text, $outfile); - } - - //---------------------------------------------------------------------- - public static function raw($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4) - { - $enc = QRencode::factory($level, $size, $margin); - return $enc->encodeRAW($text, $outfile); - } - } - - //########################################################################## - - class FrameFiller { - - public $width; - public $frame; - public $x; - public $y; - public $dir; - public $bit; - - //---------------------------------------------------------------------- - public function __construct($width, &$frame) - { - $this->width = $width; - $this->frame = $frame; - $this->x = $width - 1; - $this->y = $width - 1; - $this->dir = -1; - $this->bit = -1; - } - - //---------------------------------------------------------------------- - public function setFrameAt($at, $val) - { - $this->frame[$at['y']][$at['x']] = chr($val); - } - - //---------------------------------------------------------------------- - public function getFrameAt($at) - { - return ord($this->frame[$at['y']][$at['x']]); - } - - //---------------------------------------------------------------------- - public function next() - { - do { - - if($this->bit == -1) { - $this->bit = 0; - return array('x'=>$this->x, 'y'=>$this->y); - } - - $x = $this->x; - $y = $this->y; - $w = $this->width; - - if($this->bit == 0) { - $x--; - $this->bit++; - } else { - $x++; - $y += $this->dir; - $this->bit--; - } - - if($this->dir < 0) { - if($y < 0) { - $y = 0; - $x -= 2; - $this->dir = 1; - if($x == 6) { - $x--; - $y = 9; - } - } - } else { - if($y == $w) { - $y = $w - 1; - $x -= 2; - $this->dir = -1; - if($x == 6) { - $x--; - $y -= 8; - } - } - } - if($x < 0 || $y < 0) return null; - - $this->x = $x; - $this->y = $y; - - } while(ord($this->frame[$y][$x]) & 0x80); - - return array('x'=>$x, 'y'=>$y); - } - - } ; - - //########################################################################## - - class QRencode { - - public $casesensitive = true; - public $eightbit = false; - - public $version = 0; - public $size = 3; - public $margin = 4; - - public $structured = 0; // not supported yet - - public $level = QR_ECLEVEL_L; - public $hint = QR_MODE_8; - - //---------------------------------------------------------------------- - public static function factory($level = QR_ECLEVEL_L, $size = 3, $margin = 4) - { - $enc = new QRencode(); - $enc->size = $size; - $enc->margin = $margin; - - switch ($level.'') { - case '0': - case '1': - case '2': - case '3': - $enc->level = $level; - break; - case 'l': - case 'L': - $enc->level = QR_ECLEVEL_L; - break; - case 'm': - case 'M': - $enc->level = QR_ECLEVEL_M; - break; - case 'q': - case 'Q': - $enc->level = QR_ECLEVEL_Q; - break; - case 'h': - case 'H': - $enc->level = QR_ECLEVEL_H; - break; - } - - return $enc; - } - - //---------------------------------------------------------------------- - public function encodeRAW($intext, $outfile = false) - { - $code = new QRcode(); - - if($this->eightbit) { - $code->encodeString8bit($intext, $this->version, $this->level); - } else { - $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive); - } - - return $code->data; - } - - //---------------------------------------------------------------------- - public function encode($intext, $outfile = false) - { - $code = new QRcode(); - - if($this->eightbit) { - $code->encodeString8bit($intext, $this->version, $this->level); - } else { - $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive); - } - - QRtools::markTime('after_encode'); - - if ($outfile!== false) { - file_put_contents($outfile, join("\n", QRtools::binarize($code->data))); - } else { - return QRtools::binarize($code->data); - } - } - - //---------------------------------------------------------------------- - public function encodePNG($intext, $outfile = false,$saveandprint=false) - { - try { - - ob_start(); - $tab = $this->encode($intext); - $err = ob_get_contents(); - ob_end_clean(); - - if ($err != '') - QRtools::log($outfile, $err); - - $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin)); - - QRimage::png($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin,$saveandprint); - - } catch (Exception $e) { - - QRtools::log($outfile, $e->getMessage()); - - } - } - } diff --git a/admin/phpqrcode/qrimage.php b/admin/phpqrcode/qrimage.php deleted file mode 100644 index 10b0a6e..0000000 --- a/admin/phpqrcode/qrimage.php +++ /dev/null @@ -1,95 +0,0 @@ - - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - define('QR_IMAGE', true); - - class QRimage { - - //---------------------------------------------------------------------- - public static function png($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 4,$saveandprint=FALSE) - { - $image = self::image($frame, $pixelPerPoint, $outerFrame); - - if ($filename === false) { - Header("Content-type: image/png"); - ImagePng($image); - } else { - if($saveandprint===TRUE){ - ImagePng($image, $filename); - header("Content-type: image/png"); - ImagePng($image); - }else{ - ImagePng($image, $filename); - } - } - - ImageDestroy($image); - } - - //---------------------------------------------------------------------- - public static function jpg($frame, $filename = false, $pixelPerPoint = 8, $outerFrame = 4, $q = 85) - { - $image = self::image($frame, $pixelPerPoint, $outerFrame); - - if ($filename === false) { - Header("Content-type: image/jpeg"); - ImageJpeg($image, null, $q); - } else { - ImageJpeg($image, $filename, $q); - } - - ImageDestroy($image); - } - - //---------------------------------------------------------------------- - private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4) - { - $h = count($frame); - $w = strlen($frame[0]); - - $imgW = $w + 2*$outerFrame; - $imgH = $h + 2*$outerFrame; - - $base_image =ImageCreate($imgW, $imgH); - - $col[0] = ImageColorAllocate($base_image,255,255,255); - $col[1] = ImageColorAllocate($base_image,0,0,0); - - imagefill($base_image, 0, 0, $col[0]); - - for($y=0; $y<$h; $y++) { - for($x=0; $x<$w; $x++) { - if ($frame[$y][$x] == '1') { - ImageSetPixel($base_image,$x+$outerFrame,$y+$outerFrame,$col[1]); - } - } - } - - $target_image =ImageCreate($imgW * $pixelPerPoint, $imgH * $pixelPerPoint); - ImageCopyResized($target_image, $base_image, 0, 0, 0, 0, $imgW * $pixelPerPoint, $imgH * $pixelPerPoint, $imgW, $imgH); - ImageDestroy($base_image); - - return $target_image; - } - } \ No newline at end of file diff --git a/admin/phpqrcode/qrinput.php b/admin/phpqrcode/qrinput.php deleted file mode 100644 index 0f6d7f9..0000000 --- a/admin/phpqrcode/qrinput.php +++ /dev/null @@ -1,729 +0,0 @@ - - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - define('STRUCTURE_HEADER_BITS', 20); - define('MAX_STRUCTURED_SYMBOLS', 16); - - class QRinputItem { - - public $mode; - public $size; - public $data; - public $bstream; - - public function __construct($mode, $size, $data, $bstream = null) - { - $setData = array_slice($data, 0, $size); - - if (count($setData) < $size) { - $setData = array_merge($setData, array_fill(0,$size-count($setData),0)); - } - - if(!QRinput::check($mode, $size, $setData)) { - throw new Exception('Error m:'.$mode.',s:'.$size.',d:'.join(',',$setData)); - return null; - } - - $this->mode = $mode; - $this->size = $size; - $this->data = $setData; - $this->bstream = $bstream; - } - - //---------------------------------------------------------------------- - public function encodeModeNum($version) - { - try { - - $words = (int)($this->size / 3); - $bs = new QRbitstream(); - - $val = 0x1; - $bs->appendNum(4, $val); - $bs->appendNum(QRspec::lengthIndicator(QR_MODE_NUM, $version), $this->size); - - for($i=0; $i<$words; $i++) { - $val = (ord($this->data[$i*3 ]) - ord('0')) * 100; - $val += (ord($this->data[$i*3+1]) - ord('0')) * 10; - $val += (ord($this->data[$i*3+2]) - ord('0')); - $bs->appendNum(10, $val); - } - - if($this->size - $words * 3 == 1) { - $val = ord($this->data[$words*3]) - ord('0'); - $bs->appendNum(4, $val); - } else if($this->size - $words * 3 == 2) { - $val = (ord($this->data[$words*3 ]) - ord('0')) * 10; - $val += (ord($this->data[$words*3+1]) - ord('0')); - $bs->appendNum(7, $val); - } - - $this->bstream = $bs; - return 0; - - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function encodeModeAn($version) - { - try { - $words = (int)($this->size / 2); - $bs = new QRbitstream(); - - $bs->appendNum(4, 0x02); - $bs->appendNum(QRspec::lengthIndicator(QR_MODE_AN, $version), $this->size); - - for($i=0; $i<$words; $i++) { - $val = (int)QRinput::lookAnTable(ord($this->data[$i*2 ])) * 45; - $val += (int)QRinput::lookAnTable(ord($this->data[$i*2+1])); - - $bs->appendNum(11, $val); - } - - if($this->size & 1) { - $val = QRinput::lookAnTable(ord($this->data[$words * 2])); - $bs->appendNum(6, $val); - } - - $this->bstream = $bs; - return 0; - - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function encodeMode8($version) - { - try { - $bs = new QRbitstream(); - - $bs->appendNum(4, 0x4); - $bs->appendNum(QRspec::lengthIndicator(QR_MODE_8, $version), $this->size); - - for($i=0; $i<$this->size; $i++) { - $bs->appendNum(8, ord($this->data[$i])); - } - - $this->bstream = $bs; - return 0; - - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function encodeModeKanji($version) - { - try { - - $bs = new QRbitrtream(); - - $bs->appendNum(4, 0x8); - $bs->appendNum(QRspec::lengthIndicator(QR_MODE_KANJI, $version), (int)($this->size / 2)); - - for($i=0; $i<$this->size; $i+=2) { - $val = (ord($this->data[$i]) << 8) | ord($this->data[$i+1]); - if($val <= 0x9ffc) { - $val -= 0x8140; - } else { - $val -= 0xc140; - } - - $h = ($val >> 8) * 0xc0; - $val = ($val & 0xff) + $h; - - $bs->appendNum(13, $val); - } - - $this->bstream = $bs; - return 0; - - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function encodeModeStructure() - { - try { - $bs = new QRbitstream(); - - $bs->appendNum(4, 0x03); - $bs->appendNum(4, ord($this->data[1]) - 1); - $bs->appendNum(4, ord($this->data[0]) - 1); - $bs->appendNum(8, ord($this->data[2])); - - $this->bstream = $bs; - return 0; - - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function estimateBitStreamSizeOfEntry($version) - { - $bits = 0; - - if($version == 0) - $version = 1; - - switch($this->mode) { - case QR_MODE_NUM: $bits = QRinput::estimateBitsModeNum($this->size); break; - case QR_MODE_AN: $bits = QRinput::estimateBitsModeAn($this->size); break; - case QR_MODE_8: $bits = QRinput::estimateBitsMode8($this->size); break; - case QR_MODE_KANJI: $bits = QRinput::estimateBitsModeKanji($this->size);break; - case QR_MODE_STRUCTURE: return STRUCTURE_HEADER_BITS; - default: - return 0; - } - - $l = QRspec::lengthIndicator($this->mode, $version); - $m = 1 << $l; - $num = (int)(($this->size + $m - 1) / $m); - - $bits += $num * (4 + $l); - - return $bits; - } - - //---------------------------------------------------------------------- - public function encodeBitStream($version) - { - try { - - unset($this->bstream); - $words = QRspec::maximumWords($this->mode, $version); - - if($this->size > $words) { - - $st1 = new QRinputItem($this->mode, $words, $this->data); - $st2 = new QRinputItem($this->mode, $this->size - $words, array_slice($this->data, $words)); - - $st1->encodeBitStream($version); - $st2->encodeBitStream($version); - - $this->bstream = new QRbitstream(); - $this->bstream->append($st1->bstream); - $this->bstream->append($st2->bstream); - - unset($st1); - unset($st2); - - } else { - - $ret = 0; - - switch($this->mode) { - case QR_MODE_NUM: $ret = $this->encodeModeNum($version); break; - case QR_MODE_AN: $ret = $this->encodeModeAn($version); break; - case QR_MODE_8: $ret = $this->encodeMode8($version); break; - case QR_MODE_KANJI: $ret = $this->encodeModeKanji($version);break; - case QR_MODE_STRUCTURE: $ret = $this->encodeModeStructure(); break; - - default: - break; - } - - if($ret < 0) - return -1; - } - - return $this->bstream->size(); - - } catch (Exception $e) { - return -1; - } - } - }; - - //########################################################################## - - class QRinput { - - public $items; - - private $version; - private $level; - - //---------------------------------------------------------------------- - public function __construct($version = 0, $level = QR_ECLEVEL_L) - { - if ($version < 0 || $version > QRSPEC_VERSION_MAX || $level > QR_ECLEVEL_H) { - throw new Exception('Invalid version no'); - return NULL; - } - - $this->version = $version; - $this->level = $level; - } - - //---------------------------------------------------------------------- - public function getVersion() - { - return $this->version; - } - - //---------------------------------------------------------------------- - public function setVersion($version) - { - if($version < 0 || $version > QRSPEC_VERSION_MAX) { - throw new Exception('Invalid version no'); - return -1; - } - - $this->version = $version; - - return 0; - } - - //---------------------------------------------------------------------- - public function getErrorCorrectionLevel() - { - return $this->level; - } - - //---------------------------------------------------------------------- - public function setErrorCorrectionLevel($level) - { - if($level > QR_ECLEVEL_H) { - throw new Exception('Invalid ECLEVEL'); - return -1; - } - - $this->level = $level; - - return 0; - } - - //---------------------------------------------------------------------- - public function appendEntry(QRinputItem $entry) - { - $this->items[] = $entry; - } - - //---------------------------------------------------------------------- - public function append($mode, $size, $data) - { - try { - $entry = new QRinputItem($mode, $size, $data); - $this->items[] = $entry; - return 0; - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - - public function insertStructuredAppendHeader($size, $index, $parity) - { - if( $size > MAX_STRUCTURED_SYMBOLS ) { - throw new Exception('insertStructuredAppendHeader wrong size'); - } - - if( $index <= 0 || $index > MAX_STRUCTURED_SYMBOLS ) { - throw new Exception('insertStructuredAppendHeader wrong index'); - } - - $buf = array($size, $index, $parity); - - try { - $entry = new QRinputItem(QR_MODE_STRUCTURE, 3, buf); - array_unshift($this->items, $entry); - return 0; - } catch (Exception $e) { - return -1; - } - } - - //---------------------------------------------------------------------- - public function calcParity() - { - $parity = 0; - - foreach($this->items as $item) { - if($item->mode != QR_MODE_STRUCTURE) { - for($i=$item->size-1; $i>=0; $i--) { - $parity ^= $item->data[$i]; - } - } - } - - return $parity; - } - - //---------------------------------------------------------------------- - public static function checkModeNum($size, $data) - { - for($i=0; $i<$size; $i++) { - if((ord($data[$i]) < ord('0')) || (ord($data[$i]) > ord('9'))){ - return false; - } - } - - return true; - } - - //---------------------------------------------------------------------- - public static function estimateBitsModeNum($size) - { - $w = (int)$size / 3; - $bits = $w * 10; - - switch($size - $w * 3) { - case 1: - $bits += 4; - break; - case 2: - $bits += 7; - break; - default: - break; - } - - return $bits; - } - - //---------------------------------------------------------------------- - public static $anTable = array( - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, - -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 - ); - - //---------------------------------------------------------------------- - public static function lookAnTable($c) - { - return (($c > 127)?-1:self::$anTable[$c]); - } - - //---------------------------------------------------------------------- - public static function checkModeAn($size, $data) - { - for($i=0; $i<$size; $i++) { - if (self::lookAnTable(ord($data[$i])) == -1) { - return false; - } - } - - return true; - } - - //---------------------------------------------------------------------- - public static function estimateBitsModeAn($size) - { - $w = (int)($size / 2); - $bits = $w * 11; - - if($size & 1) { - $bits += 6; - } - - return $bits; - } - - //---------------------------------------------------------------------- - public static function estimateBitsMode8($size) - { - return $size * 8; - } - - //---------------------------------------------------------------------- - public function estimateBitsModeKanji($size) - { - return (int)(($size / 2) * 13); - } - - //---------------------------------------------------------------------- - public static function checkModeKanji($size, $data) - { - if($size & 1) - return false; - - for($i=0; $i<$size; $i+=2) { - $val = (ord($data[$i]) << 8) | ord($data[$i+1]); - if( $val < 0x8140 - || ($val > 0x9ffc && $val < 0xe040) - || $val > 0xebbf) { - return false; - } - } - - return true; - } - - /*********************************************************************** - * Validation - **********************************************************************/ - - public static function check($mode, $size, $data) - { - if($size <= 0) - return false; - - switch($mode) { - case QR_MODE_NUM: return self::checkModeNum($size, $data); break; - case QR_MODE_AN: return self::checkModeAn($size, $data); break; - case QR_MODE_KANJI: return self::checkModeKanji($size, $data); break; - case QR_MODE_8: return true; break; - case QR_MODE_STRUCTURE: return true; break; - - default: - break; - } - - return false; - } - - - //---------------------------------------------------------------------- - public function estimateBitStreamSize($version) - { - $bits = 0; - - foreach($this->items as $item) { - $bits += $item->estimateBitStreamSizeOfEntry($version); - } - - return $bits; - } - - //---------------------------------------------------------------------- - public function estimateVersion() - { - $version = 0; - $prev = 0; - do { - $prev = $version; - $bits = $this->estimateBitStreamSize($prev); - $version = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level); - if ($version < 0) { - return -1; - } - } while ($version > $prev); - - return $version; - } - - //---------------------------------------------------------------------- - public static function lengthOfCode($mode, $version, $bits) - { - $payload = $bits - 4 - QRspec::lengthIndicator($mode, $version); - switch($mode) { - case QR_MODE_NUM: - $chunks = (int)($payload / 10); - $remain = $payload - $chunks * 10; - $size = $chunks * 3; - if($remain >= 7) { - $size += 2; - } else if($remain >= 4) { - $size += 1; - } - break; - case QR_MODE_AN: - $chunks = (int)($payload / 11); - $remain = $payload - $chunks * 11; - $size = $chunks * 2; - if($remain >= 6) - $size++; - break; - case QR_MODE_8: - $size = (int)($payload / 8); - break; - case QR_MODE_KANJI: - $size = (int)(($payload / 13) * 2); - break; - case QR_MODE_STRUCTURE: - $size = (int)($payload / 8); - break; - default: - $size = 0; - break; - } - - $maxsize = QRspec::maximumWords($mode, $version); - if($size < 0) $size = 0; - if($size > $maxsize) $size = $maxsize; - - return $size; - } - - //---------------------------------------------------------------------- - public function createBitStream() - { - $total = 0; - - foreach($this->items as $item) { - $bits = $item->encodeBitStream($this->version); - - if($bits < 0) - return -1; - - $total += $bits; - } - - return $total; - } - - //---------------------------------------------------------------------- - public function convertData() - { - $ver = $this->estimateVersion(); - if($ver > $this->getVersion()) { - $this->setVersion($ver); - } - - for(;;) { - $bits = $this->createBitStream(); - - if($bits < 0) - return -1; - - $ver = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level); - if($ver < 0) { - throw new Exception('WRONG VERSION'); - return -1; - } else if($ver > $this->getVersion()) { - $this->setVersion($ver); - } else { - break; - } - } - - return 0; - } - - //---------------------------------------------------------------------- - public function appendPaddingBit(&$bstream) - { - $bits = $bstream->size(); - $maxwords = QRspec::getDataLength($this->version, $this->level); - $maxbits = $maxwords * 8; - - if ($maxbits == $bits) { - return 0; - } - - if ($maxbits - $bits < 5) { - return $bstream->appendNum($maxbits - $bits, 0); - } - - $bits += 4; - $words = (int)(($bits + 7) / 8); - - $padding = new QRbitstream(); - $ret = $padding->appendNum($words * 8 - $bits + 4, 0); - - if($ret < 0) - return $ret; - - $padlen = $maxwords - $words; - - if($padlen > 0) { - - $padbuf = array(); - for($i=0; $i<$padlen; $i++) { - $padbuf[$i] = ($i&1)?0x11:0xec; - } - - $ret = $padding->appendBytes($padlen, $padbuf); - - if($ret < 0) - return $ret; - - } - - $ret = $bstream->append($padding); - - return $ret; - } - - //---------------------------------------------------------------------- - public function mergeBitStream() - { - if($this->convertData() < 0) { - return null; - } - - $bstream = new QRbitstream(); - - foreach($this->items as $item) { - $ret = $bstream->append($item->bstream); - if($ret < 0) { - return null; - } - } - - return $bstream; - } - - //---------------------------------------------------------------------- - public function getBitStream() - { - - $bstream = $this->mergeBitStream(); - - if($bstream == null) { - return null; - } - - $ret = $this->appendPaddingBit($bstream); - if($ret < 0) { - return null; - } - - return $bstream; - } - - //---------------------------------------------------------------------- - public function getByteStream() - { - $bstream = $this->getBitStream(); - if($bstream == null) { - return null; - } - - return $bstream->toByte(); - } - } - - - \ No newline at end of file diff --git a/admin/phpqrcode/qrlib.php b/admin/phpqrcode/qrlib.php deleted file mode 100644 index d55c4af..0000000 --- a/admin/phpqrcode/qrlib.php +++ /dev/null @@ -1,43 +0,0 @@ - - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - $QR_BASEDIR = dirname(__FILE__).DIRECTORY_SEPARATOR; - - // Required libs - - include $QR_BASEDIR."qrconst.php"; - include $QR_BASEDIR."qrconfig.php"; - include $QR_BASEDIR."qrtools.php"; - include $QR_BASEDIR."qrspec.php"; - include $QR_BASEDIR."qrimage.php"; - include $QR_BASEDIR."qrinput.php"; - include $QR_BASEDIR."qrbitstream.php"; - include $QR_BASEDIR."qrsplit.php"; - include $QR_BASEDIR."qrrscode.php"; - include $QR_BASEDIR."qrmask.php"; - include $QR_BASEDIR."qrencode.php"; - diff --git a/admin/phpqrcode/qrmask.php b/admin/phpqrcode/qrmask.php deleted file mode 100644 index b14d7ae..0000000 --- a/admin/phpqrcode/qrmask.php +++ /dev/null @@ -1,328 +0,0 @@ - - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - define('N1', 3); - define('N2', 3); - define('N3', 40); - define('N4', 10); - - class QRmask { - - public $runLength = array(); - - //---------------------------------------------------------------------- - public function __construct() - { - $this->runLength = array_fill(0, QRSPEC_WIDTH_MAX + 1, 0); - } - - //---------------------------------------------------------------------- - public function writeFormatInformation($width, &$frame, $mask, $level) - { - $blacks = 0; - $format = QRspec::getFormatInfo($mask, $level); - - for($i=0; $i<8; $i++) { - if($format & 1) { - $blacks += 2; - $v = 0x85; - } else { - $v = 0x84; - } - - $frame[8][$width - 1 - $i] = chr($v); - if($i < 6) { - $frame[$i][8] = chr($v); - } else { - $frame[$i + 1][8] = chr($v); - } - $format = $format >> 1; - } - - for($i=0; $i<7; $i++) { - if($format & 1) { - $blacks += 2; - $v = 0x85; - } else { - $v = 0x84; - } - - $frame[$width - 7 + $i][8] = chr($v); - if($i == 0) { - $frame[8][7] = chr($v); - } else { - $frame[8][6 - $i] = chr($v); - } - - $format = $format >> 1; - } - - return $blacks; - } - - //---------------------------------------------------------------------- - public function mask0($x, $y) { return ($x+$y)&1; } - public function mask1($x, $y) { return ($y&1); } - public function mask2($x, $y) { return ($x%3); } - public function mask3($x, $y) { return ($x+$y)%3; } - public function mask4($x, $y) { return (((int)($y/2))+((int)($x/3)))&1; } - public function mask5($x, $y) { return (($x*$y)&1)+($x*$y)%3; } - public function mask6($x, $y) { return ((($x*$y)&1)+($x*$y)%3)&1; } - public function mask7($x, $y) { return ((($x*$y)%3)+(($x+$y)&1))&1; } - - //---------------------------------------------------------------------- - private function generateMaskNo($maskNo, $width, $frame) - { - $bitMask = array_fill(0, $width, array_fill(0, $width, 0)); - - for($y=0; $y<$width; $y++) { - for($x=0; $x<$width; $x++) { - if(ord($frame[$y][$x]) & 0x80) { - $bitMask[$y][$x] = 0; - } else { - $maskFunc = call_user_func(array($this, 'mask'.$maskNo), $x, $y); - $bitMask[$y][$x] = ($maskFunc == 0)?1:0; - } - - } - } - - return $bitMask; - } - - //---------------------------------------------------------------------- - public static function serial($bitFrame) - { - $codeArr = array(); - - foreach ($bitFrame as $line) - $codeArr[] = join('', $line); - - return gzcompress(join("\n", $codeArr), 9); - } - - //---------------------------------------------------------------------- - public static function unserial($code) - { - $codeArr = array(); - - $codeLines = explode("\n", gzuncompress($code)); - foreach ($codeLines as $line) - $codeArr[] = str_split($line); - - return $codeArr; - } - - //---------------------------------------------------------------------- - public function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly = false) - { - $b = 0; - $bitMask = array(); - - $fileName = QR_CACHE_DIR.'mask_'.$maskNo.DIRECTORY_SEPARATOR.'mask_'.$width.'_'.$maskNo.'.dat'; - - if (QR_CACHEABLE) { - if (file_exists($fileName)) { - $bitMask = self::unserial(file_get_contents($fileName)); - } else { - $bitMask = $this->generateMaskNo($maskNo, $width, $s, $d); - if (!file_exists(QR_CACHE_DIR.'mask_'.$maskNo)) - mkdir(QR_CACHE_DIR.'mask_'.$maskNo); - file_put_contents($fileName, self::serial($bitMask)); - } - } else { - $bitMask = $this->generateMaskNo($maskNo, $width, $s, $d); - } - - if ($maskGenOnly) - return; - - $d = $s; - - for($y=0; $y<$width; $y++) { - for($x=0; $x<$width; $x++) { - if($bitMask[$y][$x] == 1) { - $d[$y][$x] = chr(ord($s[$y][$x]) ^ (int)$bitMask[$y][$x]); - } - $b += (int)(ord($d[$y][$x]) & 1); - } - } - - return $b; - } - - //---------------------------------------------------------------------- - public function makeMask($width, $frame, $maskNo, $level) - { - $masked = array_fill(0, $width, str_repeat("\0", $width)); - $this->makeMaskNo($maskNo, $width, $frame, $masked); - $this->writeFormatInformation($width, $masked, $maskNo, $level); - - return $masked; - } - - //---------------------------------------------------------------------- - public function calcN1N3($length) - { - $demerit = 0; - - for($i=0; $i<$length; $i++) { - - if($this->runLength[$i] >= 5) { - $demerit += (N1 + ($this->runLength[$i] - 5)); - } - if($i & 1) { - if(($i >= 3) && ($i < ($length-2)) && ($this->runLength[$i] % 3 == 0)) { - $fact = (int)($this->runLength[$i] / 3); - if(($this->runLength[$i-2] == $fact) && - ($this->runLength[$i-1] == $fact) && - ($this->runLength[$i+1] == $fact) && - ($this->runLength[$i+2] == $fact)) { - if(($this->runLength[$i-3] < 0) || ($this->runLength[$i-3] >= (4 * $fact))) { - $demerit += N3; - } else if((($i+3) >= $length) || ($this->runLength[$i+3] >= (4 * $fact))) { - $demerit += N3; - } - } - } - } - } - return $demerit; - } - - //---------------------------------------------------------------------- - public function evaluateSymbol($width, $frame) - { - $head = 0; - $demerit = 0; - - for($y=0; $y<$width; $y++) { - $head = 0; - $this->runLength[0] = 1; - - $frameY = $frame[$y]; - - if ($y>0) - $frameYM = $frame[$y-1]; - - for($x=0; $x<$width; $x++) { - if(($x > 0) && ($y > 0)) { - $b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]); - $w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]); - - if(($b22 | ($w22 ^ 1))&1) { - $demerit += N2; - } - } - if(($x == 0) && (ord($frameY[$x]) & 1)) { - $this->runLength[0] = -1; - $head = 1; - $this->runLength[$head] = 1; - } else if($x > 0) { - if((ord($frameY[$x]) ^ ord($frameY[$x-1])) & 1) { - $head++; - $this->runLength[$head] = 1; - } else { - $this->runLength[$head]++; - } - } - } - - $demerit += $this->calcN1N3($head+1); - } - - for($x=0; $x<$width; $x++) { - $head = 0; - $this->runLength[0] = 1; - - for($y=0; $y<$width; $y++) { - if($y == 0 && (ord($frame[$y][$x]) & 1)) { - $this->runLength[0] = -1; - $head = 1; - $this->runLength[$head] = 1; - } else if($y > 0) { - if((ord($frame[$y][$x]) ^ ord($frame[$y-1][$x])) & 1) { - $head++; - $this->runLength[$head] = 1; - } else { - $this->runLength[$head]++; - } - } - } - - $demerit += $this->calcN1N3($head+1); - } - - return $demerit; - } - - - //---------------------------------------------------------------------- - public function mask($width, $frame, $level) - { - $minDemerit = PHP_INT_MAX; - $bestMaskNum = 0; - $bestMask = array(); - - $checked_masks = array(0,1,2,3,4,5,6,7); - - if (QR_FIND_FROM_RANDOM !== false) { - - $howManuOut = 8-(QR_FIND_FROM_RANDOM % 9); - for ($i = 0; $i < $howManuOut; $i++) { - $remPos = rand (0, count($checked_masks)-1); - unset($checked_masks[$remPos]); - $checked_masks = array_values($checked_masks); - } - - } - - $bestMask = $frame; - - foreach($checked_masks as $i) { - $mask = array_fill(0, $width, str_repeat("\0", $width)); - - $demerit = 0; - $blacks = 0; - $blacks = $this->makeMaskNo($i, $width, $frame, $mask); - $blacks += $this->writeFormatInformation($width, $mask, $i, $level); - $blacks = (int)(100 * $blacks / ($width * $width)); - $demerit = (int)((int)(abs($blacks - 50) / 5) * N4); - $demerit += $this->evaluateSymbol($width, $mask); - - if($demerit < $minDemerit) { - $minDemerit = $demerit; - $bestMask = $mask; - $bestMaskNum = $i; - } - } - - return $bestMask; - } - - //---------------------------------------------------------------------- - } diff --git a/admin/phpqrcode/qrrscode.php b/admin/phpqrcode/qrrscode.php deleted file mode 100644 index 591129a..0000000 --- a/admin/phpqrcode/qrrscode.php +++ /dev/null @@ -1,210 +0,0 @@ - - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - class QRrsItem { - - public $mm; // Bits per symbol - public $nn; // Symbols per block (= (1<= $this->nn) { - $x -= $this->nn; - $x = ($x >> $this->mm) + ($x & $this->nn); - } - - return $x; - } - - //---------------------------------------------------------------------- - public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) - { - // Common code for intializing a Reed-Solomon control block (char or int symbols) - // Copyright 2004 Phil Karn, KA9Q - // May be used under the terms of the GNU Lesser General Public License (LGPL) - - $rs = null; - - // Check parameter ranges - if($symsize < 0 || $symsize > 8) return $rs; - if($fcr < 0 || $fcr >= (1<<$symsize)) return $rs; - if($prim <= 0 || $prim >= (1<<$symsize)) return $rs; - if($nroots < 0 || $nroots >= (1<<$symsize)) return $rs; // Can't have more roots than symbol values! - if($pad < 0 || $pad >= ((1<<$symsize) -1 - $nroots)) return $rs; // Too much padding - - $rs = new QRrsItem(); - $rs->mm = $symsize; - $rs->nn = (1<<$symsize)-1; - $rs->pad = $pad; - - $rs->alpha_to = array_fill(0, $rs->nn+1, 0); - $rs->index_of = array_fill(0, $rs->nn+1, 0); - - // PHP style macro replacement ;) - $NN =& $rs->nn; - $A0 =& $NN; - - // Generate Galois field lookup tables - $rs->index_of[0] = $A0; // log(zero) = -inf - $rs->alpha_to[$A0] = 0; // alpha**-inf = 0 - $sr = 1; - - for($i=0; $i<$rs->nn; $i++) { - $rs->index_of[$sr] = $i; - $rs->alpha_to[$i] = $sr; - $sr <<= 1; - if($sr & (1<<$symsize)) { - $sr ^= $gfpoly; - } - $sr &= $rs->nn; - } - - if($sr != 1){ - // field generator polynomial is not primitive! - $rs = NULL; - return $rs; - } - - /* Form RS code generator polynomial from its roots */ - $rs->genpoly = array_fill(0, $nroots+1, 0); - - $rs->fcr = $fcr; - $rs->prim = $prim; - $rs->nroots = $nroots; - $rs->gfpoly = $gfpoly; - - /* Find prim-th root of 1, used in decoding */ - for($iprim=1;($iprim % $prim) != 0;$iprim += $rs->nn) - ; // intentional empty-body loop! - - $rs->iprim = (int)($iprim / $prim); - $rs->genpoly[0] = 1; - - for ($i = 0,$root=$fcr*$prim; $i < $nroots; $i++, $root += $prim) { - $rs->genpoly[$i+1] = 1; - - // Multiply rs->genpoly[] by @**(root + x) - for ($j = $i; $j > 0; $j--) { - if ($rs->genpoly[$j] != 0) { - $rs->genpoly[$j] = $rs->genpoly[$j-1] ^ $rs->alpha_to[$rs->modnn($rs->index_of[$rs->genpoly[$j]] + $root)]; - } else { - $rs->genpoly[$j] = $rs->genpoly[$j-1]; - } - } - // rs->genpoly[0] can never be zero - $rs->genpoly[0] = $rs->alpha_to[$rs->modnn($rs->index_of[$rs->genpoly[0]] + $root)]; - } - - // convert rs->genpoly[] to index form for quicker encoding - for ($i = 0; $i <= $nroots; $i++) - $rs->genpoly[$i] = $rs->index_of[$rs->genpoly[$i]]; - - return $rs; - } - - //---------------------------------------------------------------------- - public function encode_rs_char($data, &$parity) - { - $MM =& $this->mm; - $NN =& $this->nn; - $ALPHA_TO =& $this->alpha_to; - $INDEX_OF =& $this->index_of; - $GENPOLY =& $this->genpoly; - $NROOTS =& $this->nroots; - $FCR =& $this->fcr; - $PRIM =& $this->prim; - $IPRIM =& $this->iprim; - $PAD =& $this->pad; - $A0 =& $NN; - - $parity = array_fill(0, $NROOTS, 0); - - for($i=0; $i< ($NN-$NROOTS-$PAD); $i++) { - - $feedback = $INDEX_OF[$data[$i] ^ $parity[0]]; - if($feedback != $A0) { - // feedback term is non-zero - - // This line is unnecessary when GENPOLY[NROOTS] is unity, as it must - // always be for the polynomials constructed by init_rs() - $feedback = $this->modnn($NN - $GENPOLY[$NROOTS] + $feedback); - - for($j=1;$j<$NROOTS;$j++) { - $parity[$j] ^= $ALPHA_TO[$this->modnn($feedback + $GENPOLY[$NROOTS-$j])]; - } - } - - // Shift - array_shift($parity); - if($feedback != $A0) { - array_push($parity, $ALPHA_TO[$this->modnn($feedback + $GENPOLY[0])]); - } else { - array_push($parity, 0); - } - } - } - } - - //########################################################################## - - class QRrs { - - public static $items = array(); - - //---------------------------------------------------------------------- - public static function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) - { - foreach(self::$items as $rs) { - if($rs->pad != $pad) continue; - if($rs->nroots != $nroots) continue; - if($rs->mm != $symsize) continue; - if($rs->gfpoly != $gfpoly) continue; - if($rs->fcr != $fcr) continue; - if($rs->prim != $prim) continue; - - return $rs; - } - - $rs = QRrsItem::init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad); - array_unshift(self::$items, $rs); - - return $rs; - } - } \ No newline at end of file diff --git a/admin/phpqrcode/qrspec.php b/admin/phpqrcode/qrspec.php deleted file mode 100644 index 92aea0c..0000000 --- a/admin/phpqrcode/qrspec.php +++ /dev/null @@ -1,592 +0,0 @@ - - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * The following data / specifications are taken from - * "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004) - * or - * "Automatic identification and data capture techniques -- - * QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006) - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - define('QRSPEC_VERSION_MAX', 40); - define('QRSPEC_WIDTH_MAX', 177); - - define('QRCAP_WIDTH', 0); - define('QRCAP_WORDS', 1); - define('QRCAP_REMINDER', 2); - define('QRCAP_EC', 3); - - class QRspec { - - public static $capacity = array( - array( 0, 0, 0, array( 0, 0, 0, 0)), - array( 21, 26, 0, array( 7, 10, 13, 17)), // 1 - array( 25, 44, 7, array( 10, 16, 22, 28)), - array( 29, 70, 7, array( 15, 26, 36, 44)), - array( 33, 100, 7, array( 20, 36, 52, 64)), - array( 37, 134, 7, array( 26, 48, 72, 88)), // 5 - array( 41, 172, 7, array( 36, 64, 96, 112)), - array( 45, 196, 0, array( 40, 72, 108, 130)), - array( 49, 242, 0, array( 48, 88, 132, 156)), - array( 53, 292, 0, array( 60, 110, 160, 192)), - array( 57, 346, 0, array( 72, 130, 192, 224)), //10 - array( 61, 404, 0, array( 80, 150, 224, 264)), - array( 65, 466, 0, array( 96, 176, 260, 308)), - array( 69, 532, 0, array( 104, 198, 288, 352)), - array( 73, 581, 3, array( 120, 216, 320, 384)), - array( 77, 655, 3, array( 132, 240, 360, 432)), //15 - array( 81, 733, 3, array( 144, 280, 408, 480)), - array( 85, 815, 3, array( 168, 308, 448, 532)), - array( 89, 901, 3, array( 180, 338, 504, 588)), - array( 93, 991, 3, array( 196, 364, 546, 650)), - array( 97, 1085, 3, array( 224, 416, 600, 700)), //20 - array(101, 1156, 4, array( 224, 442, 644, 750)), - array(105, 1258, 4, array( 252, 476, 690, 816)), - array(109, 1364, 4, array( 270, 504, 750, 900)), - array(113, 1474, 4, array( 300, 560, 810, 960)), - array(117, 1588, 4, array( 312, 588, 870, 1050)), //25 - array(121, 1706, 4, array( 336, 644, 952, 1110)), - array(125, 1828, 4, array( 360, 700, 1020, 1200)), - array(129, 1921, 3, array( 390, 728, 1050, 1260)), - array(133, 2051, 3, array( 420, 784, 1140, 1350)), - array(137, 2185, 3, array( 450, 812, 1200, 1440)), //30 - array(141, 2323, 3, array( 480, 868, 1290, 1530)), - array(145, 2465, 3, array( 510, 924, 1350, 1620)), - array(149, 2611, 3, array( 540, 980, 1440, 1710)), - array(153, 2761, 3, array( 570, 1036, 1530, 1800)), - array(157, 2876, 0, array( 570, 1064, 1590, 1890)), //35 - array(161, 3034, 0, array( 600, 1120, 1680, 1980)), - array(165, 3196, 0, array( 630, 1204, 1770, 2100)), - array(169, 3362, 0, array( 660, 1260, 1860, 2220)), - array(173, 3532, 0, array( 720, 1316, 1950, 2310)), - array(177, 3706, 0, array( 750, 1372, 2040, 2430)) //40 - ); - - //---------------------------------------------------------------------- - public static function getDataLength($version, $level) - { - return self::$capacity[$version][QRCAP_WORDS] - self::$capacity[$version][QRCAP_EC][$level]; - } - - //---------------------------------------------------------------------- - public static function getECCLength($version, $level) - { - return self::$capacity[$version][QRCAP_EC][$level]; - } - - //---------------------------------------------------------------------- - public static function getWidth($version) - { - return self::$capacity[$version][QRCAP_WIDTH]; - } - - //---------------------------------------------------------------------- - public static function getRemainder($version) - { - return self::$capacity[$version][QRCAP_REMINDER]; - } - - //---------------------------------------------------------------------- - public static function getMinimumVersion($size, $level) - { - - for($i=1; $i<= QRSPEC_VERSION_MAX; $i++) { - $words = self::$capacity[$i][QRCAP_WORDS] - self::$capacity[$i][QRCAP_EC][$level]; - if($words >= $size) - return $i; - } - - return -1; - } - - //###################################################################### - - public static $lengthTableBits = array( - array(10, 12, 14), - array( 9, 11, 13), - array( 8, 16, 16), - array( 8, 10, 12) - ); - - //---------------------------------------------------------------------- - public static function lengthIndicator($mode, $version) - { - if ($mode == QR_MODE_STRUCTURE) - return 0; - - if ($version <= 9) { - $l = 0; - } else if ($version <= 26) { - $l = 1; - } else { - $l = 2; - } - - return self::$lengthTableBits[$mode][$l]; - } - - //---------------------------------------------------------------------- - public static function maximumWords($mode, $version) - { - if($mode == QR_MODE_STRUCTURE) - return 3; - - if($version <= 9) { - $l = 0; - } else if($version <= 26) { - $l = 1; - } else { - $l = 2; - } - - $bits = self::$lengthTableBits[$mode][$l]; - $words = (1 << $bits) - 1; - - if($mode == QR_MODE_KANJI) { - $words *= 2; // the number of bytes is required - } - - return $words; - } - - // Error correction code ----------------------------------------------- - // Table of the error correction code (Reed-Solomon block) - // See Table 12-16 (pp.30-36), JIS X0510:2004. - - public static $eccTable = array( - array(array( 0, 0), array( 0, 0), array( 0, 0), array( 0, 0)), - array(array( 1, 0), array( 1, 0), array( 1, 0), array( 1, 0)), // 1 - array(array( 1, 0), array( 1, 0), array( 1, 0), array( 1, 0)), - array(array( 1, 0), array( 1, 0), array( 2, 0), array( 2, 0)), - array(array( 1, 0), array( 2, 0), array( 2, 0), array( 4, 0)), - array(array( 1, 0), array( 2, 0), array( 2, 2), array( 2, 2)), // 5 - array(array( 2, 0), array( 4, 0), array( 4, 0), array( 4, 0)), - array(array( 2, 0), array( 4, 0), array( 2, 4), array( 4, 1)), - array(array( 2, 0), array( 2, 2), array( 4, 2), array( 4, 2)), - array(array( 2, 0), array( 3, 2), array( 4, 4), array( 4, 4)), - array(array( 2, 2), array( 4, 1), array( 6, 2), array( 6, 2)), //10 - array(array( 4, 0), array( 1, 4), array( 4, 4), array( 3, 8)), - array(array( 2, 2), array( 6, 2), array( 4, 6), array( 7, 4)), - array(array( 4, 0), array( 8, 1), array( 8, 4), array(12, 4)), - array(array( 3, 1), array( 4, 5), array(11, 5), array(11, 5)), - array(array( 5, 1), array( 5, 5), array( 5, 7), array(11, 7)), //15 - array(array( 5, 1), array( 7, 3), array(15, 2), array( 3, 13)), - array(array( 1, 5), array(10, 1), array( 1, 15), array( 2, 17)), - array(array( 5, 1), array( 9, 4), array(17, 1), array( 2, 19)), - array(array( 3, 4), array( 3, 11), array(17, 4), array( 9, 16)), - array(array( 3, 5), array( 3, 13), array(15, 5), array(15, 10)), //20 - array(array( 4, 4), array(17, 0), array(17, 6), array(19, 6)), - array(array( 2, 7), array(17, 0), array( 7, 16), array(34, 0)), - array(array( 4, 5), array( 4, 14), array(11, 14), array(16, 14)), - array(array( 6, 4), array( 6, 14), array(11, 16), array(30, 2)), - array(array( 8, 4), array( 8, 13), array( 7, 22), array(22, 13)), //25 - array(array(10, 2), array(19, 4), array(28, 6), array(33, 4)), - array(array( 8, 4), array(22, 3), array( 8, 26), array(12, 28)), - array(array( 3, 10), array( 3, 23), array( 4, 31), array(11, 31)), - array(array( 7, 7), array(21, 7), array( 1, 37), array(19, 26)), - array(array( 5, 10), array(19, 10), array(15, 25), array(23, 25)), //30 - array(array(13, 3), array( 2, 29), array(42, 1), array(23, 28)), - array(array(17, 0), array(10, 23), array(10, 35), array(19, 35)), - array(array(17, 1), array(14, 21), array(29, 19), array(11, 46)), - array(array(13, 6), array(14, 23), array(44, 7), array(59, 1)), - array(array(12, 7), array(12, 26), array(39, 14), array(22, 41)), //35 - array(array( 6, 14), array( 6, 34), array(46, 10), array( 2, 64)), - array(array(17, 4), array(29, 14), array(49, 10), array(24, 46)), - array(array( 4, 18), array(13, 32), array(48, 14), array(42, 32)), - array(array(20, 4), array(40, 7), array(43, 22), array(10, 67)), - array(array(19, 6), array(18, 31), array(34, 34), array(20, 61)),//40 - ); - - //---------------------------------------------------------------------- - // CACHEABLE!!! - - public static function getEccSpec($version, $level, array &$spec) - { - if (count($spec) < 5) { - $spec = array(0,0,0,0,0); - } - - $b1 = self::$eccTable[$version][$level][0]; - $b2 = self::$eccTable[$version][$level][1]; - $data = self::getDataLength($version, $level); - $ecc = self::getECCLength($version, $level); - - if($b2 == 0) { - $spec[0] = $b1; - $spec[1] = (int)($data / $b1); - $spec[2] = (int)($ecc / $b1); - $spec[3] = 0; - $spec[4] = 0; - } else { - $spec[0] = $b1; - $spec[1] = (int)($data / ($b1 + $b2)); - $spec[2] = (int)($ecc / ($b1 + $b2)); - $spec[3] = $b2; - $spec[4] = $spec[1] + 1; - } - } - - // Alignment pattern --------------------------------------------------- - - // Positions of alignment patterns. - // This array includes only the second and the third position of the - // alignment patterns. Rest of them can be calculated from the distance - // between them. - - // See Table 1 in Appendix E (pp.71) of JIS X0510:2004. - - public static $alignmentPattern = array( - array( 0, 0), - array( 0, 0), array(18, 0), array(22, 0), array(26, 0), array(30, 0), // 1- 5 - array(34, 0), array(22, 38), array(24, 42), array(26, 46), array(28, 50), // 6-10 - array(30, 54), array(32, 58), array(34, 62), array(26, 46), array(26, 48), //11-15 - array(26, 50), array(30, 54), array(30, 56), array(30, 58), array(34, 62), //16-20 - array(28, 50), array(26, 50), array(30, 54), array(28, 54), array(32, 58), //21-25 - array(30, 58), array(34, 62), array(26, 50), array(30, 54), array(26, 52), //26-30 - array(30, 56), array(34, 60), array(30, 58), array(34, 62), array(30, 54), //31-35 - array(24, 50), array(28, 54), array(32, 58), array(26, 54), array(30, 58), //35-40 - ); - - - /** -------------------------------------------------------------------- - * Put an alignment marker. - * @param frame - * @param width - * @param ox,oy center coordinate of the pattern - */ - public static function putAlignmentMarker(array &$frame, $ox, $oy) - { - $finder = array( - "\xa1\xa1\xa1\xa1\xa1", - "\xa1\xa0\xa0\xa0\xa1", - "\xa1\xa0\xa1\xa0\xa1", - "\xa1\xa0\xa0\xa0\xa1", - "\xa1\xa1\xa1\xa1\xa1" - ); - - $yStart = $oy-2; - $xStart = $ox-2; - - for($y=0; $y<5; $y++) { - QRstr::set($frame, $xStart, $yStart+$y, $finder[$y]); - } - } - - //---------------------------------------------------------------------- - public static function putAlignmentPattern($version, &$frame, $width) - { - if($version < 2) - return; - - $d = self::$alignmentPattern[$version][1] - self::$alignmentPattern[$version][0]; - if($d < 0) { - $w = 2; - } else { - $w = (int)(($width - self::$alignmentPattern[$version][0]) / $d + 2); - } - - if($w * $w - 3 == 1) { - $x = self::$alignmentPattern[$version][0]; - $y = self::$alignmentPattern[$version][0]; - self::putAlignmentMarker($frame, $x, $y); - return; - } - - $cx = self::$alignmentPattern[$version][0]; - for($x=1; $x<$w - 1; $x++) { - self::putAlignmentMarker($frame, 6, $cx); - self::putAlignmentMarker($frame, $cx, 6); - $cx += $d; - } - - $cy = self::$alignmentPattern[$version][0]; - for($y=0; $y<$w-1; $y++) { - $cx = self::$alignmentPattern[$version][0]; - for($x=0; $x<$w-1; $x++) { - self::putAlignmentMarker($frame, $cx, $cy); - $cx += $d; - } - $cy += $d; - } - } - - // Version information pattern ----------------------------------------- - - // Version information pattern (BCH coded). - // See Table 1 in Appendix D (pp.68) of JIS X0510:2004. - - // size: [QRSPEC_VERSION_MAX - 6] - - public static $versionPattern = array( - 0x07c94, 0x085bc, 0x09a99, 0x0a4d3, 0x0bbf6, 0x0c762, 0x0d847, 0x0e60d, - 0x0f928, 0x10b78, 0x1145d, 0x12a17, 0x13532, 0x149a6, 0x15683, 0x168c9, - 0x177ec, 0x18ec4, 0x191e1, 0x1afab, 0x1b08e, 0x1cc1a, 0x1d33f, 0x1ed75, - 0x1f250, 0x209d5, 0x216f0, 0x228ba, 0x2379f, 0x24b0b, 0x2542e, 0x26a64, - 0x27541, 0x28c69 - ); - - //---------------------------------------------------------------------- - public static function getVersionPattern($version) - { - if($version < 7 || $version > QRSPEC_VERSION_MAX) - return 0; - - return self::$versionPattern[$version -7]; - } - - // Format information -------------------------------------------------- - // See calcFormatInfo in tests/test_qrspec.c (orginal qrencode c lib) - - public static $formatInfo = array( - array(0x77c4, 0x72f3, 0x7daa, 0x789d, 0x662f, 0x6318, 0x6c41, 0x6976), - array(0x5412, 0x5125, 0x5e7c, 0x5b4b, 0x45f9, 0x40ce, 0x4f97, 0x4aa0), - array(0x355f, 0x3068, 0x3f31, 0x3a06, 0x24b4, 0x2183, 0x2eda, 0x2bed), - array(0x1689, 0x13be, 0x1ce7, 0x19d0, 0x0762, 0x0255, 0x0d0c, 0x083b) - ); - - public static function getFormatInfo($mask, $level) - { - if($mask < 0 || $mask > 7) - return 0; - - if($level < 0 || $level > 3) - return 0; - - return self::$formatInfo[$level][$mask]; - } - - // Frame --------------------------------------------------------------- - // Cache of initial frames. - - public static $frames = array(); - - /** -------------------------------------------------------------------- - * Put a finder pattern. - * @param frame - * @param width - * @param ox,oy upper-left coordinate of the pattern - */ - public static function putFinderPattern(&$frame, $ox, $oy) - { - $finder = array( - "\xc1\xc1\xc1\xc1\xc1\xc1\xc1", - "\xc1\xc0\xc0\xc0\xc0\xc0\xc1", - "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", - "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", - "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", - "\xc1\xc0\xc0\xc0\xc0\xc0\xc1", - "\xc1\xc1\xc1\xc1\xc1\xc1\xc1" - ); - - for($y=0; $y<7; $y++) { - QRstr::set($frame, $ox, $oy+$y, $finder[$y]); - } - } - - //---------------------------------------------------------------------- - public static function createFrame($version) - { - $width = self::$capacity[$version][QRCAP_WIDTH]; - $frameLine = str_repeat ("\0", $width); - $frame = array_fill(0, $width, $frameLine); - - // Finder pattern - self::putFinderPattern($frame, 0, 0); - self::putFinderPattern($frame, $width - 7, 0); - self::putFinderPattern($frame, 0, $width - 7); - - // Separator - $yOffset = $width - 7; - - for($y=0; $y<7; $y++) { - $frame[$y][7] = "\xc0"; - $frame[$y][$width - 8] = "\xc0"; - $frame[$yOffset][7] = "\xc0"; - $yOffset++; - } - - $setPattern = str_repeat("\xc0", 8); - - QRstr::set($frame, 0, 7, $setPattern); - QRstr::set($frame, $width-8, 7, $setPattern); - QRstr::set($frame, 0, $width - 8, $setPattern); - - // Format info - $setPattern = str_repeat("\x84", 9); - QRstr::set($frame, 0, 8, $setPattern); - QRstr::set($frame, $width - 8, 8, $setPattern, 8); - - $yOffset = $width - 8; - - for($y=0; $y<8; $y++,$yOffset++) { - $frame[$y][8] = "\x84"; - $frame[$yOffset][8] = "\x84"; - } - - // Timing pattern - - for($i=1; $i<$width-15; $i++) { - $frame[6][7+$i] = chr(0x90 | ($i & 1)); - $frame[7+$i][6] = chr(0x90 | ($i & 1)); - } - - // Alignment pattern - self::putAlignmentPattern($version, $frame, $width); - - // Version information - if($version >= 7) { - $vinf = self::getVersionPattern($version); - - $v = $vinf; - - for($x=0; $x<6; $x++) { - for($y=0; $y<3; $y++) { - $frame[($width - 11)+$y][$x] = chr(0x88 | ($v & 1)); - $v = $v >> 1; - } - } - - $v = $vinf; - for($y=0; $y<6; $y++) { - for($x=0; $x<3; $x++) { - $frame[$y][$x+($width - 11)] = chr(0x88 | ($v & 1)); - $v = $v >> 1; - } - } - } - - // and a little bit... - $frame[$width - 8][8] = "\x81"; - - return $frame; - } - - //---------------------------------------------------------------------- - public static function debug($frame, $binary_mode = false) - { - if ($binary_mode) { - - foreach ($frame as &$frameLine) { - $frameLine = join('  ', explode('0', $frameLine)); - $frameLine = join('██', explode('1', $frameLine)); - } - - ?> - -


        '; - echo join("
        ", $frame); - echo '






'; - - } else { - - foreach ($frame as &$frameLine) { - $frameLine = join(' ', explode("\xc0", $frameLine)); - $frameLine = join('', explode("\xc1", $frameLine)); - $frameLine = join(' ', explode("\xa0", $frameLine)); - $frameLine = join('', explode("\xa1", $frameLine)); - $frameLine = join('', explode("\x84", $frameLine)); //format 0 - $frameLine = join('', explode("\x85", $frameLine)); //format 1 - $frameLine = join('', explode("\x81", $frameLine)); //special bit - $frameLine = join(' ', explode("\x90", $frameLine)); //clock 0 - $frameLine = join('', explode("\x91", $frameLine)); //clock 1 - $frameLine = join(' ', explode("\x88", $frameLine)); //version - $frameLine = join('', explode("\x89", $frameLine)); //version - $frameLine = join('♦', explode("\x01", $frameLine)); - $frameLine = join('⋅', explode("\0", $frameLine)); - } - - ?> - - "; - echo join("
", $frame); - echo "
"; - - } - } - - //---------------------------------------------------------------------- - public static function serial($frame) - { - return gzcompress(join("\n", $frame), 9); - } - - //---------------------------------------------------------------------- - public static function unserial($code) - { - return explode("\n", gzuncompress($code)); - } - - //---------------------------------------------------------------------- - public static function newFrame($version) - { - if($version < 1 || $version > QRSPEC_VERSION_MAX) - return null; - - if(!isset(self::$frames[$version])) { - - $fileName = QR_CACHE_DIR.'frame_'.$version.'.dat'; - - if (QR_CACHEABLE) { - if (file_exists($fileName)) { - self::$frames[$version] = self::unserial(file_get_contents($fileName)); - } else { - self::$frames[$version] = self::createFrame($version); - file_put_contents($fileName, self::serial(self::$frames[$version])); - } - } else { - self::$frames[$version] = self::createFrame($version); - } - } - - if(is_null(self::$frames[$version])) - return null; - - return self::$frames[$version]; - } - - //---------------------------------------------------------------------- - public static function rsBlockNum($spec) { return $spec[0] + $spec[3]; } - public static function rsBlockNum1($spec) { return $spec[0]; } - public static function rsDataCodes1($spec) { return $spec[1]; } - public static function rsEccCodes1($spec) { return $spec[2]; } - public static function rsBlockNum2($spec) { return $spec[3]; } - public static function rsDataCodes2($spec) { return $spec[4]; } - public static function rsEccCodes2($spec) { return $spec[2]; } - public static function rsDataLength($spec) { return ($spec[0] * $spec[1]) + ($spec[3] * $spec[4]); } - public static function rsEccLength($spec) { return ($spec[0] + $spec[3]) * $spec[2]; } - - } \ No newline at end of file diff --git a/admin/phpqrcode/qrsplit.php b/admin/phpqrcode/qrsplit.php deleted file mode 100644 index d75b827..0000000 --- a/admin/phpqrcode/qrsplit.php +++ /dev/null @@ -1,311 +0,0 @@ - - * - * PHP QR Code is distributed under LGPL 3 - * Copyright (C) 2010 Dominik Dzienia - * - * The following data / specifications are taken from - * "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004) - * or - * "Automatic identification and data capture techniques -- - * QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006) - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - class QRsplit { - - public $dataStr = ''; - public $input; - public $modeHint; - - //---------------------------------------------------------------------- - public function __construct($dataStr, $input, $modeHint) - { - $this->dataStr = $dataStr; - $this->input = $input; - $this->modeHint = $modeHint; - } - - //---------------------------------------------------------------------- - public static function isdigitat($str, $pos) - { - if ($pos >= strlen($str)) - return false; - - return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9'))); - } - - //---------------------------------------------------------------------- - public static function isalnumat($str, $pos) - { - if ($pos >= strlen($str)) - return false; - - return (QRinput::lookAnTable(ord($str[$pos])) >= 0); - } - - //---------------------------------------------------------------------- - public function identifyMode($pos) - { - if ($pos >= strlen($this->dataStr)) - return QR_MODE_NUL; - - $c = $this->dataStr[$pos]; - - if(self::isdigitat($this->dataStr, $pos)) { - return QR_MODE_NUM; - } else if(self::isalnumat($this->dataStr, $pos)) { - return QR_MODE_AN; - } else if($this->modeHint == QR_MODE_KANJI) { - - if ($pos+1 < strlen($this->dataStr)) - { - $d = $this->dataStr[$pos+1]; - $word = (ord($c) << 8) | ord($d); - if(($word >= 0x8140 && $word <= 0x9ffc) || ($word >= 0xe040 && $word <= 0xebbf)) { - return QR_MODE_KANJI; - } - } - } - - return QR_MODE_8; - } - - //---------------------------------------------------------------------- - public function eatNum() - { - $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion()); - - $p = 0; - while(self::isdigitat($this->dataStr, $p)) { - $p++; - } - - $run = $p; - $mode = $this->identifyMode($p); - - if($mode == QR_MODE_8) { - $dif = QRinput::estimateBitsModeNum($run) + 4 + $ln - + QRinput::estimateBitsMode8(1) // + 4 + l8 - - QRinput::estimateBitsMode8($run + 1); // - 4 - l8 - if($dif > 0) { - return $this->eat8(); - } - } - if($mode == QR_MODE_AN) { - $dif = QRinput::estimateBitsModeNum($run) + 4 + $ln - + QRinput::estimateBitsModeAn(1) // + 4 + la - - QRinput::estimateBitsModeAn($run + 1);// - 4 - la - if($dif > 0) { - return $this->eatAn(); - } - } - - $ret = $this->input->append(QR_MODE_NUM, $run, str_split($this->dataStr)); - if($ret < 0) - return -1; - - return $run; - } - - //---------------------------------------------------------------------- - public function eatAn() - { - $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion()); - $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion()); - - $p = 0; - - while(self::isalnumat($this->dataStr, $p)) { - if(self::isdigitat($this->dataStr, $p)) { - $q = $p; - while(self::isdigitat($this->dataStr, $q)) { - $q++; - } - - $dif = QRinput::estimateBitsModeAn($p) // + 4 + la - + QRinput::estimateBitsModeNum($q - $p) + 4 + $ln - - QRinput::estimateBitsModeAn($q); // - 4 - la - - if($dif < 0) { - break; - } else { - $p = $q; - } - } else { - $p++; - } - } - - $run = $p; - - if(!self::isalnumat($this->dataStr, $p)) { - $dif = QRinput::estimateBitsModeAn($run) + 4 + $la - + QRinput::estimateBitsMode8(1) // + 4 + l8 - - QRinput::estimateBitsMode8($run + 1); // - 4 - l8 - if($dif > 0) { - return $this->eat8(); - } - } - - $ret = $this->input->append(QR_MODE_AN, $run, str_split($this->dataStr)); - if($ret < 0) - return -1; - - return $run; - } - - //---------------------------------------------------------------------- - public function eatKanji() - { - $p = 0; - - while($this->identifyMode($p) == QR_MODE_KANJI) { - $p += 2; - } - - $ret = $this->input->append(QR_MODE_KANJI, $p, str_split($this->dataStr)); - if($ret < 0) - return -1; - - return $run; - } - - //---------------------------------------------------------------------- - public function eat8() - { - $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion()); - $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion()); - - $p = 1; - $dataStrLen = strlen($this->dataStr); - - while($p < $dataStrLen) { - - $mode = $this->identifyMode($p); - if($mode == QR_MODE_KANJI) { - break; - } - if($mode == QR_MODE_NUM) { - $q = $p; - while(self::isdigitat($this->dataStr, $q)) { - $q++; - } - $dif = QRinput::estimateBitsMode8($p) // + 4 + l8 - + QRinput::estimateBitsModeNum($q - $p) + 4 + $ln - - QRinput::estimateBitsMode8($q); // - 4 - l8 - if($dif < 0) { - break; - } else { - $p = $q; - } - } else if($mode == QR_MODE_AN) { - $q = $p; - while(self::isalnumat($this->dataStr, $q)) { - $q++; - } - $dif = QRinput::estimateBitsMode8($p) // + 4 + l8 - + QRinput::estimateBitsModeAn($q - $p) + 4 + $la - - QRinput::estimateBitsMode8($q); // - 4 - l8 - if($dif < 0) { - break; - } else { - $p = $q; - } - } else { - $p++; - } - } - - $run = $p; - $ret = $this->input->append(QR_MODE_8, $run, str_split($this->dataStr)); - - if($ret < 0) - return -1; - - return $run; - } - - //---------------------------------------------------------------------- - public function splitString() - { - while (strlen($this->dataStr) > 0) - { - if($this->dataStr == '') - return 0; - - $mode = $this->identifyMode(0); - - switch ($mode) { - case QR_MODE_NUM: $length = $this->eatNum(); break; - case QR_MODE_AN: $length = $this->eatAn(); break; - case QR_MODE_KANJI: - if ($hint == QR_MODE_KANJI) - $length = $this->eatKanji(); - else $length = $this->eat8(); - break; - default: $length = $this->eat8(); break; - - } - - if($length == 0) return 0; - if($length < 0) return -1; - - $this->dataStr = substr($this->dataStr, $length); - } - } - - //---------------------------------------------------------------------- - public function toUpper() - { - $stringLen = strlen($this->dataStr); - $p = 0; - - while ($p<$stringLen) { - $mode = self::identifyMode(substr($this->dataStr, $p), $this->modeHint); - if($mode == QR_MODE_KANJI) { - $p += 2; - } else { - if (ord($this->dataStr[$p]) >= ord('a') && ord($this->dataStr[$p]) <= ord('z')) { - $this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32); - } - $p++; - } - } - - return $this->dataStr; - } - - //---------------------------------------------------------------------- - public static function splitStringToQRinput($string, QRinput $input, $modeHint, $casesensitive = true) - { - if(is_null($string) || $string == '\0' || $string == '') { - throw new Exception('empty string!!!'); - } - - $split = new QRsplit($string, $input, $modeHint); - - if(!$casesensitive) - $split->toUpper(); - - return $split->splitString(); - } - } \ No newline at end of file diff --git a/admin/phpqrcode/qrtools.php b/admin/phpqrcode/qrtools.php deleted file mode 100644 index 3012db4..0000000 --- a/admin/phpqrcode/qrtools.php +++ /dev/null @@ -1,172 +0,0 @@ - - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - class QRtools { - - //---------------------------------------------------------------------- - public static function binarize($frame) - { - $len = count($frame); - foreach ($frame as &$frameLine) { - - for($i=0; $i<$len; $i++) { - $frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0'; - } - } - - return $frame; - } - - //---------------------------------------------------------------------- - public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037') - { - $barcode_array = array(); - - if (!is_array($mode)) - $mode = explode(',', $mode); - - $eccLevel = 'L'; - - if (count($mode) > 1) { - $eccLevel = $mode[1]; - } - - $qrTab = QRcode::text($code, false, $eccLevel); - $size = count($qrTab); - - $barcode_array['num_rows'] = $size; - $barcode_array['num_cols'] = $size; - $barcode_array['bcode'] = array(); - - foreach ($qrTab as $line) { - $arrAdd = array(); - foreach(str_split($line) as $char) - $arrAdd[] = ($char=='1')?1:0; - $barcode_array['bcode'][] = $arrAdd; - } - - return $barcode_array; - } - - //---------------------------------------------------------------------- - public static function clearCache() - { - self::$frames = array(); - } - - //---------------------------------------------------------------------- - public static function buildCache() - { - QRtools::markTime('before_build_cache'); - - $mask = new QRmask(); - for ($a=1; $a <= QRSPEC_VERSION_MAX; $a++) { - $frame = QRspec::newFrame($a); - if (QR_IMAGE) { - $fileName = QR_CACHE_DIR.'frame_'.$a.'.png'; - QRimage::png(self::binarize($frame), $fileName, 1, 0); - } - - $width = count($frame); - $bitMask = array_fill(0, $width, array_fill(0, $width, 0)); - for ($maskNo=0; $maskNo<8; $maskNo++) - $mask->makeMaskNo($maskNo, $width, $frame, $bitMask, true); - } - - QRtools::markTime('after_build_cache'); - } - - //---------------------------------------------------------------------- - public static function log($outfile, $err) - { - if (QR_LOG_DIR !== false) { - if ($err != '') { - if ($outfile !== false) { - file_put_contents(QR_LOG_DIR.basename($outfile).'-errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND); - } else { - file_put_contents(QR_LOG_DIR.'errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND); - } - } - } - } - - //---------------------------------------------------------------------- - public static function dumpMask($frame) - { - $width = count($frame); - for($y=0;$y<$width;$y++) { - for($x=0;$x<$width;$x++) { - echo ord($frame[$y][$x]).','; - } - } - } - - //---------------------------------------------------------------------- - public static function markTime($markerId) - { - list($usec, $sec) = explode(" ", microtime()); - $time = ((float)$usec + (float)$sec); - - if (!isset($GLOBALS['qr_time_bench'])) - $GLOBALS['qr_time_bench'] = array(); - - $GLOBALS['qr_time_bench'][$markerId] = $time; - } - - //---------------------------------------------------------------------- - public static function timeBenchmark() - { - self::markTime('finish'); - - $lastTime = 0; - $startTime = 0; - $p = 0; - - echo ' - - '; - - foreach($GLOBALS['qr_time_bench'] as $markerId=>$thisTime) { - if ($p > 0) { - echo ''; - } else { - $startTime = $thisTime; - } - - $p++; - $lastTime = $thisTime; - } - - echo ' - - -
BENCHMARK
till '.$markerId.': '.number_format($thisTime-$lastTime, 6).'s
TOTAL: '.number_format($lastTime-$startTime, 6).'s
'; - } - - } - - //########################################################################## - - QRtools::markTime('start'); - \ No newline at end of file diff --git a/admin/phpqrcode/temp/415.png b/admin/phpqrcode/temp/415.png deleted file mode 100644 index 96a4466..0000000 Binary files a/admin/phpqrcode/temp/415.png and /dev/null differ diff --git a/admin/phpqrcode/temp/416.png b/admin/phpqrcode/temp/416.png deleted file mode 100644 index eb94519..0000000 Binary files a/admin/phpqrcode/temp/416.png and /dev/null differ diff --git a/admin/phpqrcode/temp/417.png b/admin/phpqrcode/temp/417.png deleted file mode 100644 index 007167e..0000000 Binary files a/admin/phpqrcode/temp/417.png and /dev/null differ diff --git a/admin/phpqrcode/temp/418.png b/admin/phpqrcode/temp/418.png deleted file mode 100644 index 66f08b7..0000000 Binary files a/admin/phpqrcode/temp/418.png and /dev/null differ diff --git a/admin/phpqrcode/temp/420.png b/admin/phpqrcode/temp/420.png deleted file mode 100644 index f96b852..0000000 Binary files a/admin/phpqrcode/temp/420.png and /dev/null differ diff --git a/admin/phpqrcode/temp/421.png b/admin/phpqrcode/temp/421.png deleted file mode 100644 index 567d989..0000000 Binary files a/admin/phpqrcode/temp/421.png and /dev/null differ diff --git a/admin/phpqrcode/temp/433.png b/admin/phpqrcode/temp/433.png deleted file mode 100644 index c164f96..0000000 Binary files a/admin/phpqrcode/temp/433.png and /dev/null differ diff --git a/admin/phpqrcode/temp/434.png b/admin/phpqrcode/temp/434.png deleted file mode 100644 index bcd2ce8..0000000 Binary files a/admin/phpqrcode/temp/434.png and /dev/null differ diff --git a/admin/phpqrcode/temp/435.png b/admin/phpqrcode/temp/435.png deleted file mode 100644 index 61d6286..0000000 Binary files a/admin/phpqrcode/temp/435.png and /dev/null differ diff --git a/admin/phpqrcode/temp/436.png b/admin/phpqrcode/temp/436.png deleted file mode 100644 index 14c3365..0000000 Binary files a/admin/phpqrcode/temp/436.png and /dev/null differ diff --git a/admin/phpqrcode/temp/465.png b/admin/phpqrcode/temp/465.png deleted file mode 100644 index 69d7d8c..0000000 Binary files a/admin/phpqrcode/temp/465.png and /dev/null differ diff --git a/admin/phpqrcode/temp/466.png b/admin/phpqrcode/temp/466.png deleted file mode 100644 index 2eba5b0..0000000 Binary files a/admin/phpqrcode/temp/466.png and /dev/null differ diff --git a/admin/phpqrcode/temp/468.png b/admin/phpqrcode/temp/468.png deleted file mode 100644 index d51cc19..0000000 Binary files a/admin/phpqrcode/temp/468.png and /dev/null differ diff --git a/admin/phpqrcode/temp/469.png b/admin/phpqrcode/temp/469.png deleted file mode 100644 index 935ee38..0000000 Binary files a/admin/phpqrcode/temp/469.png and /dev/null differ diff --git a/admin/phpqrcode/temp/471.png b/admin/phpqrcode/temp/471.png deleted file mode 100644 index 025e1a2..0000000 Binary files a/admin/phpqrcode/temp/471.png and /dev/null differ diff --git a/admin/phpqrcode/temp/472.png b/admin/phpqrcode/temp/472.png deleted file mode 100644 index 0fc5926..0000000 Binary files a/admin/phpqrcode/temp/472.png and /dev/null differ diff --git a/admin/phpqrcode/temp/473.png b/admin/phpqrcode/temp/473.png deleted file mode 100644 index 7459463..0000000 Binary files a/admin/phpqrcode/temp/473.png and /dev/null differ diff --git a/admin/phpqrcode/temp/501.png b/admin/phpqrcode/temp/501.png deleted file mode 100644 index b0d3777..0000000 Binary files a/admin/phpqrcode/temp/501.png and /dev/null differ diff --git a/admin/phpqrcode/temp/502.png b/admin/phpqrcode/temp/502.png deleted file mode 100644 index ffa95d4..0000000 Binary files a/admin/phpqrcode/temp/502.png and /dev/null differ diff --git a/admin/phpqrcode/temp/505.png b/admin/phpqrcode/temp/505.png deleted file mode 100644 index 0f8e0b3..0000000 Binary files a/admin/phpqrcode/temp/505.png and /dev/null differ diff --git a/admin/phpqrcode/temp/512.png b/admin/phpqrcode/temp/512.png deleted file mode 100644 index 433e944..0000000 Binary files a/admin/phpqrcode/temp/512.png and /dev/null differ diff --git a/admin/phpqrcode/temp/513.png b/admin/phpqrcode/temp/513.png deleted file mode 100644 index 67793a4..0000000 Binary files a/admin/phpqrcode/temp/513.png and /dev/null differ diff --git a/admin/phpqrcode/temp/514.png b/admin/phpqrcode/temp/514.png deleted file mode 100644 index 3945708..0000000 Binary files a/admin/phpqrcode/temp/514.png and /dev/null differ diff --git a/admin/phpqrcode/temp/515.png b/admin/phpqrcode/temp/515.png deleted file mode 100644 index 657fa6f..0000000 Binary files a/admin/phpqrcode/temp/515.png and /dev/null differ diff --git a/admin/phpqrcode/temp/519.png b/admin/phpqrcode/temp/519.png deleted file mode 100644 index 214f13f..0000000 Binary files a/admin/phpqrcode/temp/519.png and /dev/null differ diff --git a/admin/phpqrcode/temp/520.png b/admin/phpqrcode/temp/520.png deleted file mode 100644 index 08e710c..0000000 Binary files a/admin/phpqrcode/temp/520.png and /dev/null differ diff --git a/admin/phpqrcode/temp/521.png b/admin/phpqrcode/temp/521.png deleted file mode 100644 index e491eab..0000000 Binary files a/admin/phpqrcode/temp/521.png and /dev/null differ diff --git a/admin/phpqrcode/temp/522.png b/admin/phpqrcode/temp/522.png deleted file mode 100644 index 9c5d782..0000000 Binary files a/admin/phpqrcode/temp/522.png and /dev/null differ diff --git a/admin/phpqrcode/temp/523.png b/admin/phpqrcode/temp/523.png deleted file mode 100644 index 11ff902..0000000 Binary files a/admin/phpqrcode/temp/523.png and /dev/null differ diff --git a/admin/phpqrcode/temp/524.png b/admin/phpqrcode/temp/524.png deleted file mode 100644 index dc2d910..0000000 Binary files a/admin/phpqrcode/temp/524.png and /dev/null differ diff --git a/admin/phpqrcode/temp/525.png b/admin/phpqrcode/temp/525.png deleted file mode 100644 index e28dcf0..0000000 Binary files a/admin/phpqrcode/temp/525.png and /dev/null differ diff --git a/admin/phpqrcode/temp/526.png b/admin/phpqrcode/temp/526.png deleted file mode 100644 index e8d1ed2..0000000 Binary files a/admin/phpqrcode/temp/526.png and /dev/null differ diff --git a/admin/phpqrcode/temp/527.png b/admin/phpqrcode/temp/527.png deleted file mode 100644 index 25dcfd5..0000000 Binary files a/admin/phpqrcode/temp/527.png and /dev/null differ diff --git a/admin/phpqrcode/temp/528.png b/admin/phpqrcode/temp/528.png deleted file mode 100644 index 219a1f8..0000000 Binary files a/admin/phpqrcode/temp/528.png and /dev/null differ diff --git a/admin/phpqrcode/temp/547.png b/admin/phpqrcode/temp/547.png deleted file mode 100644 index 5c6419c..0000000 Binary files a/admin/phpqrcode/temp/547.png and /dev/null differ diff --git a/admin/phpqrcode/temp/548.png b/admin/phpqrcode/temp/548.png deleted file mode 100644 index c683cd5..0000000 Binary files a/admin/phpqrcode/temp/548.png and /dev/null differ diff --git a/admin/phpqrcode/temp/549.png b/admin/phpqrcode/temp/549.png deleted file mode 100644 index 9449c03..0000000 Binary files a/admin/phpqrcode/temp/549.png and /dev/null differ diff --git a/admin/phpqrcode/temp/550.png b/admin/phpqrcode/temp/550.png deleted file mode 100644 index bb1a77a..0000000 Binary files a/admin/phpqrcode/temp/550.png and /dev/null differ diff --git a/admin/phpqrcode/temp/551.png b/admin/phpqrcode/temp/551.png deleted file mode 100644 index 53ca975..0000000 Binary files a/admin/phpqrcode/temp/551.png and /dev/null differ diff --git a/admin/phpqrcode/temp/552.png b/admin/phpqrcode/temp/552.png deleted file mode 100644 index 2d8b0e9..0000000 Binary files a/admin/phpqrcode/temp/552.png and /dev/null differ diff --git a/admin/phpqrcode/temp/553.png b/admin/phpqrcode/temp/553.png deleted file mode 100644 index 21e46b9..0000000 Binary files a/admin/phpqrcode/temp/553.png and /dev/null differ diff --git a/admin/phpqrcode/temp/554.png b/admin/phpqrcode/temp/554.png deleted file mode 100644 index 7cda37d..0000000 Binary files a/admin/phpqrcode/temp/554.png and /dev/null differ diff --git a/admin/phpqrcode/temp/555.png b/admin/phpqrcode/temp/555.png deleted file mode 100644 index 3a87fb2..0000000 Binary files a/admin/phpqrcode/temp/555.png and /dev/null differ diff --git a/admin/phpqrcode/temp/560.png b/admin/phpqrcode/temp/560.png deleted file mode 100644 index 8ccaece..0000000 Binary files a/admin/phpqrcode/temp/560.png and /dev/null differ diff --git a/admin/phpqrcode/temp/561.png b/admin/phpqrcode/temp/561.png deleted file mode 100644 index c8fa0a3..0000000 Binary files a/admin/phpqrcode/temp/561.png and /dev/null differ diff --git a/admin/phpqrcode/temp/562.png b/admin/phpqrcode/temp/562.png deleted file mode 100644 index 93a14f1..0000000 Binary files a/admin/phpqrcode/temp/562.png and /dev/null differ diff --git a/admin/phpqrcode/temp/565.png b/admin/phpqrcode/temp/565.png deleted file mode 100644 index 5afe339..0000000 Binary files a/admin/phpqrcode/temp/565.png and /dev/null differ diff --git a/admin/phpqrcode/temp/566.png b/admin/phpqrcode/temp/566.png deleted file mode 100644 index 3c02f29..0000000 Binary files a/admin/phpqrcode/temp/566.png and /dev/null differ diff --git a/admin/phpqrcode/temp/567.png b/admin/phpqrcode/temp/567.png deleted file mode 100644 index 69b46f6..0000000 Binary files a/admin/phpqrcode/temp/567.png and /dev/null differ diff --git a/admin/phpqrcode/temp/568.png b/admin/phpqrcode/temp/568.png deleted file mode 100644 index 72a3c95..0000000 Binary files a/admin/phpqrcode/temp/568.png and /dev/null differ diff --git a/admin/phpqrcode/temp/569.png b/admin/phpqrcode/temp/569.png deleted file mode 100644 index 79d9726..0000000 Binary files a/admin/phpqrcode/temp/569.png and /dev/null differ diff --git a/admin/phpqrcode/temp/570.png b/admin/phpqrcode/temp/570.png deleted file mode 100644 index e5d80eb..0000000 Binary files a/admin/phpqrcode/temp/570.png and /dev/null differ diff --git a/admin/phpqrcode/temp/571.png b/admin/phpqrcode/temp/571.png deleted file mode 100644 index a5053af..0000000 Binary files a/admin/phpqrcode/temp/571.png and /dev/null differ diff --git a/admin/phpqrcode/temp/572.png b/admin/phpqrcode/temp/572.png deleted file mode 100644 index 8352e3c..0000000 Binary files a/admin/phpqrcode/temp/572.png and /dev/null differ diff --git a/admin/phpqrcode/temp/573.png b/admin/phpqrcode/temp/573.png deleted file mode 100644 index 90df043..0000000 Binary files a/admin/phpqrcode/temp/573.png and /dev/null differ diff --git a/admin/phpqrcode/temp/579.png b/admin/phpqrcode/temp/579.png deleted file mode 100644 index 4515641..0000000 Binary files a/admin/phpqrcode/temp/579.png and /dev/null differ diff --git a/admin/phpqrcode/temp/580.png b/admin/phpqrcode/temp/580.png deleted file mode 100644 index 27994d8..0000000 Binary files a/admin/phpqrcode/temp/580.png and /dev/null differ diff --git a/admin/phpqrcode/temp/581.png b/admin/phpqrcode/temp/581.png deleted file mode 100644 index b08de90..0000000 Binary files a/admin/phpqrcode/temp/581.png and /dev/null differ diff --git a/admin/phpqrcode/temp/582.png b/admin/phpqrcode/temp/582.png deleted file mode 100644 index cd4b13c..0000000 Binary files a/admin/phpqrcode/temp/582.png and /dev/null differ diff --git a/admin/phpqrcode/temp/584.png b/admin/phpqrcode/temp/584.png deleted file mode 100644 index 42a7885..0000000 Binary files a/admin/phpqrcode/temp/584.png and /dev/null differ diff --git a/admin/phpqrcode/temp/6038.png b/admin/phpqrcode/temp/6038.png deleted file mode 100644 index 36f41ed..0000000 Binary files a/admin/phpqrcode/temp/6038.png and /dev/null differ diff --git a/admin/phpqrcode/temp/614.png b/admin/phpqrcode/temp/614.png deleted file mode 100644 index 33a7d96..0000000 Binary files a/admin/phpqrcode/temp/614.png and /dev/null differ diff --git a/admin/phpqrcode/temp/615.png b/admin/phpqrcode/temp/615.png deleted file mode 100644 index 26bf85e..0000000 Binary files a/admin/phpqrcode/temp/615.png and /dev/null differ diff --git a/admin/phpqrcode/temp/6174.png b/admin/phpqrcode/temp/6174.png deleted file mode 100644 index 01a4db6..0000000 Binary files a/admin/phpqrcode/temp/6174.png and /dev/null differ diff --git a/admin/phpqrcode/temp/6175.png b/admin/phpqrcode/temp/6175.png deleted file mode 100644 index edc4f9e..0000000 Binary files a/admin/phpqrcode/temp/6175.png and /dev/null differ diff --git a/admin/phpqrcode/temp/6176.png b/admin/phpqrcode/temp/6176.png deleted file mode 100644 index 33bd8ba..0000000 Binary files a/admin/phpqrcode/temp/6176.png and /dev/null differ diff --git a/admin/phpqrcode/temp/6177.png b/admin/phpqrcode/temp/6177.png deleted file mode 100644 index 2a6de15..0000000 Binary files a/admin/phpqrcode/temp/6177.png and /dev/null differ diff --git a/admin/phpqrcode/temp/6178.png b/admin/phpqrcode/temp/6178.png deleted file mode 100644 index 8c1409e..0000000 Binary files a/admin/phpqrcode/temp/6178.png and /dev/null differ diff --git a/admin/phpqrcode/temp/6179.png b/admin/phpqrcode/temp/6179.png deleted file mode 100644 index b607620..0000000 Binary files a/admin/phpqrcode/temp/6179.png and /dev/null differ diff --git a/admin/phpqrcode/temp/6180.png b/admin/phpqrcode/temp/6180.png deleted file mode 100644 index 632076d..0000000 Binary files a/admin/phpqrcode/temp/6180.png and /dev/null differ diff --git a/admin/phpqrcode/temp/6181.png b/admin/phpqrcode/temp/6181.png deleted file mode 100644 index b2661df..0000000 Binary files a/admin/phpqrcode/temp/6181.png and /dev/null differ diff --git a/admin/phpqrcode/temp/6182.png b/admin/phpqrcode/temp/6182.png deleted file mode 100644 index eb255f6..0000000 Binary files a/admin/phpqrcode/temp/6182.png and /dev/null differ diff --git a/admin/phpqrcode/temp/619.png b/admin/phpqrcode/temp/619.png deleted file mode 100644 index 7dfe088..0000000 Binary files a/admin/phpqrcode/temp/619.png and /dev/null differ diff --git a/admin/phpqrcode/temp/620.png b/admin/phpqrcode/temp/620.png deleted file mode 100644 index b7e1367..0000000 Binary files a/admin/phpqrcode/temp/620.png and /dev/null differ diff --git a/admin/phpqrcode/temp/6232.png b/admin/phpqrcode/temp/6232.png deleted file mode 100644 index cc8ba8a..0000000 Binary files a/admin/phpqrcode/temp/6232.png and /dev/null differ diff --git a/admin/phpqrcode/temp/927.png b/admin/phpqrcode/temp/927.png deleted file mode 100644 index 13f361c..0000000 Binary files a/admin/phpqrcode/temp/927.png and /dev/null differ diff --git a/admin/phpqrcode/temp/928.png b/admin/phpqrcode/temp/928.png deleted file mode 100644 index 007db4c..0000000 Binary files a/admin/phpqrcode/temp/928.png and /dev/null differ diff --git a/admin/phpqrcode/temp/929.png b/admin/phpqrcode/temp/929.png deleted file mode 100644 index e62a09d..0000000 Binary files a/admin/phpqrcode/temp/929.png and /dev/null differ diff --git a/admin/phpqrcode/temp/930.png b/admin/phpqrcode/temp/930.png deleted file mode 100644 index 94d9110..0000000 Binary files a/admin/phpqrcode/temp/930.png and /dev/null differ diff --git a/admin/phpqrcode/temp/931.png b/admin/phpqrcode/temp/931.png deleted file mode 100644 index 298f1cf..0000000 Binary files a/admin/phpqrcode/temp/931.png and /dev/null differ diff --git a/admin/phpqrcode/temp/932.png b/admin/phpqrcode/temp/932.png deleted file mode 100644 index fec8b35..0000000 Binary files a/admin/phpqrcode/temp/932.png and /dev/null differ diff --git a/admin/phpqrcode/temp/933.png b/admin/phpqrcode/temp/933.png deleted file mode 100644 index 992d592..0000000 Binary files a/admin/phpqrcode/temp/933.png and /dev/null differ diff --git a/admin/phpqrcode/temp/934.png b/admin/phpqrcode/temp/934.png deleted file mode 100644 index c7cf1ee..0000000 Binary files a/admin/phpqrcode/temp/934.png and /dev/null differ diff --git a/admin/phpqrcode/temp/935.png b/admin/phpqrcode/temp/935.png deleted file mode 100644 index 8bb75fb..0000000 Binary files a/admin/phpqrcode/temp/935.png and /dev/null differ diff --git a/admin/phpqrcode/temp/936.png b/admin/phpqrcode/temp/936.png deleted file mode 100644 index a9de8d1..0000000 Binary files a/admin/phpqrcode/temp/936.png and /dev/null differ diff --git a/admin/phpqrcode/temp/937.png b/admin/phpqrcode/temp/937.png deleted file mode 100644 index 659c9f5..0000000 Binary files a/admin/phpqrcode/temp/937.png and /dev/null differ diff --git a/admin/phpqrcode/temp/938.png b/admin/phpqrcode/temp/938.png deleted file mode 100644 index 30acf28..0000000 Binary files a/admin/phpqrcode/temp/938.png and /dev/null differ diff --git a/admin/phpqrcode/temp/939.png b/admin/phpqrcode/temp/939.png deleted file mode 100644 index d0a3477..0000000 Binary files a/admin/phpqrcode/temp/939.png and /dev/null differ diff --git a/admin/phpqrcode/temp/940.png b/admin/phpqrcode/temp/940.png deleted file mode 100644 index 9fc8638..0000000 Binary files a/admin/phpqrcode/temp/940.png and /dev/null differ diff --git a/admin/phpqrcode/temp/941.png b/admin/phpqrcode/temp/941.png deleted file mode 100644 index b405ccb..0000000 Binary files a/admin/phpqrcode/temp/941.png and /dev/null differ diff --git a/admin/phpqrcode/temp/942.png b/admin/phpqrcode/temp/942.png deleted file mode 100644 index 7fde3ad..0000000 Binary files a/admin/phpqrcode/temp/942.png and /dev/null differ diff --git a/admin/phpqrcode/temp/943.png b/admin/phpqrcode/temp/943.png deleted file mode 100644 index 16fa74a..0000000 Binary files a/admin/phpqrcode/temp/943.png and /dev/null differ diff --git a/admin/phpqrcode/temp/944.png b/admin/phpqrcode/temp/944.png deleted file mode 100644 index 784d8a9..0000000 Binary files a/admin/phpqrcode/temp/944.png and /dev/null differ diff --git a/admin/phpqrcode/temp/945.png b/admin/phpqrcode/temp/945.png deleted file mode 100644 index 70e7b43..0000000 Binary files a/admin/phpqrcode/temp/945.png and /dev/null differ diff --git a/admin/phpqrcode/temp/946.png b/admin/phpqrcode/temp/946.png deleted file mode 100644 index 9525463..0000000 Binary files a/admin/phpqrcode/temp/946.png and /dev/null differ diff --git a/admin/phpqrcode/temp/947.png b/admin/phpqrcode/temp/947.png deleted file mode 100644 index db74a7d..0000000 Binary files a/admin/phpqrcode/temp/947.png and /dev/null differ diff --git a/admin/phpqrcode/temp/948.png b/admin/phpqrcode/temp/948.png deleted file mode 100644 index 5aa58cb..0000000 Binary files a/admin/phpqrcode/temp/948.png and /dev/null differ diff --git a/admin/phpqrcode/temp/949.png b/admin/phpqrcode/temp/949.png deleted file mode 100644 index ef69703..0000000 Binary files a/admin/phpqrcode/temp/949.png and /dev/null differ diff --git a/admin/phpqrcode/temp/950.png b/admin/phpqrcode/temp/950.png deleted file mode 100644 index 3d7322f..0000000 Binary files a/admin/phpqrcode/temp/950.png and /dev/null differ diff --git a/admin/phpqrcode/temp/951.png b/admin/phpqrcode/temp/951.png deleted file mode 100644 index 3ee5c3e..0000000 Binary files a/admin/phpqrcode/temp/951.png and /dev/null differ diff --git a/admin/phpqrcode/temp/952.png b/admin/phpqrcode/temp/952.png deleted file mode 100644 index 660c28c..0000000 Binary files a/admin/phpqrcode/temp/952.png and /dev/null differ diff --git a/admin/phpqrcode/temp/953.png b/admin/phpqrcode/temp/953.png deleted file mode 100644 index a995938..0000000 Binary files a/admin/phpqrcode/temp/953.png and /dev/null differ diff --git a/admin/phpqrcode/temp/954.png b/admin/phpqrcode/temp/954.png deleted file mode 100644 index dac8be8..0000000 Binary files a/admin/phpqrcode/temp/954.png and /dev/null differ diff --git a/admin/phpqrcode/temp/955.png b/admin/phpqrcode/temp/955.png deleted file mode 100644 index fb18c63..0000000 Binary files a/admin/phpqrcode/temp/955.png and /dev/null differ diff --git a/admin/phpqrcode/temp/956.png b/admin/phpqrcode/temp/956.png deleted file mode 100644 index d03abe7..0000000 Binary files a/admin/phpqrcode/temp/956.png and /dev/null differ diff --git a/admin/phpqrcode/temp/957.png b/admin/phpqrcode/temp/957.png deleted file mode 100644 index 95eb686..0000000 Binary files a/admin/phpqrcode/temp/957.png and /dev/null differ diff --git a/admin/phpqrcode/temp/958.png b/admin/phpqrcode/temp/958.png deleted file mode 100644 index 9ec179f..0000000 Binary files a/admin/phpqrcode/temp/958.png and /dev/null differ diff --git a/admin/phpqrcode/temp/959.png b/admin/phpqrcode/temp/959.png deleted file mode 100644 index c1b5e67..0000000 Binary files a/admin/phpqrcode/temp/959.png and /dev/null differ diff --git a/admin/phpqrcode/temp/960.png b/admin/phpqrcode/temp/960.png deleted file mode 100644 index cee8715..0000000 Binary files a/admin/phpqrcode/temp/960.png and /dev/null differ diff --git a/admin/phpqrcode/tools/merge.bat b/admin/phpqrcode/tools/merge.bat deleted file mode 100644 index b60a485..0000000 --- a/admin/phpqrcode/tools/merge.bat +++ /dev/null @@ -1,2 +0,0 @@ -php ./merge.php -pause \ No newline at end of file diff --git a/admin/phpqrcode/tools/merge.php b/admin/phpqrcode/tools/merge.php deleted file mode 100644 index 19d338b..0000000 --- a/admin/phpqrcode/tools/merge.php +++ /dev/null @@ -1,70 +0,0 @@ - - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - $QR_BASEDIR = dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR; - $QR_TOOLSDIR = dirname(__FILE__).DIRECTORY_SEPARATOR; - - $outputFile = $QR_BASEDIR.'phpqrcode.php'; - - // Required libs - - $fileList = array( - $QR_BASEDIR.'qrconst.php', - $QR_TOOLSDIR.'merged_config.php', - $QR_BASEDIR.'qrtools.php', - $QR_BASEDIR.'qrspec.php', - $QR_BASEDIR.'qrimage.php', - $QR_BASEDIR.'qrinput.php', - $QR_BASEDIR.'qrbitstream.php', - $QR_BASEDIR.'qrsplit.php', - $QR_BASEDIR.'qrrscode.php', - $QR_BASEDIR.'qrmask.php', - $QR_BASEDIR.'qrencode.php' - ); - - $headerFile = $QR_TOOLSDIR.'merged_header.php'; - $versionFile = $QR_BASEDIR.'VERSION'; - - $outputCode = ''; - - foreach($fileList as $fileName) { - $outputCode .= "\n\n".'//---- '.basename($fileName).' -----------------------------'."\n\n"; - $anotherCode = file_get_contents($fileName); - $anotherCode = preg_replace ('/^<\?php/', '', $anotherCode); - $anotherCode = preg_replace ('/\?>\*$/', '', $anotherCode); - $outputCode .= "\n\n".$anotherCode."\n\n"; - } - - $versionDataEx = explode("\n", file_get_contents($versionFile)); - - $outputContents = file_get_contents($headerFile); - $outputContents .= "\n\n/*\n * Version: ".trim($versionDataEx[0])."\n * Build: ".trim($versionDataEx[1])."\n */\n\n"; - $outputContents .= $outputCode; - - file_put_contents($outputFile, $outputContents); - - \ No newline at end of file diff --git a/admin/phpqrcode/tools/merge.sh b/admin/phpqrcode/tools/merge.sh deleted file mode 100644 index e4c2fbc..0000000 --- a/admin/phpqrcode/tools/merge.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -php ./merge.php \ No newline at end of file diff --git a/admin/phpqrcode/tools/merged_config.php b/admin/phpqrcode/tools/merged_config.php deleted file mode 100644 index 55ddb45..0000000 --- a/admin/phpqrcode/tools/merged_config.php +++ /dev/null @@ -1,17 +0,0 @@ - - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - \ No newline at end of file diff --git a/admin/qr_code.php b/admin/qr_code.php deleted file mode 100644 index 9ebeacf..0000000 --- a/admin/qr_code.php +++ /dev/null @@ -1,317 +0,0 @@ -assign('qrcode_error', 1); - - $smarty->assign('qrcode_value_vorname', $_SESSION["qrcode_value_vorname"]); - $smarty->assign('qrcode_value_nachname', $_SESSION["qrcode_value_nachname"]); - $smarty->assign('qrcode_value_qrcode', $_SESSION["qrcode_value_qrcode"]); - $smarty->assign('qrcode_value_mail', $_SESSION["qrcode_value_mail"]); - - if ($errorno == 3) { - # ungültiges Datum - $smarty->assign('qrcode_error_text', "Das eingegebene Datum ist nicht korrekt. Bitte korrigieren Sie das Datum!"); - } - } - - # --- Wenn Werte editiert werden ------------ - if ($_SESSION["qrcode_status"] == 'edit') { - - $result_edit = $db->query("SELECT id, nachname, vorname, qr, mail - FROM jumi_qr_fellbach - WHERE id = $id"); - $row_edit = $result_edit->fetch_array(); - $smarty->assign('qrcode_value_vorname', "$row_edit[vorname]"); - $smarty->assign('qrcode_value_nachname', "$row_edit[nachname]"); - $smarty->assign('qrcode_value_qrcode', "$row_edit[qr]"); - $smarty->assign('qrcode_value_mail', "$row_edit[mail]"); - - } - # --- Wenn Werte editiert werden Ende ------- - - if ($_GET['editende'] == 1) { - # Editieren ist beendet, als ein update auf einen Datensatz. Dann ist der status wieder Neu, damit wird wieder ein Insert durchgeführt - $_SESSION["qrcode_status"] = 'neu'; - } - - - # Gespeicherte Werte - $query1 = "SELECT id, nachname,vorname, qr, mail - FROM jumi_qr_fellbach - ORDER BY nachname ASC, vorname ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1a"); - - while ($row1 = $result1->fetch_array()) { - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - -} - - -if ($action == 'save') { - - $vorname = $_POST['vorname']; - $nachname = $_POST['nachname']; - $qr = $_POST['qrcode']; - $mail = trim($_POST['mail']); - - - $_SESSION["qrcode_value_vorname"] = $vorname; - $_SESSION["qrcode_value_nachname"] = $nachname; - $_SESSION["qrcode_value_qrcode"] = $qr; - $_SESSION["qrcode_value_mail"] = $mail; - - - #$datum = date("Y-m-d H:i:s"); - if ($_SESSION["qrcode_status"] == 'neu') { - $sql1 = $db->query("INSERT INTO jumi_qr_fellbach ( nachname - , vorname - , qr - , mail - ) - VALUES - ( '$nachname' - , '$vorname' - , '$qr' - , '$mail' - ) - "); - $termin = $db->insert_id; - -/* Daueranmelder wird es nicht geben. - - $query1 = "SELECT DISTINCT lfd_haushalt FROM jumi_daueranmeldung"; - $result1 = $db->query($query1) or die("Cannot execute query1"); - while ($row1 = $result1->fetch_array()) { - $lfd_haushalt = get_lfd_haushalt($termin); - $datum = date("Y-m-d H:i:s"); - - $query2 = "SELECT mail - FROM jumi_daueranmeldung - WHERE lfd_haushalt = $row1[lfd_haushalt] - GROUP BY lfd_haushalt, mail - "; - $result2 = $db->query($query2) or die("Cannot execute query2"); - while ($row2 = $result2->fetch_array()) { - - $query3 = "SELECT vorname, nachname - FROM jumi_daueranmeldung - WHERE mail= '$row2[mail]' - AND lfd_haushalt = $row1[lfd_haushalt] - "; - #echo $query3; - $result3 = $db->query($query3) or die("Cannot execute query3"); - $nr = 0; - while ($row3 = $result3->fetch_array()) { - $data['vorname'][$nr] = $row3['vorname']; - $data['nachname'][$nr] = $row3['nachname']; - $data['sitzplatz'][$nr] = get_sitzplatz($data['nachname'][$nr], $data['vorname'][$nr]); - $data['split'][$nr] = explode("|", $data['sitzplatz'][$nr]); - $data['reihe'][$nr] = $data['split'][$nr][0]; - $data['platz'][$nr] = $data['split'][$nr][1]; - $sql1 = $db->query("insert into jumi_buchung (id, nachname, vorname, reihe, platz, mail, lfd_haushalt, save_date) VALUES('$termin', '" . $data['nachname'][$nr] . "', '" . $data['vorname'][$nr] . "', '" . $data['reihe'][$nr] . "', '" . $data['platz'][$nr] . "', '$row2[mail]', '$lfd_haushalt', '$datum')"); - #echo "
";
-          #echo "
"; - #echo "insert into jumi_buchung (id, nachname, vorname, reihe, platz, mail, lfd_haushalt, save_date) VALUES('$termin', '".$data['nachname'][$nr]."', '".$data['vorname'][$nr]."', '".$data['reihe'][$nr]."', '".$data[platz][$nr]."', '$row2[mail]', '$lfd_haushalt', '$datum')
"; - $data['bid'][$nr] = $db->insert_id; - $data['crypt'][$nr] = cryption($data['bid'][$nr] . "|" . $data['nachname'][$nr] . "|$termin", 'e'); - $nr++; - } - - #print_r($data); - #echo "
"; - #echo "
"; - - - - - - - - - - - - $query_termin = $db->query("SELECT date_format(datum, '%d.%m.%Y - %H:%i') beginn, url - FROM jumi_qr_fellbach - WHERE id = $termin - LIMIT 1 - "); - $row_termin = $query_termin->fetch_array(); - - - - $empfaenger = "$row2[mail]"; - $betreff = "Registrierung zum Gottesdienst am $row_termin[beginn] Uhr"; - $text = " - - - Registrierung zum Gottesdienst - - - - Guten Tag!

- Sie haben sich zum Gottesdienst in der neuapostolischen Kirche Weinstadt-Beutelsbach registriert.
- Nachfolgend finden Sie die hinterlegten Daten: -
-
- - - - - - - - - - - "; - $person = 1; - $vorname = ""; - $nachname = ""; - $crypt = ""; - for ($i = 0; $i < count($data['nachname']); $i++) { - $vorname = $data['vorname'][$i]; - $nachname = $data['nachname'][$i]; - $crypt = $data['crypt'][$i]; - $text .= " - - - - - "; - $person++; - } - - $text .= " -
- - Datum: - - - - $row_termin[beginn]"; - if ($row_termin['url'] != '') { - $text .= " ($row_termin[url])"; - } - $text .= " - -
-   - -   - -   -
- - Person $person: - - - - $nachname, $vorname - - - Abmeldung -
-
- Sie wurden aufgrund Ihrer Dauerbuchung zu den Gottesdiensten benachrichtigt. -

- Diese Mail wurde automatisch generiert!
- Antworten Sie daher nicht auf diese Mail
-
- Vielen Dank - - "; - - - $text = stripslashes($text); - $headers = "MIME-Version: 1.0\n"; - $headers .= "Content-type: text/html; charset=utf-8\n"; - $headers .= "From: Gottesdienstregistrierung \n"; - - $return = @mail($empfaenger, $betreff, $text, $headers); - - - #echo " - #


- #$empfaenger
- #$betreff
- #$text
- #
"; - - - } - } - */ - } - if ($_SESSION["qrcode_status"] == 'edit') { - $id = $_SESSION["qr_id"]; - - $result = $db->query("UPDATE jumi_qr_fellbach - SET nachname = '$nachname' - , vorname = '$vorname' - , qr = '$qr' - , mail = '$mail' - WHERE id = $id - "); - - unset($_SESSION['qr_id']); - - - } - # Dann bekommts beim refresh den status neu, also es wird beim Abschicken ein Insert gemacht - $editende = 1; - echo ""; - - -} -if ($action == 'del') { - $id = $_GET['id']; - - $del1 = $db->query("DELETE FROM jumi_qr_fellbach WHERE id = $id"); - - echo ""; -} - - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> diff --git a/admin/qr_frame.php b/admin/qr_frame.php deleted file mode 100644 index cdef2f1..0000000 --- a/admin/qr_frame.php +++ /dev/null @@ -1,6 +0,0 @@ -display("$template/admin/$templatename"); ?> \ No newline at end of file diff --git a/admin/result_latest.php b/admin/result_latest.php deleted file mode 100644 index 53ca410..0000000 --- a/admin/result_latest.php +++ /dev/null @@ -1,149 +0,0 @@ -query("SELECT max(umid) umid - FROM jumi_umfragen - WHERE datum_von < now() - "); - $row_umid = $query_umid->fetch_array(); - - $query_umid_detail = $db->query("SELECT headline, date_format(datum_von, '%d.%m.%Y - %H:%i') datum_von, date_format(datum_bis, '%d.%m.%Y - %H:%i') datum_bis, freitext - FROM jumi_umfragen - WHERE umid=$row_umid[umid] - "); - $row_umid_detail = $query_umid_detail->fetch_array(); - $smarty->assign('result_headline', "$row_umid_detail[headline]"); - $smarty->assign('result_datum_von', "$row_umid_detail[datum_von]"); - $smarty->assign('result_datum_bis', "$row_umid_detail[datum_bis]"); - - # Anzahl abgeschlossene Umfragen - $query_fertige = $db->query("SELECT count(*) Anz_abgeschlossen - FROM jumi_umfragen_ende - WHERE umid =$row_umid[umid] - "); - $row_fertige = $query_fertige->fetch_array(); - $smarty->assign('result_anz_fertige', "$row_fertige[Anz_abgeschlossen]"); - - # Anzahl angefangener Teilnehmer - $query_angefangen = $db->query("SELECT count(distinct concat(ip,session))-$row_fertige[Anz_abgeschlossen] Anz_angefangen - FROM jumi_umfragen_ergebnisse - WHERE ufid in (select ufid from jumi_umfragen_fragen where umid =$row_umid[umid]) - "); - $row_angefangen = $query_angefangen->fetch_array(); - $smarty->assign('result_anz_angefangen', "$row_angefangen[Anz_angefangen]"); - - - - - - $query = "SELECT ufid, frage, multiple - FROM jumi_umfragen_fragen - WHERE umid = $row_umid[umid]"; - $result = $db->query($query); - - - // Ergebnisse lesen und an den Client ausgeben - while ($row = $result->fetch_array()) { - $value2 = ''; - unset($inner1); - - # Wie viele User haben Frage 1 beantwortet - $result_anz_userfrage = $db->query("SELECT count(distinct concat(ip,session)) Anz - FROM jumi_umfragen_ergebnisse - WHERE ufid = $row[ufid] - "); - $row_anz_userfrage = $result_anz_userfrage->fetch_array(); - - # Wie viele Antworten gibt es zur Frage: Das sind 100% - $result_anz_antworten = $db->query("SELECT count(ufid) Anz - FROM jumi_umfragen_ergebnisse - WHERE ufid = $row[ufid] - "); - $row_anz_antworten = $result_anz_antworten->fetch_array(); - - - $query2 = "SELECT uaid, antwort - FROM jumi_umfragen_antworten - WHERE ufid=$row[ufid] - ORDER BY userorder ASC, uaid ASC - "; - - - $result2 = $db->query($query2) or die("Cannot execute query2"); - $ln2 = 0; - - while ($row2 = $result2->fetch_array()) { - - # Wie viele haben Antwort auf aktuelle Frage gegeben - $result_cur_antw = $db->query("SELECT count(*) Anz - FROM jumi_umfragen_ergebnisse - WHERE uaid = $row2[uaid]"); - $row_cur_antw = $result_cur_antw->fetch_array(); - - if($row_anz_antworten['Anz'] != '0'){ - $prozent = round(100/$row_anz_antworten['Anz']*$row_cur_antw['Anz'],0); - }else{ - $prozent = 0; - } - - $inner1[$ln2]['prozent'] = $prozent; - $inner1[$ln2]['uaid'] = $row2['uaid']; - $inner1[$ln2]['antwort'] = $row2['antwort']; - $value2 = $inner1; - $ln2++; - } - if($row_anz_userfrage['Anz'] != 0){ - $anz_userfrage = $row_anz_userfrage['Anz']; - }else{ - $anz_userfrage = 0; - } - $row['inner'] = $value2; - $row['anz_userfrage'] = $anz_userfrage; - $row['anz_antworten_frage'] = $row_anz_antworten['Anz']; - $table_data[] = $row; - } - $smarty->assign('table_data', $table_data); - -# echo"
";
-#    print_r($table_data);
-#    echo"
"; - - - $query3 = "SELECT freitext - FROM jumi_umfragen_erg_freitext - WHERE umid = $row_umid[umid] - ORDER BY uefid desc"; - $result3 = $db->query($query3); - - - // Ergebnisse lesen und an den Client ausgeben - while ($row3 = $result3->fetch_array()) { - $table_data3[] = $row3; - } - $smarty->assign('table_data3', $table_data3); - - -} - - -$smarty->assign('action', "$action"); -$smarty->display("modern/admin/$templatename"); -?> diff --git a/admin/save_platz.php b/admin/save_platz.php deleted file mode 100644 index e727d87..0000000 --- a/admin/save_platz.php +++ /dev/null @@ -1,34 +0,0 @@ -query("UPDATE jumi_buchung - SET reihe = '$reihe' - ,platz = '$platz' - WHERE tid = $termin - AND lfd_haushalt = '$lfd_haushalt' - AND reihe = '' - "); -echo "$reihe$platz"; - exit; - -?> - diff --git a/admin/sitz_koord.php b/admin/sitz_koord.php deleted file mode 100644 index 20c91a2..0000000 --- a/admin/sitz_koord.php +++ /dev/null @@ -1,111 +0,0 @@ -query("SET lc_time_names = 'de_DE';"); - - $query1 = "SELECT bid, vorname, nachname - FROM jumi_buchung - WHERE reihe = '$reihe' - AND platz = '$platz' - AND tid = $tid - ORDER BY nachname, vorname ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - - while ($row_tn = $result1->fetch_array()) { - - $query_fav = $db->query("SELECT count(*) Anz - FROM jumi_standardsitzplatz - WHERE nachname = '$row_tn[nachname]' - AND vorname = '$row_tn[vorname]' - AND reihe = '$reihe' - AND platz = '$platz' - "); - $row_fav = $query_fav->fetch_array(); - if($row_fav['Anz'] > 0){ - # Favorit vorhanden, kann gelscht werden - $favorit = 0; - }else{ - # Favorit NICHT vorhanden, kann gesetzt werden - $favorit = 1; - } - - $row_tn['favorit'] = $favorit; - $table_data1[] = $row_tn; - } - $smarty->assign('table_data1', $table_data1); - $smarty->assign('koord_reihe', $reihe); - $smarty->assign('koord_platz', $platz); - $smarty->assign('koord_tid', $tid); - -} - -if ($action == 'del') { - $bid = $_GET['bid']; - $reihe = $_GET['reihe']; - $platz = $_GET['platz']; - $tid = $_GET['tid']; - - $del1 = $db->query("UPDATE jumi_buchung SET reihe='', platz='' WHERE bid = $bid"); - - echo ""; -} - -if ($action == 'fav') { - $status = $_GET['status']; - $vorname = $_GET['vorname']; - $nachname = $_GET['nachname']; - $tid = $_GET['tid']; - if (isset($_GET['reihe'])) { - $reihe = $_GET['reihe']; - } else { - $reihe = ''; - } - if (isset($_GET['platz'])) { - $platz = $_GET['platz']; - } else { - $platz = ''; - } - - $del1 = $db->query("DELETE FROM jumi_standardsitzplatz WHERE vorname='$vorname' AND nachname='$nachname'"); - if($status == 1){ - $ins1 = $db->query("INSERT INTO jumi_standardsitzplatz (nachname, vorname, reihe, platz) VALUES ('$nachname', '$vorname', '$reihe', '$platz')"); - } - echo $tid; - echo ""; -} - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> diff --git a/admin/sitzplatz.php b/admin/sitzplatz.php deleted file mode 100644 index 9e5626f..0000000 --- a/admin/sitzplatz.php +++ /dev/null @@ -1,67 +0,0 @@ -query("SET lc_time_names = 'de_DE';"); - - $query1 = "SELECT a.tid, date_format(datum, '%a, %d.%m.%Y - %H:%i Uhr')datum_form - FROM jumi_termine a - WHERE a.datum > ADDDATE(now(), -7) - GROUP BY a.tid, datum_form - ORDER BY datum ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1"); - - - while ($row1 = $result1->fetch_array()) { - $termin = $row1['tid']; - $result2 = $db->query("SELECT COUNT(*) Anz - FROM jumi_buchung - WHERE tid=$termin"); - $row2 = $result2->fetch_array(); - - $result3 = $db->query("SELECT COUNT(distinct lfd_haushalt) Anz - FROM jumi_buchung - WHERE tid=$termin"); - $row3 = $result3->fetch_array(); - - $row1['anz_ges'] = $row2['Anz']; - $row1['anz_fam'] = $row3['Anz']; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); -} - -if ($action == 'edit') { - if(isset($_POST["testtermin"])){ - $termin = $_POST["testtermin"]; - }else{ - $termin = $_GET["tid"]; - } - $german = $db->query("SET lc_time_names = 'de_DE';"); - $query_termin = $db->query("SELECT date_format(datum, '%a, %d.%m.%Y - %H:%i Uhr')datum_form - FROM jumi_termine - WHERE tid = $termin"); - $row_get_termin = $query_termin->fetch_array(); - $smarty->assign('edit_value_datum', $row_get_termin['datum_form']); - $smarty->assign('edit_value_tid', $termin); - - -} -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/sort_table.html b/admin/sort_table.html deleted file mode 100644 index b42cd70..0000000 --- a/admin/sort_table.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - - - - -Steven Ray: Drag and drop sorting of table rows - - - - - - - - - - - - - - - - - - - - - - -
- -

Sortable table

- - - - - - - - - - - - -
PriorityNameFavorite fruitVegetarian?
1George WashingtonAppleNDelete
2John AdamsPearYDelete
3Thomas JeffersonBananaYDelete
4Ben FranklinKumquatNDelete
5Alexander HamiltonRed grapesNDelete
- -
- - - - - - - - - - diff --git a/admin/sort_table.php b/admin/sort_table.php deleted file mode 100644 index 2f16668..0000000 --- a/admin/sort_table.php +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - -Steven Ray: Drag and drop sorting of table rows - - - - - - - - - - - - - - - - - - - - - - -
- -

Sortable table

- - - - - - - - - - - - - - query("SELECT * FROM reorderusers WHERE 1 ORDER BY userorder ASC "); - if($result->num_rows>0){ - $i=0; - while($val = $result->fetch_assoc()){ - $i++; - ?> - - - - - - - - - - -
ActionInset DTUser NameUser CountryUser EmailUser Phone#
-
-
- - - \ No newline at end of file diff --git a/admin/survey_erfassen.php b/admin/survey_erfassen.php deleted file mode 100644 index 3b4ae6b..0000000 --- a/admin/survey_erfassen.php +++ /dev/null @@ -1,297 +0,0 @@ -assign('umfrageerf_value_freitext', 0); - unset($_SESSION["umfrageerf_umid"]); - unset($_SESSION["umfrageerf_ufid"]); - unset($_SESSION["umfrageerf_uaid"]); -# $_SESSION["umfrageerf_new"] = 1; - - }else{ - $smarty->assign('umfrageerf_value_datumvon', $_SESSION["umfrageerf_value_datumvon"]); - $smarty->assign('umfrageerf_value_zeitvon', $_SESSION["umfrageerf_value_zeitvon"]); - $smarty->assign('umfrageerf_value_datumbis', $_SESSION["umfrageerf_value_datumbis"]); - $smarty->assign('umfrageerf_value_zeitbis', $_SESSION["umfrageerf_value_zeitbis"]); - $smarty->assign('umfrageerf_value_headline', $_SESSION["umfrageerf_value_headline"]); - $smarty->assign('umfrageerf_value_freitext', $_SESSION["umfrageerf_value_freitext"]); -# $smarty->assign('umfrageerf_value_new', "0"); -# $_SESSION["umfrageerf_new"] = 0; - } - - if (isset($_GET['error'])) { - - $errorno = $_GET['error']; - - $smarty->assign('umfrageerf_error', 1); - - if ($errorno == 1) { - # Pflichtfelder - $smarty->assign('umfrageerf_error_text', "Bitte füllen Sie alle Felder aus"); - } - if ($errorno == 2) { - # Datumsformat - $smarty->assign('umfrageerf_error_text', "Ein Datumsformat ist falsch"); - } - } - - # - # # --- Wenn Werte editiert werden ------------ - # if ($_SESSION["umfrageerf_status"] == 'edit') { - # $result_edit = $db->query("SELECT yid, date_format(datum, '%d.%m.%Y') datum, date_format(datum, '%H:%i') zeit, url - # FROM jumi_youtube_termine - # WHERE yid = $yid"); - # $row_edit = $result_edit->fetch_array(); - # $smarty->assign('umfrageerf_value_datum', "$row_edit[datum]"); - # $smarty->assign('umfrageerf_value_zeit', "$row_edit[zeit]"); - # $smarty->assign('umfrageerf_value_url', "$row_edit[url]"); - # - # } - # # --- Wenn Werte editiert werden Ende ------- - # - # if ($_GET['editende'] == 1) { - # # Editieren ist beendet, als ein update auf einen Datensatz. Dann ist der status wieder Neu, damit wird wieder ein Insert durchgeführt - # $_SESSION["umfrageerf_status"] = 'neu'; - # } - # - # - # # Gespeicherte Werte - # $query1 = "SELECT yid, date_format(datum, '%d.%m.%Y') datum_form, date_format(datum, '%H:%i') zeit, url - # FROM jumi_youtube_termine - # WHERE datum > DATE_SUB( NOW() , INTERVAL 14 DAY ) - # ORDER BY datum desc, zeit ASC"; - # - # $result1 = $db->query($query1) or die("Cannot execute query1a"); - # - # while ($row1 = $result1->fetch_array()) { - # $table_data1[] = $row1; - # } - # $smarty->assign('table_data1', $table_data1); - -} - - -if ($action == 'fragen') { - - $umid = $_SESSION["umfrageerf_umid"]; - - # Focus/Session setzen - $result = $db->query("SELECT count(*) Anz FROM jumi_umfragen_fragen WHERE umid='$umid'"); - $row = $result->fetch_array(); - # Wenn man bei mehreren Fragen eine Frage löscht ist Anz nicht 0 und der Focus sitzt bei Antwort - if ($umid == '' or $_GET['tabufid'] == "neuefrage" or $row['Anz'] == '0') { - $smarty->assign('umfrageerf_focus', "frage"); - unset($_SESSION["umfrageerf_ufid"]); - unset($_SESSION["umfrageerf_uaid"]); - } else { - $smarty->assign('umfrageerf_focus', "antwort"); - } - - - if (isset($_POST['datumvon']) and $_POST['datumvon'] != '') { - $datumvon = $_POST['datumvon']; - $_SESSION["umfrageerf_value_datumvon"] = $datumvon; - } else { - if ($_SESSION["umfrageerf_value_datumvon"] == '') { - echo ""; - } - $datumvon = $_SESSION["umfrageerf_value_datumvon"]; - } - - if (isset($_POST['zeitvon']) and $_POST['zeitvon'] != '') { - $zeitvon = $_POST['zeitvon']; - $_SESSION["umfrageerf_value_zeitvon"] = $zeitvon; - } else { - if ($_SESSION["umfrageerf_value_zeitvon"] == '') { - echo ""; - } - $zeitvon = $_SESSION["umfrageerf_value_zeitvon"]; - } - - if (isset($_POST['datumbis']) and $_POST['datumbis'] != '') { - $datumbis = $_POST['datumbis']; - $_SESSION["umfrageerf_value_datumbis"] = $datumbis; - } else { - if ($_SESSION["umfrageerf_value_datumbis"] == '') { - echo ""; - } - $datumbis = $_SESSION["umfrageerf_value_datumbis"]; - } - - if (isset($_POST['zeitbis']) and $_POST['zeitbis'] != '') { - $zeitbis = $_POST['zeitbis']; - $_SESSION["umfrageerf_value_zeitbis"] = $zeitbis; - } else { - if ($_SESSION["umfrageerf_value_zeitbis"] == '') { - echo ""; - } - $zeitbis = $_SESSION["umfrageerf_value_zeitbis"]; - } - - if (isset($_POST['headline']) and trim($_POST['headline']) != '') { - $headline = trim($_POST['headline']); - $_SESSION["umfrageerf_value_headline"] = $headline; - } else { - if ($_SESSION["umfrageerf_value_headline"] == '') { - echo ""; - } - $headline = $_SESSION["umfrageerf_value_headline"]; - } - - if(!isset($_GET['erfassen'])){ - if (isset($_POST['freitext']) and trim($_POST['freitext']) != '') { - $freitext = '1'; - $_SESSION["umfrageerf_value_freitext"] = $freitext; - }else{ - $freitext = '0'; - $_SESSION["umfrageerf_value_freitext"] = $freitext; - } - }else{ - $freitext = $_SESSION["umfrageerf_value_freitext"]; - } - - - $datumvon_form = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $datumvon); - $datumbis_form = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $datumbis); - $datum_von = $datumvon_form . " " . $zeitvon . ":00"; - $datum_bis = $datumbis_form . " " . $zeitbis . ":00"; - - function validateDate($date, $format = 'Y-m-d') - { - $d = DateTime::createFromFormat($format, $date); - return $d && $d->format($format) == $date; - } - - if (!validateDate($datumvon_form)) { - echo ""; - exit; - } - - if (!validateDate($datumbis_form)) { - echo ""; - exit; - } - - - if(!isset($_GET['erfassen'])){ - if ($umid == '') { - $datum = date("Y-m-d H:i:s"); - - $sql1 = $db->query("INSERT INTO jumi_umfragen ( datum_von - , datum_bis - , headline - , uid - , datum_erfasst - , freitext - ) - VALUES - ( '$datum_von' - , '$datum_bis' - , '$headline' - , '$uid' - , '$datum' - , '$freitext' - ) - "); - $umid = $db->insert_id; - $_SESSION["umfrageerf_umid"] = $umid; - }else{ - $update = $db->query("UPDATE jumi_umfragen - SET datum_von ='$datum_von' - ,datum_bis ='$datum_bis' - ,headline = '$headline' - ,freitext = '$freitext' - WHERE umid = $umid - "); - - } - } - - if (isset($_GET['tabufid']) and $_GET['tabufid'] != '') { - if ($_GET['tabufid'] == "neuefrage") { - $_SESSION["umfrageerf_ufid"] = ""; - } else { - $_SESSION["umfrageerf_ufid"] = $_GET['tabufid']; - } - } - $ufid = $_SESSION["umfrageerf_ufid"]; - if ($ufid != '') { - $result_frage = $db->query("SELECT frage, multiple - FROM jumi_umfragen_fragen - WHERE ufid = $ufid"); - $row_frage = $result_frage->fetch_array(); - $smarty->assign('umfrageerf_value_frage', htmlspecialchars($row_frage['frage'])); - $smarty->assign('umfrageerf_value_multiple', $row_frage['multiple']); - $smarty->assign('umfrageerf_value_ufid', $ufid); - } - - # Gespeicherte Werte - if ($umid != '') { - $query1 = "SELECT ufid, frage - FROM jumi_umfragen_fragen - WHERE umid=$umid - ORDER BY ufid ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1a"); - - while ($row1 = $result1->fetch_array()) { - $table_data1[] = $row1; - } - } - - $smarty->assign('table_data1', $table_data1); - if ($ufid != '') { - $smarty->assign('umfrageerf_gesp_werte_value_ufid2', "$ufid"); - $query2 = "SELECT uaid, antwort - FROM jumi_umfragen_antworten - WHERE ufid=$ufid - ORDER BY userorder ASC, uaid ASC"; - - $result2 = $db->query($query2) or die("Cannot execute query2"); - $anzahl = $result2->num_rows; - $smarty->assign('table_data2_anz', $anzahl); - while ($row2 = $result2->fetch_array()) { - $table_data2[] = $row2; - } - $smarty->assign('table_data2', $table_data2); - } -} - - - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/survey_frame.php b/admin/survey_frame.php deleted file mode 100644 index d3702f2..0000000 --- a/admin/survey_frame.php +++ /dev/null @@ -1,8 +0,0 @@ -display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/termine.php b/admin/termine.php deleted file mode 100644 index d01f68f..0000000 --- a/admin/termine.php +++ /dev/null @@ -1,361 +0,0 @@ -assign('termine_error', 1); - - $smarty->assign('termine_value_datum', $_SESSION["termine_value_datum"]); - $smarty->assign('termine_value_zeit', $_SESSION["termine_value_tm_zeit"]); - $smarty->assign('termine_value_tm_standort', $_SESSION["termine_value_tm_standort"]); - $smarty->assign('termine_value_tm_plaetze', $_SESSION["termine_value_tm_plaetze"]); - $smarty->assign('termine_value_tm_raum', $_SESSION["termine_value_tm_raum"]); - $smarty->assign('termine_value_hinweis', $_SESSION["termine_value_hinweis"]); - $smarty->assign('termine_value_fellbach_gd', $_SESSION["termine_value_fellbach_gd"]); - - if ($errorno == 3) { - # ungültiges Datum - $smarty->assign('termine_error_text', "Das eingegebene Datum ist nicht korrekt. Bitte korrigieren Sie das Datum!"); - } - } - - # --- Wenn Werte editiert werden ------------ - if ($_SESSION["termine_status"] == 'edit') { - $result_edit = $db->query("SELECT tid, date_format(datum, '%d.%m.%Y') datum, date_format(datum, '%H:%i') zeit, hinweis, fellbach_gd - FROM jumi_termine - WHERE tid = $tid"); - $row_edit = $result_edit->fetch_array(); - $smarty->assign('termine_value_datum', "$row_edit[datum]"); - $smarty->assign('termine_value_zeit', "$row_edit[zeit]"); - $smarty->assign('termine_value_tm_standort', "$row_edit[tm_standort]"); - $smarty->assign('termine_value_tm_plaetze', "$row_edit[tm_plaetze]"); - $smarty->assign('termine_value_tm_raum', "$row_edit[tm_raum]"); - $smarty->assign('termine_value_hinweis', "$row_edit[hinweis]"); - $smarty->assign('termine_value_fellbach_gd', "$row_edit[fellbach_gd]"); - - } - # --- Wenn Werte editiert werden Ende ------- - - if ($_GET['editende'] == 1) { - # Editieren ist beendet, als ein update auf einen Datensatz. Dann ist der status wieder Neu, damit wird wieder ein Insert durchgeführt - $_SESSION["termine_status"] = 'neu'; - } - - - # Gespeicherte Werte - $query1 = "SELECT tid, date_format(datum, '%d.%m.%Y') datum_form, date_format(datum, '%H:%i') zeit, hinweis, fellbach_gd - FROM jumi_termine - WHERE datum > DATE_SUB( NOW() , INTERVAL 14 DAY ) - ORDER BY datum desc, zeit ASC"; - - $result1 = $db->query($query1) or die("Cannot execute query1a"); - - while ($row1 = $result1->fetch_array()) { - - $result_dis = $db->query("SELECT count(*) Anz - FROM jumi_buchung - WHERE tid = $row1[tid]"); - $row_dis = $result_dis->fetch_array(); - if ($row_dis['Anz'] > 0) { - $disable = 0; - } else { - $disable = 1; - } - - $result2 = $db->query("SELECT COUNT(*) Anz - FROM jumi_buchung - WHERE tid=$row1[tid]"); - $row2 = $result2->fetch_array(); - - $result3 = $db->query("SELECT COUNT(distinct lfd_haushalt) Anz - FROM jumi_buchung - WHERE tid=$row1[tid]"); - $row3 = $result3->fetch_array(); - - $row1['anz_ges'] = $row2['Anz']; - $row1['anz_fam'] = $row3['Anz']; - - $row1['tm_disable'] = $disable; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - -} - - -if ($action == 'save') { - - $datum = $_POST['datum']; - $tm_zeit = $_POST['tm_zeit']; - $hinweis = trim($_POST['hinweis']); - $fellbach_gd = trim($_POST['fellbach_gd']); - - - $_SESSION["termine_value_datum"] = $datum; - $_SESSION["termine_value_tm_zeit"] = $tm_zeit; - $_SESSION["termine_value_hinweis"] = $hinweis; - $_SESSION["termine_value_fellbach_gd"] = $fellbach_gd; - - $datum_form = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $datum); - $gddatum = $datum_form . " " . $tm_zeit . ":00"; - $_SESSION["termine_value_tm_gddatum"] = $gddatum; - function validateDate($date, $format = 'Y-m-d') - { - $d = DateTime::createFromFormat($format, $date); - return $d && $d->format($format) == $date; - } - - if (!validateDate($datum_form)) { - echo ""; - exit; - } - - - #$datum = date("Y-m-d H:i:s"); - if ($_SESSION["termine_status"] == 'neu') { - $sql1 = $db->query("INSERT INTO jumi_termine ( datum - , hinweis - , fellbach_gd - ) - VALUES - ( '$gddatum' - , '$hinweis' - , '$fellbach_gd' - ) - "); - $termin = $db->insert_id; - -/* Daueranmelder wird es nicht geben. - - $query1 = "SELECT DISTINCT lfd_haushalt FROM jumi_daueranmeldung"; - $result1 = $db->query($query1) or die("Cannot execute query1"); - while ($row1 = $result1->fetch_array()) { - $lfd_haushalt = get_lfd_haushalt($termin); - $datum = date("Y-m-d H:i:s"); - - $query2 = "SELECT mail - FROM jumi_daueranmeldung - WHERE lfd_haushalt = $row1[lfd_haushalt] - GROUP BY lfd_haushalt, mail - "; - $result2 = $db->query($query2) or die("Cannot execute query2"); - while ($row2 = $result2->fetch_array()) { - - $query3 = "SELECT vorname, nachname - FROM jumi_daueranmeldung - WHERE mail= '$row2[mail]' - AND lfd_haushalt = $row1[lfd_haushalt] - "; - #echo $query3; - $result3 = $db->query($query3) or die("Cannot execute query3"); - $nr = 0; - while ($row3 = $result3->fetch_array()) { - $data['vorname'][$nr] = $row3['vorname']; - $data['nachname'][$nr] = $row3['nachname']; - $data['sitzplatz'][$nr] = get_sitzplatz($data['nachname'][$nr], $data['vorname'][$nr]); - $data['split'][$nr] = explode("|", $data['sitzplatz'][$nr]); - $data['reihe'][$nr] = $data['split'][$nr][0]; - $data['platz'][$nr] = $data['split'][$nr][1]; - $sql1 = $db->query("insert into jumi_buchung (tid, nachname, vorname, reihe, platz, mail, lfd_haushalt, save_date) VALUES('$termin', '" . $data['nachname'][$nr] . "', '" . $data['vorname'][$nr] . "', '" . $data['reihe'][$nr] . "', '" . $data['platz'][$nr] . "', '$row2[mail]', '$lfd_haushalt', '$datum')"); - #echo "
";
-          #echo "
"; - #echo "insert into jumi_buchung (tid, nachname, vorname, reihe, platz, mail, lfd_haushalt, save_date) VALUES('$termin', '".$data['nachname'][$nr]."', '".$data['vorname'][$nr]."', '".$data['reihe'][$nr]."', '".$data[platz][$nr]."', '$row2[mail]', '$lfd_haushalt', '$datum')
"; - $data['bid'][$nr] = $db->insert_id; - $data['crypt'][$nr] = cryption($data['bid'][$nr] . "|" . $data['nachname'][$nr] . "|$termin", 'e'); - $nr++; - } - - #print_r($data); - #echo "
"; - #echo "
"; - - - - - - - - - - - - $query_termin = $db->query("SELECT date_format(datum, '%d.%m.%Y - %H:%i') beginn, hinweis - FROM jumi_termine - WHERE tid = $termin - LIMIT 1 - "); - $row_termin = $query_termin->fetch_array(); - - - - $empfaenger = "$row2[mail]"; - $betreff = "Registrierung zum Gottesdienst am $row_termin[beginn] Uhr"; - $text = " - - - Registrierung zum Gottesdienst - - - - Guten Tag!

- Sie haben sich zum Gottesdienst in der neuapostolischen Kirche Weinstadt-Beutelsbach registriert.
- Nachfolgend finden Sie die hinterlegten Daten: -
-
- - - - - - - - - - - "; - $person = 1; - $vorname = ""; - $nachname = ""; - $crypt = ""; - for ($i = 0; $i < count($data['nachname']); $i++) { - $vorname = $data['vorname'][$i]; - $nachname = $data['nachname'][$i]; - $crypt = $data['crypt'][$i]; - $text .= " - - - - - "; - $person++; - } - - $text .= " -
- - Datum: - - - - $row_termin[beginn]"; - if ($row_termin['hinweis'] != '') { - $text .= " ($row_termin[hinweis])"; - } - $text .= " - -
-   - -   - -   -
- - Person $person: - - - - $nachname, $vorname - - - Abmeldung -
-
- Sie wurden aufgrund Ihrer Dauerbuchung zu den Gottesdiensten benachrichtigt. -

- Diese Mail wurde automatisch generiert!
- Antworten Sie daher nicht auf diese Mail
-
- Vielen Dank - - "; - - - $text = stripslashes($text); - $headers = "MIME-Version: 1.0\n"; - $headers .= "Content-type: text/html; charset=utf-8\n"; - $headers .= "From: Gottesdienstregistrierung \n"; - - $return = @mail($empfaenger, $betreff, $text, $headers); - - - #echo " - #


- #$empfaenger
- #$betreff
- #$text
- #
"; - - - } - } - */ - } - if ($_SESSION["termine_status"] == 'edit') { - $tid = $_SESSION["termine_tid"]; - - - - $result = $db->query("UPDATE jumi_termine - SET datum = '$gddatum' - , hinweis = '$hinweis' - , fellbach_gd = '$fellbach_gd' - WHERE tid = $tid - "); - - unset($_SESSION['termine_tid']); - - - } - # Dann bekommts beim refresh den status neu, also es wird beim Abschicken ein Insert gemacht - $editende = 1; - echo ""; - - -} -if ($action == 'del') { - $tid = $_GET['tid']; - - $del1 = $db->query("DELETE FROM jumi_termine WHERE tid = $tid"); - - echo ""; -} - - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> \ No newline at end of file diff --git a/admin/titel.php b/admin/titel.php deleted file mode 100644 index abfaa74..0000000 --- a/admin/titel.php +++ /dev/null @@ -1,51 +0,0 @@ -window.top.location.href = \"index.php\";"; -} - -/* -$db = dbconnect(); - -#Hat User ein Adminrecht - -$result_admin = $db->query("SELECT count(*) Anz FROM dep_rollen_user_zuord WHERE imtuid = '$uid' AND roid='1'"); -#echo "SELECT count(*) Anz FROM dep_rollen_user_zuord WHERE imtuid = '$uid' AND roid='1'
"; -$row_admin = $result_admin->fetch_array(); - -if($row_admin[Anz] > 0){ - $smarty->assign('titel_admin', "1"); -} - - -$result_ausschuss = $db->query("SELECT count(*) Anz FROM dep_rollen_user_zuord WHERE imtuid = '$uid' AND roid in (4,5)"); -$row_ausschuss = $result_ausschuss->fetch_array(); - -if($row_ausschuss[Anz] > 0){ - $smarty->assign('titel_ausschuss', "1"); -} - - -$result_beteiligte = $db->query("SELECT count(*) Anz FROM dep_rollen_user_zuord WHERE imtuid = '$uid' AND roid='3'"); -$row_beteiligte = $result_beteiligte->fetch_array(); - -if($row_beteiligte[Anz] > 0){ - $smarty->assign('titel_beteiligte', "1"); -} - - -$result_gutachter = $db->query("SELECT count(*) Anz FROM dep_rollen_user_zuord WHERE imtuid = '$uid' AND roid='2'"); -$row_gutachter = $result_gutachter->fetch_array(); - -if($row_gutachter[Anz] > 0){ - $smarty->assign('titel_gutachter', "1"); -} - -*/ -$smarty->display("$template/admin/$templatename"); -?> \ No newline at end of file diff --git a/admin/unzugeordnet.php b/admin/unzugeordnet.php deleted file mode 100644 index 63704a1..0000000 --- a/admin/unzugeordnet.php +++ /dev/null @@ -1,80 +0,0 @@ -query($query1) or die("Cannot execute query1"); - - - while ($row1 = $result1->fetch_array()) { - $value2 = ''; - $mehrfachbelegung = trim(get_parameter(6)); - if($mehrfachbelegung == 0){ - $query2 = "SELECT reihe, platz - FROM jumi_verfplaetze - WHERE concat(reihe,platz) not in (select concat(reihe,platz) from jumi_buchung where tid=$termin and lfd_haushalt!=$row1[lfd_haushalt]) - AND reihe not in ('Sonntagschule', 'Vorsonntagschule') - order by reihe, platz - "; - }else{ - $query2 = "SELECT reihe, platz - FROM jumi_verfplaetze - WHERE reihe not in ('Sonntagschule', 'Vorsonntagschule') - order by reihe, platz - "; - } - $result2 = $db->query( $query2) - or die ("Cannot execute query2"); - - - - $ln2 = 0; - while ($row2 = $result2->fetch_array()){ - $inner1[$ln2]['reihe'] = $row2['reihe']; - $inner1[$ln2]['platz'] = $row2['platz']; - $value2 = $inner1; - $ln2++; - } - - $query_name = $db->query("SELECT bid, vorname, nachname - FROM jumi_buchung - WHERE reihe = '' - AND lfd_haushalt= $row1[lfd_haushalt] - AND tid = $termin - AND warteliste='N' - ORDER BY bid - LIMIT 1"); - $row_name = $query_name->fetch_array(); - - $row1['inner'] = $value2; - $row1['tid'] = $termin; - $row1['vorname'] = $row_name['vorname']; - $row1['nachname'] = $row_name['nachname']; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); -} -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> diff --git a/admin/verwaltung_frame.php b/admin/verwaltung_frame.php deleted file mode 100644 index cdef2f1..0000000 --- a/admin/verwaltung_frame.php +++ /dev/null @@ -1,6 +0,0 @@ -display("$template/admin/$templatename"); ?> \ No newline at end of file diff --git a/admin/warteliste.php b/admin/warteliste.php deleted file mode 100644 index b77aa10..0000000 --- a/admin/warteliste.php +++ /dev/null @@ -1,154 +0,0 @@ -query($query1) or die("Cannot execute query1"); - - - while ($row1 = $result1->fetch_array()) { - $value2 = ''; - $mehrfachbelegung = trim(get_parameter(6)); - if($mehrfachbelegung == 0){ - $query2 = "SELECT reihe, platz - FROM jumi_verfplaetze - WHERE concat(reihe,platz) not in (select concat(reihe,platz) from jumi_buchung where tid=$termin and lfd_haushalt!=$row1[lfd_haushalt]) - AND reihe not in ('Sonntagschule', 'Vorsonntagschule') - order by reihe, platz - "; - }else{ - $query2 = "SELECT reihe, platz - FROM jumi_verfplaetze - WHERE reihe not in ('Sonntagschule', 'Vorsonntagschule') - order by reihe, platz - "; - } - $result2 = $db->query( $query2) - or die ("Cannot execute query2"); - - - - $ln2 = 0; - while ($row2 = $result2->fetch_array()){ - $inner1[$ln2]['reihe'] = $row2['reihe']; - $inner1[$ln2]['platz'] = $row2['platz']; - $value2 = $inner1; - $ln2++; - } - - $query_name = $db->query("SELECT bid, vorname, nachname, date_format(save_date, '%d.%m.%Y - %H:%i') save_date, date_format(warteliste_confirm, '%d.%m.%Y - %H:%i') warteliste_confirm, warteliste_grund - FROM jumi_buchung - WHERE reihe = '' - AND lfd_haushalt= $row1[lfd_haushalt] - AND tid = $termin - AND warteliste='Y' - ORDER BY bid - LIMIT 1"); - $row_name = $query_name->fetch_array(); - - $row1['inner'] = $value2; - $row1['tid'] = $termin; - $row1['warteliste_grund'] = $row_name['warteliste_grund']; - $row1['vorname'] = $row_name['vorname']; - $row1['nachname'] = $row_name['nachname']; - $row1['warteliste_confirm'] = $row_name['warteliste_confirm']; - $row1['save_date'] = $row_name['save_date']; - $table_data1[] = $row1; - } - $smarty->assign('table_data1', $table_data1); - - $query2 = "SELECT tid, lfd_haushalt, vorname, nachname, date_format(save_date, '%d.%m.%Y - %H:%i') save_date, date_format(warteliste_confirm, '%d.%m.%Y - %H:%i') warteliste_confirm, mail, warteliste_grund, reihe, platz - FROM jumi_buchung - WHERE reihe != '' - AND tid = $termin - AND warteliste = 'Y' - ORDER BY save_date ASC"; - - $result2 = $db->query($query2) or die("Cannot execute query2"); - - - while ($row2 = $result2->fetch_array()) { - $table_data2[] = $row2; - } - $smarty->assign('table_data2', $table_data2); -} - - -if ($action == 'mail') { - $lfd_haushalt = $_GET['lfd_haushalt']; - $termin = $_GET['tid']; - - $query_mail = $db->query("SELECT mail, date_format(b.datum, '%d.%m.%Y') datum_form - FROM jumi_buchung a, jumi_termine b - WHERE a.tid=b.tid - AND lfd_haushalt = '$lfd_haushalt' - AND a.tid = $termin - AND warteliste='Y' - GROUP BY mail, datum - LIMIT 1"); - $row_mail = $query_mail->fetch_array(); - - - $to = $row_mail['mail']; // addresses to email pdf to - $from = "NAK Beutelsbach "; // address message is sent from - $subject = "Zusage zum Gottesdienst am ".$row_mail['datum_form']; // email subject - $body = " - - Zusage zum Gottesdienst - - - - Guten Tag!

- Sie sind verbindlich zum Gottesdienst am $row_mail[datum_form] angemeldet. -
- Sollten Sie nicht kommen können melden Sie sich mit dem Abmeldelink aus der Registrierungsmail ab! -
-
-

- Diese Mail wurde automatisch generiert!
- Antworten Sie daher nicht auf diese Mail
-
- Vielen Dank - - "; - - $headers = "MIME-Version: 1.0\r\n"; - $headers .= "Content-type: text/html; charset=utf-8\r\n"; - $headers .= "From: $from\r\n"; - $return = @mail($to, $subject, $body, $headers); - - if($return){ - $datum_db = date("Y-m-d H:i:s"); - $sql2 = $db->query("UPDATE jumi_buchung SET warteliste_confirm = '$datum_db' WHERE tid='$termin' AND lfd_haushalt='$lfd_haushalt'"); - } - echo ""; - -} - - -$smarty->assign('action', "$action"); -$smarty->display("$template/admin/$templatename"); - -?> - diff --git a/admin/youtube_frame.php b/admin/youtube_frame.php deleted file mode 100644 index cdef2f1..0000000 --- a/admin/youtube_frame.php +++ /dev/null @@ -1,6 +0,0 @@ -display("$template/admin/$templatename"); ?> \ No newline at end of file diff --git a/dashboard/#upload.php b/dashboard/#upload.php new file mode 100644 index 0000000..b240725 --- /dev/null +++ b/dashboard/#upload.php @@ -0,0 +1,51 @@ +query("select max(id) as id from jumi_uploads"); + + + if (count($result) > 0) + { + $row = $result->fetch_array() + $filename = ($row['id']+1) . '-' . $filename; + } + else + $filename = '1' . '-' . $filename; + + //set target directory + $path = 'uploads/'; + + $created = @date('Y-m-d H:i:s'); + move_uploaded_file($_FILES['file1']['tmp_name'],($path . $filename)); + + // insert file details into database + $sql = "INSERT INTO jumi_uploads (filename, created) VALUES('$filename', '$created')"; + mysqli_query($con, $sql); + header("Location: test2.php?st=success"); + } + else + { + header("Location: test2.php?st=error"); + } + } + else + header("Location: test2.php"); +} +?> diff --git a/dashboard/test.php b/dashboard/test.php new file mode 100644 index 0000000..1a1ef48 --- /dev/null +++ b/dashboard/test.php @@ -0,0 +1,26 @@ +"; + exit; +} +$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html"; +require_once "../language/german.inc.php"; + + + +$result_name = $db->query("SELECT vorname, nachname, mail FROM jumi_admin WHERE uid='$uid'"); +$row_name = $result_name->fetch_array(); +$smarty->assign('startseite_name', "$row_name[vorname] $row_name[nachname]"); + + +$smarty->assign('action', "$action"); +$smarty->display("modern/dashboard/$templatename"); +?> diff --git a/jquery/jquery.cycle.all.min.js b/jquery/jquery.cycle.all.min.js new file mode 100644 index 0000000..1f63c5e --- /dev/null +++ b/jquery/jquery.cycle.all.min.js @@ -0,0 +1,21 @@ +/* + * jQuery Cycle Plugin (with Transition Definitions) + * Examples and documentation at: http://jquery.malsup.com/cycle/ + * Copyright (c) 2007-2013 M. Alsup + * Version: 3.0.3 (11-JUL-2013) + * Dual licensed under the MIT and GPL licenses. + * http://jquery.malsup.com/license.html + * Requires: jQuery v1.7.1 or later + */ +(function($,undefined){var ver="3.0.3";function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&console.log){console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.expr[":"].paused=function(el){return el.cyclePause;};$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;this.cycleStop=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.backwards);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts.backwards);},startTime);}});};function triggerPause(cont,byHover,onPager){var opts=$(cont).data("cycle.opts");if(!opts){return;}var paused=!!cont.cyclePause;if(paused&&opts.paused){opts.paused(cont,opts,byHover,onPager);}else{if(!paused&&opts.resumed){opts.resumed(cont,opts,byHover,onPager);}}}function handleArguments(cont,options,arg2){if(cont.cycleStop===undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;if(opts.elements){$(opts.elements).stop();}$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(cont,opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);triggerPause(cont);return false;case"pause":cont.cyclePause=1;triggerPause(cont);return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);triggerPause(cont);return false;case"prev":case"next":opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}if(typeof arg2=="string"){opts.oneTimeFx=arg2;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,!options.backwards);}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(cont,opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;$(cont).unbind("mouseenter.cycle mouseleave.cycle");if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var startingSlideSpecified;var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});var meta=$.isFunction($cont.data)?$cont.data(opts.metaAttr):null;if(meta){opts=$.extend(opts,meta);}if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.backwards);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide!==undefined){opts.startingSlide=parseInt(opts.startingSlide,10);if(opts.startingSlide>=els.length||opts.startSlide<0){opts.startingSlide=0;}else{startingSlideSpecified=true;}}else{if(opts.backwards){opts.startingSlide=els.length-1;}else{opts.startingSlide=0;}}if(opts.random){opts.randomMap=[];for(var i=0;i=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z;if(opts.backwards){z=first?i<=first?els.length+(i-first):first-i:els.length-i;}else{z=first?i>=first?els.length-(i-first):first-i:els.length-i;}$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit){if(!opts.aspect){if(opts.width){$slides.width(opts.width);}if(opts.height&&opts.height!="auto"){$slides.height(opts.height);}}else{$slides.each(function(){var $slide=$(this);var ratio=(opts.aspect===true)?$slide.width()/$slide.height():opts.aspect;if(opts.width&&$slide.width()!=opts.width){$slide.width(opts.width);$slide.height(opts.width/ratio);}if(opts.height&&$slide.height()maxw?w:maxw;maxh=h>maxh?h:maxh;}if(opts.containerResize&&maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}if(opts.containerResizeHeight&&maxh>0){$cont.css({height:maxh+"px"});}}var pauseFlag=false;if(opts.pause){$cont.bind("mouseenter.cycle",function(){pauseFlag=true;this.cyclePause++;triggerPause(cont,true);}).bind("mouseleave.cycle",function(){if(pauseFlag){this.cyclePause--;}triggerPause(cont,true);});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loading=(this.cycleH===0&&this.cycleW===0&&!this.complete);if(loading){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.cssAfter=opts.cssAfter||{};opts.cssFirst=opts.cssFirst||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);$($slides[first]).css(opts.cssFirst);if(opts.timeout){opts.timeout=parseInt(opts.timeout,10);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed,10);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="none"?0:opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)=(els.length-1)?0:opts.startingSlide+1;}}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(!opts.skipInitializationCallbacks){if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length){opts.after[0].apply(e0,[e0,e0,opts,true]);}}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,0);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i=opts.fxs.length)){opts.lastFx=0;}else{if(!fwd&&(opts.lastFx===undefined||--opts.lastFx<0)){opts.lastFx=opts.fxs.length-1;}}fx=opts.fxs[opts.lastFx];}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){opts.busy=0;$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});if(!p.cycleStop){queueNext();}};debug("tx firing("+fx+"); currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}else{queueNext();}if(changed||opts.nextSlide==opts.currSlide){var roll;opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;opts.randomMap.sort(function(a,b){return Math.random()-0.5;});}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{if(opts.backwards){roll=(opts.nextSlide-1)<0;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=1;opts.currSlide=0;}else{opts.nextSlide=roll?(els.length-1):opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1;}}else{roll=(opts.nextSlide+1)==els.length;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=els.length-2;opts.currSlide=els.length-1;}else{opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}function queueNext(){var ms=0,timeout=opts.timeout;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);if(opts.fx=="shuffle"){ms-=opts.speedOut;}}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.backwards);},ms);}}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);while(opts.fx!="none"&&(t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,1);};$.fn.cycle.prev=function(opts){advance(opts,0);};function advance(opts,moveForward){var val=moveForward?1:-1;var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,moveForward);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a=''+(i+1)+"";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);var pagerFn=function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlidel?c-l:opts.slideCount-l;}else{hops=c=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();if(typeof opts.cssBefore.opacity=="undefined"){opts.cssBefore.opacity=1;}opts.cssBefore.display="block";if(opts.slideResize&&w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(opts.slideResize&&h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut,animInDelay=opts.animInDelay,animOutDelay=opts.animOutDelay;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.delay(animInDelay).animate(opts.animIn,speedIn,easeIn,function(){cb();});};$l.delay(animOutDelay).animate(opts.animOut,speedOut,easeOut,function(){$l.css(opts.cssAfter);if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animInDelay:0,animOut:null,animOutDelay:0,aspect:false,autostop:0,autostopCount:0,backwards:false,before:null,center:null,cleartype:!$.support.opacity,cleartypeNoBg:false,containerResize:1,containerResizeHeight:0,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:false,slideExpr:null,slideResize:1,speed:1000,speedIn:null,speedOut:null,startingSlide:undefined,sync:1,timeout:4000,timeoutFn:null,updateActivePagerLink:null,width:null};})(jQuery); +/* + * jQuery Cycle Plugin Transition Definitions + * This script is a plugin for the jQuery Cycle Plugin + * Examples and documentation at: http://malsup.com/jquery/cycle/ + * Copyright (c) 2007-2010 M. Alsup + * Version: 2.73 + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ +(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.fadeout=function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css({display:"block",opacity:1});opts.before.push(function(curr,next,opts,w,h,rev){$(curr).css("zIndex",opts.slideCount+(rev!==true?1:0));$(next).css("zIndex",opts.slideCount+(rev!==true?0:1));});opts.animIn.opacity=1;opts.animOut.opacity=0;opts.cssBefore.opacity=1;opts.cssBefore.display="block";opts.cssAfter.zIndex=0;};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore.top=h;opts.cssBefore.left=0;opts.cssFirst.top=0;opts.animIn.top=0;opts.animOut.top=-h;};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst.top=0;opts.cssBefore.top=-h;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.top=h;};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0;opts.cssBefore.left=w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=0-w;};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0;opts.cssBefore.left=-w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=w;};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){if(opts.rev){fwd=!fwd;}$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst.left=0;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.top=0;};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){if(opts.rev){fwd=!fwd;}$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.left=0;};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.width=0;opts.animIn.width="show";opts.animOut.width=0;};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.height=0;opts.animIn.height="show";opts.animOut.height=0;};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(i=0;i - - - - -

- {section name=table_data1 loop=$table_data1} - {$table_data1[table_data1].nachname}, {$table_data1[table_data1].vorname}  {if $table_data1[table_data1].favorit == 0} - {/if}{if $table_data1[table_data1].favorit == 1} - {/if}
- {/section} -
- - -{/if} - -{if $action == 'del'} - - - - - - - - -{/if} \ No newline at end of file diff --git a/templates/modern/admin/2022-01-12_sitzplatz.html b/templates/modern/admin/2022-01-12_sitzplatz.html deleted file mode 100644 index 5bcbb08..0000000 --- a/templates/modern/admin/2022-01-12_sitzplatz.html +++ /dev/null @@ -1,935 +0,0 @@ - {if $action == ''} - - - - - - -
- {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Sitzplätze - -
-
-

- -

-
-

- -

-
-
-
-
-
-
-
- - -{/if} -{if $action == 'edit'} - - - - - - - Sitzplan - - - - - - - - - - - - - - - - - - - - - - - - - -
-   - -
-
-
Sitzplan: {$edit_value_datum}
-
-
-
-

- {if $save_error == '1'} - - - - - -
- - Achtung!
- {$save_error_text} -
-
- {else} - - -
-
- - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ABCDEF
A1
- - -
Klavier -
- - - - - - - - - - - - - - -
K1 - - - - - - - - - - - - - - - - - - K1
K2 - - - - - - - - - - - - - - - - - - K2
K3 - - - - - - - - - - - - - - - - - - K3
K4 - - - - - - - - - - - - - - - - - - K4
K5 - - - - - - - - - - - - - - - - - - K5
K6 - - - - - - - - - - - - - - - - - - K6
K7 - - - - - - - - - - - - - - - - - - K7
K8 - - - - - - - - - - - - - - - - - - K8
K9 - - - - - - - - - - - - - - - - - - K9
- - - - - - - - - K10
K10 - - - - - - - - -
D1 - - - D1
M1 - - - - - - - - -
F1 - - - - - - - - -
E1 - - - - - - - - - - - - - - - - - - E1
E2 - - - - - - - - - - - - - - - - - - E2
E3 - - - - - - - - - - - - - - - - - - E3
E4 - - - - - - - - - - - - - - - - - - E4
E5 - - - - - - - - - -
- - - - - - - - - E5
ABCDEF
-
- - - - -
-
- - Sonntagschule - - -
-
-
- - Vorsonntagschule - - -
-
-
- Legende - - - - - -
- A1 = Altarraum
- K1-10 = Kirchenschiffreihen
- D1 = Diakon
- M1 = Mutter/Kind
- F1 = Foyer
- E1-5 Empore
-
- Sitzplatzuweisung für den aktuellen GD löschen
- Standardsitzplatz zuweisen, für alle künftigen Registrierungen
- Standardsitzplatz löschen, für alle künftigen Registrierungen
-
-
-
-
-
-
-
- {/if} -

-
-   -
- - -{/if} - diff --git a/templates/modern/admin/2022-01-12_unzugeordnet.html b/templates/modern/admin/2022-01-12_unzugeordnet.html deleted file mode 100644 index f005a91..0000000 --- a/templates/modern/admin/2022-01-12_unzugeordnet.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - Sitzplan - - - - - - - - - - - - - - -
- - Nicht zugeordnete Personen - -
- - - - - - {section name=table_data1 loop=$table_data1} - - - - - {/section} -
NameMögliche Sitzplätze
{$table_data1[table_data1].nachname}, {$table_data1[table_data1].vorname} ({$table_data1[table_data1].Anz} {if $table_data1[table_data1].Anz == 1} Person{else} Personen{/if}) - - -
-
-
- - diff --git a/templates/modern/admin/administration_frame.html b/templates/modern/admin/administration_frame.html deleted file mode 100644 index 699a71c..0000000 --- a/templates/modern/admin/administration_frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - -Deputatverwaltung - - - - - - - - - -<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> - -<p>To view this page correctly, you need a Web browser that supports frames.</p> - -</body> - - - \ No newline at end of file diff --git a/templates/modern/admin/gd_verwaltung.html b/templates/modern/admin/gd_verwaltung.html deleted file mode 100644 index e23eaf3..0000000 --- a/templates/modern/admin/gd_verwaltung.html +++ /dev/null @@ -1,681 +0,0 @@ -{if $action == ''} - - - - - - - Sitzplan - - - - - - - - - - - - -
- - Statistik / Verwaltung - - -

- {if $verwaltung_error == '1'} - - - - - -
- - Achtung!
- {$verwaltung_error_text} -
-
- {/if} - - - - - - - - - - - - - - - - - - -
Anzahl Anmeldungen:{$verwaltung_anzges}
Anzahl Haushalte:{if $verwaltung_lfd_haushalte<$verwaltung_kritischemarke}{else}{/if} {$verwaltung_lfd_haushalte}
Anmeldungen sperren: -
- {if $verwaltung_sperrung ==0} - Gottesdienst sperren - {/if} - {if $verwaltung_sperrung ==1} - Gottesdienst öffnen (seit {$verwaltung_sperrdat} gesperrt) - {/if} -
Standardsitzplätze: - Wiederherstellung -
-
-

- - - - - - -
Teilnehmer löschen: - -
-
-
- Haushalt hinzufügen: -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-   - - Nachname - -   - - Vorname (vollständig ausgeschrieben) - -   -
- 1 - - - - , - - - -   -
- 2 - - - - , - - - -   -
- 3 - - - - , - - - -   -
- 4 - - - - , - - - -   -
- 5 - - - - , - - - -   -
-   - -   - -   - -   - -   -
- - - Mailadresse: - - -   - - -
-
-
- - -{/if} - -{if $action == 'del'} - - - - - - - Registrierung und Terminbuchung für Gottesdienste in Weinstadt-Beutelsbach - - - - - - - - - - - - - - - - - - -
-   - -
-
- {if $abmelde_error == 1} -
Fehler bei der Abmeldung
- {/if} - {if $abmelde_error == 0} -
Abmeldung vom Gottesdienst am {$abmelde_termin} Uhr
- {/if} -
-
-
-

- {if $index_error == '1'} - - - - - -
- - Achtung!
- {$index_error_text} -
-
- {/if} - - - - -
- - - {if $abmelde_error == 1} - - - - -
- - - - - - - - - - - - - - - - -
  - Es ist ein Fehler aufgetreten. Die Buchung konnte nicht gelöscht werden oder ist bereits gelöscht.
-
- Im Zweifel kontaktieren Sie den Administrator. -
 
   
  - -  
- {/if} - {if $abmelde_error == 0} -
- - - - - - - - - - - - - - - - -
  -

- Sie möchten {$abmelde_vorname} {$abmelde_nachname} vom Gottesdienst am {$abmelde_termin} Uhr abmelden? -
-
-
- Sind Sie sich sicher? -
-
- - -   - - - -

-
 
   
  - -  
- {/if} -
-
-

-
-   -
- - - -{/if} -{if $action == 'del2'} - - - - - - - Abmeldung beendet - - - - - - - - - - - -
-   - -
-
-
Abmeldung beendet
-
-
-
-

- {if $save_error == '1'} - - - - - -
- - Achtung!
- {$save_error_text} -
-
- {else} -
-
- - - - -
- - - - - -
-

- {$abmelde_ausgabe} -

-
-
-
-
-
- {/if} -

-
-   -
- - - -{/if} - -{if $action == 'save'} - - - - - - - Registrierung und Terminbuchung für Gottesdienste in Weinstadt-Beutelsbach - - - - - - - - - - - - - - - - - - - - - - - - -
-   - -
-
-
Registrierung und Terminbuchung für Gottesdienste in Weinstadt-Beutelsbach
-
-
-
-

- {if $save_error == '1'} - - - - - -
- - Achtung!
- {$save_error_text} -
-
- {else} -
-
- - - - -
- - - - - -
-

- Die Anmeldung zum Gottesdienst ist erfolgreich abgeschlossen.
-
- {if $iframe1 != ''}{/if} - {if $iframe2 != ''}{/if} - {if $iframe3 != ''}{/if} - {if $iframe4 != ''}{/if} - {if $iframe5 != ''}{/if} -

-
-
-
-
-
- {/if} -

-
-   -
- - - -{/if} \ No newline at end of file diff --git a/templates/modern/admin/hauptframe.html b/templates/modern/admin/hauptframe.html deleted file mode 100644 index 60b4f2b..0000000 --- a/templates/modern/admin/hauptframe.html +++ /dev/null @@ -1,31 +0,0 @@ - - -BPM Administration - - - - - -
-
-
Willkommen
-
-
- -
-

- - - - -
- Willkommen bei der Administration JU & MI -
-
-
- Wählen Sie oben einen Reiter aus, um den gewünschten Bereich zu administrieren. -
-

- - - \ No newline at end of file diff --git a/templates/modern/admin/index.html b/templates/modern/admin/index.html deleted file mode 100644 index 74c8177..0000000 --- a/templates/modern/admin/index.html +++ /dev/null @@ -1,132 +0,0 @@ - -{if $action == ''} - - - Willkommen zur Gottesdienstadministration - - - - - - - - - - - - - - - - - - - - - -
-   - -
-
-
Willkommen zur {$global_titel}
-
-
-
-

- {if $index_error == '1'} - - - - - -
- - Achtung!
- {$index_error_text} -
-
- {/if} - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - -
- Benutzerkennung - -
- Passwort: - -
-   -
-   - - -
-
-

- -

-
-
- - -
-
-   -
- - - -{/if} - -{if $action == 'anmeld'} - {if $index_login == '1'} - - {/if} -{/if} \ No newline at end of file diff --git a/templates/modern/admin/indexframe.html b/templates/modern/admin/indexframe.html deleted file mode 100644 index 4faa161..0000000 --- a/templates/modern/admin/indexframe.html +++ /dev/null @@ -1,23 +0,0 @@ - - -{$titel_head_umfrage} - - - - - - - - - - - -<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> - -<p>To view this page correctly, you need a Web browser that supports frames.</p> - -</body> - - - \ No newline at end of file diff --git a/templates/modern/admin/liste_qr_name.html b/templates/modern/admin/liste_qr_name.html deleted file mode 100644 index 86f1371..0000000 --- a/templates/modern/admin/liste_qr_name.html +++ /dev/null @@ -1,178 +0,0 @@ -{if $action == ''} - - - - - - - - -
- - {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - QR-Codes nach Namen - -
-
-

- -

-
-

- - -
-
- -

-
-
-
-
-
-
-
- - -{/if} - - -{if $action == 'ausgabe'} -{if $mailwindow == '1'} - - - - - - - Registrierung und Terminbuchung f�r Gottesdienste in Weinstadt-Beutelsbach - - - - - - - - - - - - - - - - - - - - - - - - -
-   - -
-
-
Teilnehmerlistenversand
-
-
-
-

-
-
- - - - -
- - - - - -
-

- {$message} - - {if $kein_mailversand != ''} -
-
- Folgende Personen wurden nicht angeschrieben, die Mailadresse fehlerhaft ist:
- {$kein_mailversand} - {/if} - - {if $keine_Mailadresse != ''} -
-
- Folgende Personen wurden nicht angeschrieben, da keine Mailadresse hinterlegt ist:
- {$keine_Mailadresse} - {/if} -

-
-
-
-
-
-

-
-   -
- - -{/if} -{/if} diff --git a/templates/modern/admin/liste_tn.html b/templates/modern/admin/liste_tn.html deleted file mode 100644 index bad27d4..0000000 --- a/templates/modern/admin/liste_tn.html +++ /dev/null @@ -1,164 +0,0 @@ -{if $action == ''} - - - - - - - - -
- - {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Teilnehmerliste - -
-
-

- -

-
-

- - -
-
- -

-
-
-
-
-
-
-
- - -{/if} - - -{if $action == 'ausgabe'} -{if $mailwindow == '1'} - - - - - - - Registrierung und Terminbuchung fr Gottesdienste in Weinstadt-Beutelsbach - - - - - - - - - - - - - - - - - - - - - - - - -
-   - -
-
-
Teilnehmerlistenversand
-
-
-
-

-
-
- - - - -
- - - - - -
-

- {$message} -

-
-
-
-
-
-

-
-   -
- - -{/if} -{/if} \ No newline at end of file diff --git a/templates/modern/admin/logout.html b/templates/modern/admin/logout.html deleted file mode 100644 index 82aa2d1..0000000 --- a/templates/modern/admin/logout.html +++ /dev/null @@ -1,74 +0,0 @@ -{if $action == ''} - - - {$logout_titel} - - - - - - - - - - - - -
-   - -
-
-
{$logout_titel}
-
-
-
-

- - - - - -
- - - - - - - - - - - - - - - -
- {$logout_text} -
-   -
- Login -
- -
- -
-
-

-
-   - -
- - - - - -{/if} \ No newline at end of file diff --git a/templates/modern/admin/menu_administration.html b/templates/modern/admin/menu_administration.html deleted file mode 100644 index 5114acb..0000000 --- a/templates/modern/admin/menu_administration.html +++ /dev/null @@ -1,47 +0,0 @@ -{if $action == ''} - - - - -Menu - - - - - - - - -
- - -
- - - -{/if} diff --git a/templates/modern/admin/menu_qr.html b/templates/modern/admin/menu_qr.html deleted file mode 100644 index b6d0da4..0000000 --- a/templates/modern/admin/menu_qr.html +++ /dev/null @@ -1,48 +0,0 @@ -{if $action == ''} - - - - -Menu - - - - - - - -
-
-

QR Verwaltung

- - - - - - - - -
- -
- - - -{/if} - diff --git a/templates/modern/admin/menu_survey.html b/templates/modern/admin/menu_survey.html deleted file mode 100644 index ad81c1e..0000000 --- a/templates/modern/admin/menu_survey.html +++ /dev/null @@ -1,48 +0,0 @@ -{if $action == ''} - - - - -Menu - - - - - - - -
-
-

{$menu_survey_head1}

- - - - - - - - -
- -
- - - -{/if} - - diff --git a/templates/modern/admin/menu_verwaltung.html b/templates/modern/admin/menu_verwaltung.html deleted file mode 100644 index 040085f..0000000 --- a/templates/modern/admin/menu_verwaltung.html +++ /dev/null @@ -1,50 +0,0 @@ -{if $action == ''} - - - - -Menu - - - - - - - -
-
-

Termine

- - -

Gottesdienst

- - - - - - -
- -
- - - -{/if} diff --git a/templates/modern/admin/menu_youtube.html b/templates/modern/admin/menu_youtube.html deleted file mode 100644 index 2d46558..0000000 --- a/templates/modern/admin/menu_youtube.html +++ /dev/null @@ -1,47 +0,0 @@ -{if $action == ''} - - - - -Menu - - - - - - - -
-
-

Termine

- - - - - - - - -
- -
- - - -{/if} - diff --git a/templates/modern/admin/old/bewerber_daten.html b/templates/modern/admin/old/bewerber_daten.html deleted file mode 100644 index 3e20c37..0000000 --- a/templates/modern/admin/old/bewerber_daten.html +++ /dev/null @@ -1,1705 +0,0 @@ -{if $action == ''} - - - - - - - - - {literal} - - {/literal} - - -
- {if $bewerber_error == '1'} - - - - - -
- - Achtung!
- {$bewerber_error_text} -
-
- {/if} -
- - Bewerberdaten - -
-
-
-
-
-
- Suche - -
-
-
-
-
-

- -

-
-

- -

-
-
-
-
-
-
-
- - -{/if} -{if $action == 'ausgabe'} - - - - - Anlagenupload und Ausbildungsstellenwahl BPM (Bachelor of Arts - Public Management) der Hochschulen Ludwigsburg und Kehl. - - - - - - - - - - - - - - - - - - - - - - - - - - - - {if $index_error == '1'} - - - - - -
- - Achtung!
- {$index_error_text} -
-
- {/if} -
- - Persönliche Angaben - - - - - - -
- {$status_anrede}
- {$status_vorname} {$status_nachname}
- {$status_str}
- {$status_plz} {$status_ort}
- {$status_mail}
-
- - - - - - {if $status_tel != ''} - - - - - {/if} -
Geburtstag:{$status_gebdat}
Tel:{$status_tel}
-
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
- Testdatum: - - {$status_tm_datum_form} - -   -
- Testlogin: - - {$status_login_dat_form} - - {if $status_login_dat_form != '-'} - Testdatum zurücksetzen Ermöglicht einen weiteren Testlogin im Hochschulsystem (nicht im Hogrefeportal) - {/if} -
- ID: - - {$status_login_id} - -   -
- TAN: - - {$status_login_tan} - -   -
- zugeordnete Hochschule: - - -
-
-
-
-
-
- - Testergebnis im Detail - - {if $status_erg_vorhanden == 0} -
- Es sind keine aktuellen Testergebnisse verfügbar! -
- {/if} - {if $status_erg_vorhanden == 1} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Testmodul - - Erreichte Punkte -
- Satzergänzung: - - {$status_erg_satzerg} / 20 -
- Gemeinsamkeiten: - - {$status_erg_gemeinsamkeiten} / 20 -
- Rechenaufgaben: - - {$status_erg_rechenaufgaben} / 20 -
- Zahlenreihen: - - {$status_erg_zahlenreihen} / 20 -
- Rechenzeichen: - - {$status_erg_rechenzeichen} / 20 -
- Matrizen: - - {$status_erg_matrizen} / 20 -
- Merkfähigkeit verbal: - - {$status_erg_merkf} / 10 -
- Erreichte Punktzahl: - - {$status_erg_summe} / 130 -
- Ergebnis: - - {$status_erg_bestanden_text} -
- Einsicht in das Ergebnis Kandidat: - - {$status_erg_einsicht_dat} -
- {/if} -
- - {section name=table_data4 loop=$table_data4} -
-
Älteres Testergebnis vom {$table_data4[table_data4].status_erg_testdat} Uhr in {$table_data4[table_data4].status_erg_standort} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Testmodul - - Erreichte Punkte -
- Satzergänzung: - - {$table_data4[table_data4].status_erg_satzerg} / 20 -
- Gemeinsamkeiten: - - {$table_data4[table_data4].status_erg_gemeinsamkeiten} / 20 -
- Rechenaufgaben: - - {$table_data4[table_data4].status_erg_rechenaufgaben} / 20 -
- Zahlenreihen: - - {$table_data4[table_data4].status_erg_zahlenreihen} / 20 -
- Rechenzeichen: - - {$table_data4[table_data4].status_erg_rechenzeichen} / 20 -
- Matrizen: - - {$table_data4[table_data4].status_erg_matrizen} / 20 -
- Merkfähigkeit verbal: - - {$table_data4[table_data4].status_erg_merkf} / 10 -
- Erreichte Punktzahl: - - {$table_data4[table_data4].status_erg_summe} / 130 -
- Ergebnis: - - {$table_data4[table_data4].status_erg_bestanden_text} -
- Einsicht in das Ergebnis Kandidat: - - {$table_data4[table_data4].status_erg_einsicht_dat} -
-
- {/section} - - - - - - - - - - - -
-
-
-
- - Hochgeladene Dokumente - - - - - - - - - - - {section name=table_data1 loop=$table_data1} - {if $smarty.section.table_data1.rownum != ''} - - - - - - - - {/if} - {/section} - - - - - - -
- Dok. Nr. - - Datei - - Dokumentenbeschreibung - - Hochladedatum - - Löschen -
- {$table_data1[table_data1].up_id} - - {if $table_data1[table_data1].exists == 1} - {$table_data1[table_data1].basename} - {else} - {$table_data1[table_data1].basename} - {/if} - - - - - {$table_data1[table_data1].upload_dat} - - -
-
-
- - -
- - -
-
-
-
-
- - - - -
-
-
- - Erfasste Note - -
-
-

- - - - - - - -
- - - - - -
-

-

- - - -
-
-
- - - -
- - Ausgewählte Ausbildungsstellen - - - - - - - - - - - - {section name=table_data2 loop=$table_data2} - {if $smarty.section.table_data2.rownum != ''} - - - - - - - - - {/if} - {/section} - - - -
- lfd.Nr. - - Ausbildungsstelle - - Adresse - - Mailadresse - - Mail an Ausbildungsstelle anzeigen - - Status Mail
Nachsendemöglichkeit
-
- {$smarty.section.table_data2.rownum} - - {$table_data2[table_data2].bez} - - {$table_data2[table_data2].str}, {$table_data2[table_data2].plz} {$table_data2[table_data2].ort} - - {$table_data2[table_data2].mail} - - Mail - - {$table_data2[table_data2].status} -
-
- Ausbildungsstelle hinzufügen -
-
-
-
- - - -
-
-
- - Sonstige Mail an Kandidat - - - - - - - - - - - - {section name=table_data3 loop=$table_data3} - {if $smarty.section.table_data3.rownum != ''} - - - - - - - - - {/if} - {/section} -
- lfd.Nr. - - Absender - - Datum - - Betreff - - Mail anzeigen - - Status Mail
Nachsendemöglichkeit
-
- {$smarty.section.table_data3.rownum} - - {$table_data3[table_data3].sender} - - {$table_data3[table_data3].sendedat_form} - - {$table_data3[table_data3].mail_betreff} - - Mail - - {$table_data3[table_data3].status} -
-
- - -
-
- - - {/if} - {if $action == 'mail'} - - - - - -
- - Mailtext - -
-
-

- {$mail_text} -

-
-
-
-
-
-
-
- - - {/if} - - {if $action == 'mail_sonst'} - - - - - -
- - Mailtext - -

- Betreff: {$mail_betreff} -

-
-

- Mailbody:
- {$mail_text} -

-
-
-
-
-
- - - {/if} - - - {if $action == 'mailsenden'} - - - - - - - -
- - E-Mail bearbeiten - -
-
-
- - - - - - - - - - - - - - - - - -
- Ausbildungsstelle: - - {$mail_bez} -
- Mailadresse: - - {$mail_mail} -
- Betreff: - - -
- Mailtext: - - - {literal} - - {/literal} - -
-

-
-
-

- -

-
-
-
-
-
-
-
- - - {/if} - - {if $action == 'mailsenden_sonst'} - - - - - - - -
- - E-Mail bearbeiten - -
-
-
- - - - - - - - - - - - - - - - - -
- Absender: - - {$mail_sender} - {$mail_sendermail} - - -
- Mailadresse: - - -
- Betreff: - - -
- Mailtext: - - - - {literal} - - {/literal} - -
-

-
-
-

- -

-
-
-
-
-
-
-
- - - {/if} - - {if $action == 'mailsenden2'} - - - - - -
- - Ergebnis - -
-
- {$mail_senderg} -
-
- Sie können das Fenster nun schließen. -
-
-
-
-
- - - {/if} - - {if $action == 'mailsenden2_sonst'} - - - - - -
- - Ergebnis - -
-
- {$mail_senderg} -
-
- Sie können das Fenster nun schließen. -
-
-
-
-
- - - {/if} - - {if $action == 'deldok'} - - - - - -
- - Löschbestätigung - -
-
-

- Möchten sie die Datei {$deldok_dokument} wirklich löschen?

- - -   - - - -
-
-

-
-
-
-
- - - {/if} -{if $action == 'stelle'} - - - - - Anlagenupload und Ausbildungsstellenwahl BPM (Bachelor of Arts - Public Management) der Hochschulen Ludwigsburg und Kehl. - - - - - - - {if $index_error == '1'} - - - - - -
- - Achtung!
- {$index_error_text} -
-
- {/if} -
- - Hinweise - -
    - -
  • Nicht alle der hier aufgeführten Behörden bieten auch Ausbildungsstellen für diesen Studiengang an.
  • -
  • Die gewählten Ausbildungsstellen erhalten automatisch eine Bewerbung übermittelt.
  • -
  • Der Bewerber erhält gegebenenfalls von den ausgewählten Behörden eine Einladung zur Vorstellung.
  • -
-
-
-
-
- - Schritt 1: Ausbildungsstellenwahl - - - - - - - - -
-
    -
  1. Die erste Stelle im Dropdownfeld markieren.
  2. -
  3. Danach "Markierte Stelle auswählen..." klicken,
    so dass die Stelle unter Schritt 2 angezeigt wird
  4. -
  5. Ggf. die Schritte solange wiederholen. Maximal vier Stellen sind möglich.
  6. -
-
-
- - - - - - - -
-
- -
-
-
-
- -
-
-
-   -
-
- -
-
-
- - Schritt 2: Ausgewählte Ausbildungsstellen - - -
- - - - - - - - - {section name=table_data2 loop=$table_data2} - {if $smarty.section.table_data2.rownum != ''} - - - - - - - {/if} - {/section} -
- lfd.Nr. - - Ausbildungsstelle - - Adresse - - Mailadresse -
- {$smarty.section.table_data2.rownum} - - {$table_data2[table_data2].bez} - - {$table_data2[table_data2].str}, {$table_data2[table_data2].plz} {$table_data2[table_data2].ort} - - {$table_data2[table_data2].mail} -
-
- - - -{/if} - - - - {if $action == 'stammdaten_edit'} - - - - - - - - - - - - -
- - Stammdaten bearbeiten - -
-
-
- - -
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- {if $erf_hig_anrede == 1}* {/if}Anrede:{if $erf_hig_anrede == 1}{/if} - -
- -
- {if $erf_hig_vorname == 1}* {/if}Vornamen:{if $erf_hig_vorname == 1}{/if} -
(wie im Personalausweis angegeben) -
- -
- {if $erf_hig_nachname == 1}* {/if}Nachname:{if $erf_hig_nachname == 1}{/if} - - -
- {if $erf_hig_gebdat == 1}* {/if}Geburtsdatum:{if $erf_hig_gebdat == 1}{/if} - - - -
- {if $erf_hig_str == 1}* {/if}Straße mit Hausnr:{if $erf_hig_str == 1}{/if} - - -
- {if $erf_hig_plz == 1}* {/if}PLZ{if $erf_hig_plz == 1}{/if} / {if $erf_hig_ort == 1}* {/if}Ort{if $erf_hig_ort == 1}{/if} - -   -
- {if $erf_hig_mail == 1}* {/if}E-Mail Adresse:{if $erf_hig_mail == 1}{/if} - - -
- {if $erf_hig_tel == 1}* {/if}Telefon:{if $erf_hig_tel == 1}{/if} - - -
-

-
-
-

- -

-
- - -
- - - {/if} - - {if $action == 'stammdaten2_edit'} - - - - - -
- - Ergebnis - -
-
- Daten gespeichert! -
-
- Sie können das Fenster nun schließen. -
-
-
-
-
-
-
- - - {/if} diff --git a/templates/modern/admin/old/datencheck.html b/templates/modern/admin/old/datencheck.html deleted file mode 100644 index e1e4dc0..0000000 --- a/templates/modern/admin/old/datencheck.html +++ /dev/null @@ -1,228 +0,0 @@ -{if $action == ''} - - - - - - - - - - - - - - - - - {if $news_error == '1'} - - - - - -
- - Achtung!
- {$news_error_text} -
-
- {/if} - -
- - Datencheck - -

Matrix über vorhandene Daten

-
- - - - - - - - - - - - - - - - - -
- Anzahl der getesteten Kandidaten: - - {$datenchk_anzget} -
- Anzahl der Kandidaten mit ausstehendem Test : - - {$datenchk_aussttest} -
- Anzahl aller Anmeldung: - - {$datenchk_alleranm} -
- Anzahl Durchfaller: - - {$datenchk_anzdurchfaller} -
-
-
- - - - - - - - - - - - - - - - {section name=table_data1 loop=$table_data1} - - - - - - - - - - - - - - {/section} -
- Bew. Nr. ({$dokverw_anzdb}) - - Name - - Testdatum - - Testergebnis - - Verkürzung - - Schwerbehinderung - - PDF Upload HZB - - PDF Upload Zeugnisse - - Lebenslauf - - Note HZB - - Note Durchschnitt -
- {$table_data1[table_data1].ka_id} - - {$table_data1[table_data1].nachname}, {$table_data1[table_data1].vorname} - - {$table_data1[table_data1].tm_datum} ({$table_data1[table_data1].tm_standort}) - - {$table_data1[table_data1].testergebnis} / 130 - - {if $table_data1[table_data1].verkuerzung == 'J'} Ja {/if} - - {if $table_data1[table_data1].behinderung == 'J'} Ja {/if} - - - -
- {$table_data1[table_data1].anz_zeug} / 2 -
- - - - - -
-
-
-
-
-
- - - {/if} \ No newline at end of file diff --git a/templates/modern/admin/old/dokverw.html b/templates/modern/admin/old/dokverw.html deleted file mode 100644 index 571a301..0000000 --- a/templates/modern/admin/old/dokverw.html +++ /dev/null @@ -1,184 +0,0 @@ -{if $action == ''} - - - - - - - - - - - - - - - - - {if $news_error == '1'} - - - - - -
- - Achtung!
- {$news_error_text} -
-
- {/if} - -
- - Dokumentenverwaltung - -
-
-

Dateien, die in der Datenbank sind, werden werden geprüft, ob sie auf dem Server vorhanden sind

- - - - - - - - {section name=table_data1 loop=$table_data1} - - - - - - {/section} -
- Name - - Datei - - Existenz (Anzahl: {$dokverw_anzdb}) -
- {$table_data1[table_data1].nachname}, {$table_data1[table_data1].vorname} - - {$table_data1[table_data1].file} - - {if $table_data1[table_data1].exists == 0} - Auf DB löschen - {/if} - {if $table_data1[table_data1].exists == 1} - vorhanden - {/if} -
-

- -

Dateien, die auf dem Server liegen, werden geprüft, ob sie in der Datenbank bekannt sind

- - - - - - - - {section name=table_data2 loop=$table_data2} - - - - - - {/section} -
- Name - - Datei - - Existenz (Anzahl: {$dokverw_anzserver}) -
- {$table_data2[table_data2].nachname}, {$table_data2[table_data2].vorname} - - {$table_data2[table_data2].file} - - {if $table_data2[table_data2].exists == 0} - Auf Server löschen - {/if} - {if $table_data2[table_data2].exists == 1} - vorhanden - {/if} -
-
-
-
-
-
- - - {/if} \ No newline at end of file diff --git a/templates/modern/admin/old/ergebnisse.html b/templates/modern/admin/old/ergebnisse.html deleted file mode 100644 index 79bfef9..0000000 --- a/templates/modern/admin/old/ergebnisse.html +++ /dev/null @@ -1,322 +0,0 @@ -{if $action == ''} - - - - - - -
- {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Testergebnisse - -
-
-

- -

-
-

- -

-
-
-
-
-
-
-
- - -{/if} -{if $action == 'ausgabe'} - - - - - Anlagenupload und Ausbildungsstellenwahl BPM (Bachelor of Arts - Public Management) der Hochschulen Ludwigsburg und Kehl. - - - - - - - {if $index_error == '1'} - - - - - -
- - Achtung!
- {$index_error_text} -
-
- {/if} -
- - Testergebnisse: {$erg_datum} - {$erg_standort} - -
- - - - - - - - - - - - - - - - - - - {section name=table_data1 loop=$table_data1} - - - - - - - - - - - - - - - - - - {/section} -
- # - - TAN - - Name - - Satzergänzung - - Gemeinsamkeiten - - Rechenaufgaben - - Zahlenreihen - - Rechenzeichen - - Matrizen - - Merkfähigkeit verbal - - Summe Einzeltests - - Gesamtergebnis - - Manuell nicht bestanden -
- {$smarty.section.table_data1.rownum} - - {$table_data1[table_data1].tan} - - {$table_data1[table_data1].nachname}, {$table_data1[table_data1].vorname} - - {$table_data1[table_data1].satzerg} - - {$table_data1[table_data1].gemeinsamkeiten} - - {$table_data1[table_data1].rechenaufgaben} - - {$table_data1[table_data1].zahlenreihen} - - {$table_data1[table_data1].rechenzeichen} - - {$table_data1[table_data1].matrizen} - - {$table_data1[table_data1].merkf} - - {$table_data1[table_data1].summe} - - {if $table_data1[table_data1].bestanden == 1} - bestanden - {else} - nicht bestanden - {/if} - - {if $table_data1[table_data1].bestanden == 1} - Als durchgefallen markieren - {/if} -
-
-
-
-
-
- - -{/if} - - {if $action == 'del'} - - - - - -
- - Löschbestätigung - -
-
-

- Möchten sie die Testergebnisse von {$del_name} wirklich löschen?

- - -   - - - -
-
-

-
-
-
-
- - - {/if} \ No newline at end of file diff --git a/templates/modern/admin/old/kand_del.html b/templates/modern/admin/old/kand_del.html deleted file mode 100644 index 3e4535c..0000000 --- a/templates/modern/admin/old/kand_del.html +++ /dev/null @@ -1,142 +0,0 @@ -{if $action == ''} - - - - - - - - - {literal} - - {/literal} - - - -
- - {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Kandidat löschen - -
-
-

Kandidaten können gelöscht werden, solange sie noch nicht am Test teilgenommen haben.

-

-

-
-
-
- Suche - -
-
-
-
-
-

- -

-
-

- -

-
-
-
-
-
-
-
- - -{/if} - - {if $action == 'nachfrage'} - - - - - -
- - Löschbestätigung - -
-
-

- Möchten sie Kandidat/in {$kand_name} wirklich löschen?

- -   - - -
-
-

-
-
-
-
- - - {/if} \ No newline at end of file diff --git a/templates/modern/admin/old/liste_tn.html b/templates/modern/admin/old/liste_tn.html deleted file mode 100644 index d7e6094..0000000 --- a/templates/modern/admin/old/liste_tn.html +++ /dev/null @@ -1,55 +0,0 @@ -{if $action == ''} - - - - - - - - -
- - {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Teilnehmerliste - -
-
-

- -

-
-

- -

-
-
-
-
-
-
-
- - -{/if} \ No newline at end of file diff --git a/templates/modern/admin/old/logout.html b/templates/modern/admin/old/logout.html deleted file mode 100644 index 82aa2d1..0000000 --- a/templates/modern/admin/old/logout.html +++ /dev/null @@ -1,74 +0,0 @@ -{if $action == ''} - - - {$logout_titel} - - - - - - - - - - - - -
-   - -
-
-
{$logout_titel}
-
-
-
-

- - - - - -
- - - - - - - - - - - - - - - -
- {$logout_text} -
-   -
- Login -
- -
- -
-
-

-
-   - -
- - - - - -{/if} \ No newline at end of file diff --git a/templates/modern/admin/old/mail_test.html b/templates/modern/admin/old/mail_test.html deleted file mode 100644 index 19d4eed..0000000 --- a/templates/modern/admin/old/mail_test.html +++ /dev/null @@ -1,215 +0,0 @@ -{if $action == ''} - - - - - - - - -
- - {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Mail an Testteilnehmer - -
-
-

- -

-
-

- -

-
-
-
-
-
-
-
- - -{/if} - -{if $action == 'mailsenden_test'} - - - - - - - -
- - E-Mail bearbeiten - -
-
-
- - - - - - - - - - - - - - - - - -
- Absender: - - {$mail_sender} - {$mail_sendermail} - -
- Empfänger: - - -
- Betreff: - - -
- Mailtext: - - - - {literal} - - {/literal} - -
-

-
-
-

-

- Bitte nur einmal klicken. Rückmeldung dauert 30-60 Sekunden bis alle Mails verschickt wurden! -

-
-
-
-
-
-
-
- - - {/if} - - - {if $action == 'mailsenden2_test'} - - - - - -
- - Ergebnis - -
-
- {$mail_senderg} -
-
- Sie können das Fenster nun schließen. -
-
-
-
-
- - - {/if} \ No newline at end of file diff --git a/templates/modern/admin/old/parameter.html b/templates/modern/admin/old/parameter.html deleted file mode 100644 index dfcd233..0000000 --- a/templates/modern/admin/old/parameter.html +++ /dev/null @@ -1,118 +0,0 @@ -{if $action == ''} - - - - - - - - -
- - {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Systemparameter - -
-
- - {section name=table_data1 loop=$table_data1} - - - - - {/section} -
- {$table_data1[table_data1].beschreibung}{if $table_data1[table_data1].pid == 1} Verfügbare Rest-TANs: {$parameter_anzahltan}{/if} - - -
-

-
-

- -

-
-
-
-
-
-
-
- - -{/if} - -{if $action == 'save'} -{if $parameter_inserterr == '1'} - - - - - -
- Fehler beim der Speicherung -
-
- Es traten folgende Fehler auf: -
- {$parameter_reason} -
-
- -
-
-
-
- - -{/if} - -{if $parameter_inserterr == '2'} - - - - - -
- Speicherung -
-
-

- Die Daten wurden übernommen. -

-
-
-
- -
-
-
-
- - -{/if} -{/if} \ No newline at end of file diff --git a/templates/modern/admin/old/praxisstellen_edit.html b/templates/modern/admin/old/praxisstellen_edit.html deleted file mode 100644 index aa13180..0000000 --- a/templates/modern/admin/old/praxisstellen_edit.html +++ /dev/null @@ -1,514 +0,0 @@ -{if $action == ''} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - {if $prxedit_error == '1'} - - - - - -
- - Achtung!
- {$prxedit_error_text} -
-
- {/if} -
- - Ausbildungsstelle erfassen - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Art der Ausbildungsstelle: - - -
  -   -
- Behördenname: - - -
  -   -
- Straße: - - -
  -   -
- PLZ / Ort: - - -
  -   -
- Mail: - - -
  -   -
- Gültig von: - - -
  -   -
- Gültig bis: - - -
  -   -
- Registrierung zurücksetzen: -
- (Die Praxisstelle bekommt innerhalb 30 Min
eine Mail mit einer neuen TAN) -
- -
  -   -
-
-

- - {if $prxedit_value_user != ''} -  zurück zu {$prxedit_value_username} - {/if} -

-
-
-
-
-
-
- - Erfasste Ausbildungsstellen - - - - - - - - -
- Suche: Mind 3 Zeichen: - - - - -
-
-
-
- -
-
-
-
- - -{/if} - - {if $action == 'mailsenden'} - - - - - - - -
- - E-Mail bearbeiten - -
-
-
- - - - - - - - - - - - - - - - - -
- Absender: - - {$mail_sender} - {$mail_sendermail} - - -
- Mailadresse: - - -
- Betreff: - - -
- Mailtext: - - - - {literal} - - {/literal} - -
-

-
-
-

- -

-
-
-
-
-
-
-
- - - {/if} - - {if $action == 'mailsenden2'} - - - - - -
- - Ergebnis - -
-
- {$mail_senderg} -
-
- Sie können das Fenster nun schließen. -
-
-
-
-
- - - {/if} \ No newline at end of file diff --git a/templates/modern/admin/old/praxisstellen_news.html b/templates/modern/admin/old/praxisstellen_news.html deleted file mode 100644 index 621f3c9..0000000 --- a/templates/modern/admin/old/praxisstellen_news.html +++ /dev/null @@ -1,247 +0,0 @@ -{if $action == ''} - - - - - - - - - - - - - - - - -
- {if $news_error == '1'} - - - - - -
- - Achtung!
- {$news_error_text} -
-
- {/if} - -
- - Ausbildungsstellen News - -
-
- - - - - - - - - -
- Überschrift: - - -
- Inhalt: - - - - {literal} - - {/literal} -
-

-
-
-

- -

-
- -
-
-
-
-
-
- - Erfasste News - - - - - - - - - {section name=table_data1 loop=$table_data1} - {if $smarty.section.table_data1.rownum != ''} - - - - - - - {/if} - {/section} -
- Datum - Zeit - - Überschrift - - Anzeige - - Edit -
- {$table_data1[table_data1].pn_date_form} - - {$table_data1[table_data1].pn_headline} - - Nachricht anzeigen - - -   - -
-
- -
-
-
-
- - - {/if} - -{if $action == 'show'} - - - - - -
- - {$prx_show_headline} - - {$prx_show_text} -
-
-
- -
-
-
-
-
- - -{/if} \ No newline at end of file diff --git a/templates/modern/admin/old/rangliste2.html b/templates/modern/admin/old/rangliste2.html deleted file mode 100644 index 96c444e..0000000 --- a/templates/modern/admin/old/rangliste2.html +++ /dev/null @@ -1,171 +0,0 @@ -{if $action == ''} - - - - - - - - - - - - - - - - - {if $news_error == '1'} - - - - - -
- - Achtung!
- {$news_error_text} -
-
- {/if} - -
- - Rangliste 2 - -
-
- - - - -
- Export Rangliste 2: -   -
-
-
- - - - - - - - - - - {section name=table_data1 loop=$table_data1} - - - - - - - - - {/section} -
- Ranglistenplatz 2 ({$dokverw_anzdb}) - - Name - - Mail - - ID - - Testdatum - - Testergebnis -
- {$table_data1[table_data1].rangliste} - - {$table_data1[table_data1].nachname}, {$table_data1[table_data1].vorname} - - {$table_data1[table_data1].mail} - - {$table_data1[table_data1].id} - - {$table_data1[table_data1].tm_datum} ({$table_data1[table_data1].tm_standort}) - - {$table_data1[table_data1].summe} / 130 -
-
-
-
-
-
- - - {/if} \ No newline at end of file diff --git a/templates/modern/admin/old/tanimport.html b/templates/modern/admin/old/tanimport.html deleted file mode 100644 index d4c8c71..0000000 --- a/templates/modern/admin/old/tanimport.html +++ /dev/null @@ -1,349 +0,0 @@ -{if $action == ''} - - - - - Anlagenupload und Ausbildungsstellenwahl BPM (Bachelor of Arts - Public Management) der Hochschulen Ludwigsburg und Kehl. - - - - - - - {if $index_error == '1'} - - - - - -
- - Achtung!
- {$index_error_text} -
-
- {/if} -
- - Schritt 1: Dateien auswählen und hochladen - - - - - - - - -
-
    -
  1. Roter Button anklicken, um HOGREFE TAN Liste auszuwählen
  2. -
  3. Danach "CSV-Hochladen..." klicken
  4. -
  5. Verfügbare Rest-TANs: {$tanimp_anzahltan}
  6. -
  7. Importvorlage Hogrefe: Import_CSV_Hogrefe.xlsx als CSV-Datei abspeichern.
  8. -
-
-
- - - - - - - -
-
- - -
- -
- -
-
-
-   -
-
-
-
- - -{/if} -{if $action == 'csvimp'} - - - - - Anlagenupload und Ausbildungsstellenwahl BPM (Bachelor of Arts - Public Management) der Hochschulen Ludwigsburg und Kehl. - - - - - - - {if $index_error == '1'} - - - - - -
- - Achtung!
- {$index_error_text} -
-
- {/if} -
- - Schritt 2: Daten prüfen - - - - - - - - {section name=table_data1 loop=$table_data1} - - - - - - {/section} -
- # - - TAN - - Kurzlink -
- {$smarty.section.table_data1.rownum} - - {$table_data1[table_data1].tan} - - {$table_data1[table_data1].tinyurl} -
-
-
-
- - - - - - - - - - - - - - - - - - - - - -
- Auswahl - - Markieren -
Datensätze nicht importieren - -
Datensätze importieren - -
-   - -   -
-   - - -
-
-
-
-
- - -{/if} -{if $action == 'csvimp2'} - - - - - - -
- - Import beendet - -
-
-

- Der Import wurde beendet! -
-
- {if $index_error == '1'} - - {section name=table_data2 loop=$table_data2} - - - - {/section} -
- {$table_data2[table_data2].hinweis} -
- {/if} -

-
-
-
- -
-
-
-
- - -{/if} \ No newline at end of file diff --git a/templates/modern/admin/old/termine.html_bcc b/templates/modern/admin/old/termine.html_bcc deleted file mode 100644 index 4c04fed..0000000 --- a/templates/modern/admin/old/termine.html_bcc +++ /dev/null @@ -1,439 +0,0 @@ -{if $action == ''} - - - - - - - - - - - - - - - - - - - - - - -
- - {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Termine erfassen - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Testdatum: - - -
  -   -
- Uhrzeit: - - -
  -   -
- Maximale Teilnehmerzahl: - - -
  -   -
- Standort: - -
- -
  -   -
- Gebäude / Raum: - - -
  -   -
- Verwendungszweck Überweisung: - - -
  -   -
-
-

- -

-
-
-
-
-
-
- - Erfasste Termine - - - - - - - - - - - - - {section name=table_data1 loop=$table_data1} - {if $smarty.section.table_data1.rownum != ''} - - - - - - - - - - - {/if} - {/section} -
- lfd.Nr. - - Testdatum - - Uhrzeit - - Standort - - Freie Plätze - - Gebäude / Raum - - Verwendungszweck Überweisung - - Edit -
- {$smarty.section.table_data1.rownum} - - {$table_data1[table_data1].datum} - - {$table_data1[table_data1].zeit} - - {$table_data1[table_data1].standort_form} - - {$table_data1[table_data1].restplatz} / {$table_data1[table_data1].tm_plaetze} - - {$table_data1[table_data1].tm_raum} - - {$table_data1[table_data1].tm_referenznr} - - -   - {if $table_data1[table_data1].tm_disable == 0} - - {else} - - {/if} -
-
- -
-
-
-
- - -{/if} - -{if $action == 'mailterminupdate'} - - - - - - -
- - Mailtext - -
-
- Zu dem Termin haben sich bereits Kandidaten eingebucht. Ihnen muss die Veränderung mitgeteilt werden.
- Sofern noch kein Test geschrieben wurde, kann der Kandidat auch wieder gelöscht werden. Dann wird die Hogrefe TAN wieder frei und die Gebühr muss nicht bezahlt werden. -
-
-
-
- - - - - - - - - - - - - - - - - - - - - -
- Absender: - - -
- Empfänger: - - {$mtupd_mailadressen_an} - -
- Empfänger BCC: - - {$mtupd_mailadressen_bcc} - -
- Betreff: - - -
- Mailtext: - - - {literal} - - {/literal} -
-

-
-
-

- -

-
-
-
-
-
-
-
- - -{/if} - - {if $action == 'mailsenden2'} - - - - - -
- - Ergebnis - -
-
- {$mail_senderg} -
-
-
-
-
-
-
- - - {/if} diff --git a/templates/modern/admin/old/termine_kandidat.html b/templates/modern/admin/old/termine_kandidat.html deleted file mode 100644 index f68e535..0000000 --- a/templates/modern/admin/old/termine_kandidat.html +++ /dev/null @@ -1,494 +0,0 @@ -{if $action == ''} - - - - - - - - - {literal} - - {/literal} - - -
- {if $bewerber_error == '1'} - - - - - -
- - Achtung!
- {$bewerber_error_text} -
-
- {/if} -
- - Testtermin Kandidat anpassen - -
-
-
-
-
-
- Suche - -
-
-
-
-
-

- -

-
-

- -

-
-
-
-
-
-
-
- - -{/if} -{if $action == 'ausgabe'} - - - - - - - - - - - - - - - - - - - - - - - - {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} - -
-
-
- - Erfasste Termine - - Wählen Sie den neuen Termin für {$term_kand_anrede} {$term_kand_vorname} {$term_kand_nachname} aus!
-
- Bisheriger Testtermin: {$term_kand_datum} {$term_kand_zeit} Uhr in {$term_kand_standort} -
-
-
- - - - - - - - - - - {section name=table_data1 loop=$table_data1} - {if $smarty.section.table_data1.rownum != ''} - - - - - - - - - - - {/if} - {/section} -
- Auswahl - - Testdatum - - Uhrzeit - - Standort - - Freie Plätze - - Gebäude / Raum - - Verwendungszweck Überweisung -
- {if $table_data1[table_data1].restplatz != 0} - {if $term_kand_tm_id != $table_data1[table_data1].tm_id} - - {/if} - {/if} - - - - - - - - - - - - -
-
-

- -

-
-
-
- -
-
-
-
- - -{/if} - -{if $action == 'mail'} - - - - - - - -
- - Mailtext - -
-
- Formulieren Sie ein Anschreiben an den Kandidaten, dass sein Termin verlegt wird. -
-
- -
- - - - - - - - - - - - - - - - - -
- Absender: - - -
- Empfänger: - - {$mtupd_mailadressen_an} - -
- Betreff: - - -
- Mailtext: - - - {literal} - - {/literal} -
-

-
-
-

- -

-
-
-
-
-
-
-
- - -{/if} - -{if $action == 'mailsenden2'} - - - - - -
- - Ergebnis - -
-
- {$mail_senderg} -
-
-
-
-
-
-
- - -{/if} \ No newline at end of file diff --git a/templates/modern/admin/old/upload.html b/templates/modern/admin/old/upload.html deleted file mode 100644 index 097de5a..0000000 --- a/templates/modern/admin/old/upload.html +++ /dev/null @@ -1,484 +0,0 @@ -{if $action == ''} - - - - - - -
- {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Import Testdaten - -
-
-

- -

-
-

- -

-
-
-
-
-
-
-
- - -{/if} -{if $action == 'upload'} - - - - - Anlagenupload und Ausbildungsstellenwahl BPM (Bachelor of Arts - Public Management) der Hochschulen Ludwigsburg und Kehl. - - - - - - - {if $index_error == '1'} - - - - - -
- - Achtung!
- {$index_error_text} -
-
- {/if} -
- - Schritt 1: Dateien auswählen und hochladen - - - - - - - - -
-
    -
  1. Die CSV-Dateien können nacheinander hochgeladen werden.
  2. -
  3. Roter Button anklicken, um die einzelne Datei vom PC auszuwählen
  4. -
  5. Danach "CSV-Hochladen..." klicken, so dass die Datei unter Schritt 2 angezeigt wird
  6. -
-
-
- - - - - - - -
-
- - -
- -
- -
-
-
-   -
-
-
-
- - -{/if} -{if $action == 'csvimp'} - - - - - Anlagenupload und Ausbildungsstellenwahl BPM (Bachelor of Arts - Public Management) der Hochschulen Ludwigsburg und Kehl. - - - - - - - {if $index_error == '1'} - - - - - -
- - Achtung!
- {$index_error_text} -
-
- {/if} -
- - Schritt 2: Daten prüfen - - - - - - - - - - - - - - - - - - - - {section name=table_data1 loop=$table_data1} - - - - - - - - - - - - - - - - - - {/section} -
- # - - TAN - - Name - - Datum - - Satzergänzung - - Gemeinsamkeiten - - Rechenaufgaben - - Zahlenreihen - - Rechenzeichen - - Matrizen - - Merkfähigkeit verbal - - Summe Einzeltests - - Gesamtergebnis -
- {$smarty.section.table_data1.rownum} - - {$table_data1[table_data1].tan} - - {$table_data1[table_data1].name} - - {$table_data1[table_data1].datum} - - {$table_data1[table_data1].satzerg_raw} - - {$table_data1[table_data1].gemeinsamkeiten_raw} - - {$table_data1[table_data1].rechenaufgaben_raw} - - {$table_data1[table_data1].zahlenreihen_raw} - - {$table_data1[table_data1].rechenzeichen_raw} - - {$table_data1[table_data1].matrizen_raw} - - {$table_data1[table_data1].merkf_raw} - - {$table_data1[table_data1].summe} - - {if $table_data1[table_data1].bestanden == 1} - bestanden - {else} - nicht bestanden - {/if} -
-
-
-
- - - - - - - - - - - - - - - - - - - - - -
- Auswahl - - Markieren -
Datensätze nicht importieren - -
Datensätze importieren - -
-   - -   -
-   - - -
-
-
-
-
- - -{/if} -{if $action == 'csvimp2'} - - - - - - -
- - Import beendet - -
-
-

- Der Import wurde beendet! -
-
- {if $index_error == '1'} - - {section name=table_data2 loop=$table_data2} - - - - {/section} -
- {$table_data2[table_data2].hinweis} -
- {/if} -

-
-
-
- -
-
-
-
- - -{/if} \ No newline at end of file diff --git a/templates/modern/admin/parameter.html b/templates/modern/admin/parameter.html deleted file mode 100644 index 766f76a..0000000 --- a/templates/modern/admin/parameter.html +++ /dev/null @@ -1,118 +0,0 @@ -{if $action == ''} - - - - - - - - -
- - {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Systemparameter - -
-
- - {section name=table_data1 loop=$table_data1} - - - - - {/section} -
- {$table_data1[table_data1].beschreibung} - - -
-

-
-

- -

-
-
-
-
-
-
-
- - -{/if} - -{if $action == 'save'} -{if $parameter_inserterr == '1'} - - - - - -
- Fehler beim der Speicherung -
-
- Es traten folgende Fehler auf: -
- {$parameter_reason} -
-
- -
-
-
-
- - -{/if} - -{if $parameter_inserterr == '2'} - - - - - -
- Speicherung -
-
-

- Die Daten wurden übernommen. -

-
-
-
- -
-
-
-
- - -{/if} -{/if} \ No newline at end of file diff --git a/templates/modern/admin/qr_code.html b/templates/modern/admin/qr_code.html deleted file mode 100644 index 6f16060..0000000 --- a/templates/modern/admin/qr_code.html +++ /dev/null @@ -1,276 +0,0 @@ -{if $action == ''} - - - - - - - - - - - - - - - - - - - - - - -
- - {if $qrcode_error == '1'} - - - - - -
- - Achtung!
- {$qrcode_error_text} -
-
- {/if} -
- - QR Code erfassen - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Vorname: - - -
  -   -
- Nachname: - - -
  -   -
- QR-Code: - - -
  -   -
- Mail: - - -
  -   -
-
-

- -

-
-
-
-
-
-
- - Erfasste Links - - - - - - - - - - - {section name=table_data1 loop=$table_data1} - {if $smarty.section.table_data1.rownum != ''} - - - - - - - - - {/if} - {/section} -
- lfd.Nr. - - Nachname - - Vorname - - QR-Code - - Mail - - Edit -
- {$smarty.section.table_data1.rownum} - - {$table_data1[table_data1].nachname} - - {$table_data1[table_data1].vorname} - - {$table_data1[table_data1].qr} - - {$table_data1[table_data1].mail} - - -   - -
-
- -
-
-
-
- - -{/if} diff --git a/templates/modern/admin/qr_frame.html b/templates/modern/admin/qr_frame.html deleted file mode 100644 index 847082a..0000000 --- a/templates/modern/admin/qr_frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - -Youtube Links - - - - - - - - - -<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> - -<p>To view this page correctly, you need a Web browser that supports frames.</p> - -</body> - - - \ No newline at end of file diff --git a/templates/modern/admin/result_latest.html b/templates/modern/admin/result_latest.html deleted file mode 100644 index 09ab4bf..0000000 --- a/templates/modern/admin/result_latest.html +++ /dev/null @@ -1,116 +0,0 @@ -{if $action == ''} - - - - - - Auswertung - - - - - - -
-
-
-

-

{$result_headline}

-

-

({$result_datum_von} bis {$result_datum_bis})

-
-
- - - - - - - - - - -
Vollständige Teilnehmer{$result_anz_fertige}
Teilweise beantwortet{$result_anz_angefangen}
-
-
-
-
- {section name=table_data loop=$table_data} -

{$table_data[table_data].frage}
({$table_data[table_data].anz_userfrage} Personen)

- {if $table_data[table_data].multiple == '1'} -

(Multiple Choice Frage)

- {/if} - {section name=inner loop=$table_data[table_data].inner} -
-
- -
-
-
-
{$table_data[table_data].inner[inner].prozent}%
-
-
-
- {/section} -
- {/section} -
-
-
- -
- - {section name=table_data3 loop=$table_data3} - {if $smarty.section.table_data3.rownum == 1} - - - - - - - {/if} - - - - {/section} - -

Bemerkungen

{$table_data3[table_data3].freitext}
-
-
-
- - - -{/if} diff --git a/templates/modern/admin/sitz_koord.html b/templates/modern/admin/sitz_koord.html deleted file mode 100644 index f1f0131..0000000 --- a/templates/modern/admin/sitz_koord.html +++ /dev/null @@ -1,34 +0,0 @@ -{if $action == ''} - - - - - -
- {section name=table_data1 loop=$table_data1} - {$table_data1[table_data1].nachname}, {$table_data1[table_data1].vorname}  {if $table_data1[table_data1].favorit == 0} - {/if}{if $table_data1[table_data1].favorit == 1} - {/if}
- {/section} -
- - -{/if} - -{if $action == 'del'} - - - - - - - - -{/if} \ No newline at end of file diff --git a/templates/modern/admin/sitzplatz.html b/templates/modern/admin/sitzplatz.html deleted file mode 100644 index 9537ce0..0000000 --- a/templates/modern/admin/sitzplatz.html +++ /dev/null @@ -1,936 +0,0 @@ - {if $action == ''} - - - - - - -
- {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Sitzplätze - -
-
-

- -

-
-

- -

-
-
-
-
-
-
-
- - -{/if} -{if $action == 'edit'} - - - - - - - Sitzplan - - - - - - - - - - - - - - - - - - - - - - - - - -
-   - -
-
-
Sitzplan: {$edit_value_datum}
-
-
-
-

- {if $save_error == '1'} - - - - - -
- - Achtung!
- {$save_error_text} -
-
- {else} - - - -
-
- - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ABCDEF
A1
- - -
Klavier -
- - - - - - - - - - - - - - -
K1 - - - - - - - - - - - - - - - - - - K1
K2 - - - - - - - - - - - - - - - - - - K2
K3 - - - - - - - - - - - - - - - - - - K3
K4 - - - - - - - - - - - - - - - - - - K4
K5 - - - - - - - - - - - - - - - - - - K5
K6 - - - - - - - - - - - - - - - - - - K6
K7 - - - - - - - - - - - - - - - - - - K7
K8 - - - - - - - - - - - - - - - - - - K8
K9 - - - - - - - - - - - - - - - - - - K9
- - - - - - - - - K10
K10 - - - - - - - - -
D1 - - - D1
M1 - - - - - - - - -
F1 - - - - - - - - -
E1 - - - - - - - - - - - - - - - - - - E1
E2 - - - - - - - - - - - - - - - - - - E2
E3 - - - - - - - - - - - - - - - - - - E3
E4 - - - - - - - - - - - - - - - - - - E4
E5 - - - - - - - - - -
- - - - - - - - - E5
ABCDEF
-
- - - - -
-
- - Sonntagschule - - -
-
-
- - Vorsonntagschule - - -
-
-
- Legende - - - - - -
- A1 = Altarraum
- K1-10 = Kirchenschiffreihen
- D1 = Diakon
- M1 = Mutter/Kind
- F1 = Foyer
- E1-5 Empore
-
- Sitzplatzuweisung für den aktuellen GD löschen
- Standardsitzplatz zuweisen, für alle künftigen Registrierungen
- Standardsitzplatz löschen, für alle künftigen Registrierungen
-
-
-
-
-
-
-
- {/if} -

-
-   -
- - -{/if} - diff --git a/templates/modern/admin/survey_erfassen.html b/templates/modern/admin/survey_erfassen.html deleted file mode 100644 index 2349d8f..0000000 --- a/templates/modern/admin/survey_erfassen.html +++ /dev/null @@ -1,517 +0,0 @@ -{if $action == ''} - - - - - - - - - - - - - - - - - - - - - - - - - -
- {if $umfrageerf_error == '1'} - - - - - -
- - Achtung!
- {$umfrageerf_error_text} -
-
- {/if} -
- - Zeitraum der Umfrage und Bezeichnung - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Link verfügbar ab Datum: - - -
  -   -
- Link verfügbar ab Uhrzeit: - - -
  -   -
- Link verfügbar bis Datum: - - -
  -   -
- Link verfügbar bis Uhrzeit: - - -
  -   -
- Headline der Umfrage: - - -
  -   -
- Bemerkungsfeld am Ende der Umfrage: - -
- -
-
  -   -
-
-

-

- -
-

-
-
-
- - -{/if} -{if $action == 'fragen'} - - - - - - - - - - - - - - - - - - - - - - - - - - - - {if $umfrageerf_error == '1'} - - - - - -
- - Achtung!
- {$umfrageerf_error_text} -
-
- {/if} -
- - Frage & Antworten erfassen - -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- Frage: - - -
  -   -
- Antwort: - - -
  -   -
- Mehrfachantworten erlauben: - - -
-
-

-

- Zurück - Stammdaten bearbeiten - - - -
-

-
-
-
-
-
- - Vorschau der Fragen - -
-
-
-
- -
-
-
-

{$umfrageerf_value_frage}

-
- {if $table_data2_anz > 0} - - - - - - - - - - {section name=table_data2 loop=$table_data2} - - - - - - {/section} -
SortierungAntwortmöglichkeitLöschen
{$smarty.section.table_data2.rownum}{$table_data2[table_data2].antwort}
-
- {/if} - -

- -
-
-
-
-
- - - - - - - - -{/if} \ No newline at end of file diff --git a/templates/modern/admin/survey_frame.html b/templates/modern/admin/survey_frame.html deleted file mode 100644 index 2f82c3d..0000000 --- a/templates/modern/admin/survey_frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - -Youtube Links - - - - - - - - - -<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> - -<p>To view this page correctly, you need a Web browser that supports frames.</p> - -</body> - - - \ No newline at end of file diff --git a/templates/modern/admin/termine.html b/templates/modern/admin/termine.html deleted file mode 100644 index 388bce4..0000000 --- a/templates/modern/admin/termine.html +++ /dev/null @@ -1,457 +0,0 @@ -{if $action == ''} - - - - - - - - - - - - - - - - - - - - - - -
- - {if $termine_error == '1'} - - - - - -
- - Achtung!
- {$termine_error_text} -
-
- {/if} -
- - Termine erfassen - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Gottesdienstdatum: - - -
  -   -
- Uhrzeit: - - -
  -   -
- Hinweis: - - -
  -   -
- Fellbach GD: - - -
  -   -
-
-

- -

-
-
-
-
-
-
- - Erfasste Termine - - - - - - - - - - - {section name=table_data1 loop=$table_data1} - {if $smarty.section.table_data1.rownum != ''} - - - - - - - - - {/if} - {/section} -
- lfd.Nr. - - Gottesdienstdatum - - Uhrzeit - - Anmeldungen - - Hinweis - - Edit -
- {$smarty.section.table_data1.rownum} - - {$table_data1[table_data1].datum_form} - - {$table_data1[table_data1].zeit} - - {$table_data1[table_data1].anz_ges} Personen / {$table_data1[table_data1].anz_fam} Haushalte - - {$table_data1[table_data1].hinweis} - - -   - {if $table_data1[table_data1].tm_disable == 0} - - {else} - - {/if} -
-
- -
-
-
-
- - -{/if} - -{if $action == 'mailterminupdate'} - - - - - - - -
- - Mailtext - -
-
- Zu dem Termin haben sich bereits Kandidaten eingebucht. Ihnen muss die Veränderung mitgeteilt werden.
- Sofern noch kein Test geschrieben wurde, kann der Kandidat auch wieder gelöscht werden. Dann wird die Hogrefe TAN wieder frei und die Gebühr muss nicht bezahlt werden. -
-
-
-
- - - - - - - - - - - - - - - - - - - - - -
- Absender: - - -
- Empfänger: - - {$mtupd_mailadressen_an} - -
- Empfänger BCC: - - {$mtupd_mailadressen_bcc} - -
- Betreff: - - -
- Mailtext: - - - {literal} - - {/literal} -
-

-
-
-

- -

-
-
-
-
-
-
-
- - -{/if} - - {if $action == 'mailsenden2'} - - - - - -
- - Ergebnis - -
-
- {$mail_senderg} -
-
-
-
-
-
-
- - - {/if} diff --git a/templates/modern/admin/titel.html b/templates/modern/admin/titel.html deleted file mode 100644 index 193e5f2..0000000 --- a/templates/modern/admin/titel.html +++ /dev/null @@ -1,43 +0,0 @@ - - -{$global_titel} - - - - - - - - - - - - - - - - - - - - - -
-

{$global_titel}

-
      -

Logout

-
 
- - - - - - - - - \ No newline at end of file diff --git a/templates/modern/admin/unzugeordnet.html b/templates/modern/admin/unzugeordnet.html deleted file mode 100644 index f005a91..0000000 --- a/templates/modern/admin/unzugeordnet.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - Sitzplan - - - - - - - - - - - - - - -
- - Nicht zugeordnete Personen - -
- - - - - - {section name=table_data1 loop=$table_data1} - - - - - {/section} -
NameMögliche Sitzplätze
{$table_data1[table_data1].nachname}, {$table_data1[table_data1].vorname} ({$table_data1[table_data1].Anz} {if $table_data1[table_data1].Anz == 1} Person{else} Personen{/if}) - - -
-
-
- - diff --git a/templates/modern/admin/verwaltung_frame.html b/templates/modern/admin/verwaltung_frame.html deleted file mode 100644 index 4932dc8..0000000 --- a/templates/modern/admin/verwaltung_frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - -Deputatverwaltung - - - - - - - - - -<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> - -<p>To view this page correctly, you need a Web browser that supports frames.</p> - -</body> - - - \ No newline at end of file diff --git a/templates/modern/admin/warteliste.html b/templates/modern/admin/warteliste.html deleted file mode 100644 index ee334f0..0000000 --- a/templates/modern/admin/warteliste.html +++ /dev/null @@ -1,121 +0,0 @@ -{if $action == ''} - - - - - - - Sitzplan - - - - - - - - - - - - - - -
- - Warteliste - -
- - - - - - - - {section name=table_data1 loop=$table_data1} - - - - - - - {/section} -
NameMögliche SitzplätzeEintragedatum auf WartelisteDringender Grund
{$table_data1[table_data1].nachname}, {$table_data1[table_data1].vorname} ({$table_data1[table_data1].Anz} {if $table_data1[table_data1].Anz == 1} Person{else} Personen{/if}) - - {$table_data1[table_data1].save_date}{$table_data1[table_data1].warteliste_grund}
-
-
-

- Zugeteilt aus Warteliste -

- - - - - - - - - {section name=table_data2 loop=$table_data2} - - - - - - - - {/section} -
NameEintragedatum auf WartelisteDringender GrundMailMailversand
{$table_data2[table_data2].nachname}, {$table_data2[table_data2].vorname} ({$table_data2[table_data2].reihe} / {$table_data2[table_data2].platz}){$table_data2[table_data2].save_date}{$table_data2[table_data2].warteliste_grund}{$table_data2[table_data2].mail} -

- {if $table_data2[table_data2].warteliste_confirm == ''} - - {else} - Zusage verschickt: {$table_data2[table_data2].warteliste_confirm} - {/if} -

- -
- - -{/if} diff --git a/templates/modern/admin/youtube_frame.html b/templates/modern/admin/youtube_frame.html deleted file mode 100644 index 7f4f1cf..0000000 --- a/templates/modern/admin/youtube_frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - -Youtube Links - - - - - - - - - -<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> - -<p>To view this page correctly, you need a Web browser that supports frames.</p> - -</body> - - - \ No newline at end of file diff --git a/templates_c/2c7573aca5bcffa232f4e19fd56675ada4969120_0.file.login.html.php b/templates_c/2c7573aca5bcffa232f4e19fd56675ada4969120_0.file.login.html.php index f514882..bd81ad6 100644 --- a/templates_c/2c7573aca5bcffa232f4e19fd56675ada4969120_0.file.login.html.php +++ b/templates_c/2c7573aca5bcffa232f4e19fd56675ada4969120_0.file.login.html.php @@ -1,18 +1,18 @@ _decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', - 'unifunc' => 'content_642444fb108e38_88581849', + 'unifunc' => 'content_64252255521825_50782072', 'has_nocache_code' => false, 'file_dependency' => array ( '2c7573aca5bcffa232f4e19fd56675ada4969120' => array ( 0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\login.html', - 1 => 1680098552, + 1 => 1680155023, 2 => 'file', ), ), @@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( array ( ), ),false)) { -function content_642444fb108e38_88581849 (Smarty_Internal_Template $_smarty_tpl) { +function content_64252255521825_50782072 (Smarty_Internal_Template $_smarty_tpl) { if ($_smarty_tpl->tpl_vars['action']->value == '') {?> @@ -110,19 +110,21 @@ $(document).ready(function(){ -->
-
+ Angemeldet bleiben +
+   - -
+ Passwort vergessen + + + diff --git a/templates_c/5473cec3045fdc71e0e4856581f2d1efb812d964_0.file.survey_edit.html.php b/templates_c/5473cec3045fdc71e0e4856581f2d1efb812d964_0.file.survey_edit.html.php index 0f6417d..564c726 100644 --- a/templates_c/5473cec3045fdc71e0e4856581f2d1efb812d964_0.file.survey_edit.html.php +++ b/templates_c/5473cec3045fdc71e0e4856581f2d1efb812d964_0.file.survey_edit.html.php @@ -1,18 +1,18 @@ _decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', - 'unifunc' => 'content_64240f3dba78e4_01027232', + 'unifunc' => 'content_6426704dae6892_07876676', 'has_nocache_code' => false, 'file_dependency' => array ( '5473cec3045fdc71e0e4856581f2d1efb812d964' => array ( 0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\survey_edit.html', - 1 => 1680067902, + 1 => 1680240591, 2 => 'file', ), ), @@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( array ( ), ),false)) { -function content_64240f3dba78e4_01027232 (Smarty_Internal_Template $_smarty_tpl) { +function content_6426704dae6892_07876676 (Smarty_Internal_Template $_smarty_tpl) { if ($_smarty_tpl->tpl_vars['action']->value == '') {?> @@ -79,11 +79,11 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
-
Nr
-
Überschrift
-
Startdatum
-
Enddatum
-
Bearbeiten
+
Nr
+
Überschrift
+
Startdatum
+
Enddatum
+
Bearbeiten
tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop)); @@ -96,7 +96,7 @@ $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__sec
tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null);?>
-
tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['headline'];?> +
tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['headline'];?>
tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['datum_von'];?> -
@@ -107,7 +107,7 @@ $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__sec
tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['datum_bis'];?>
-
+
+ + + + + + + + + src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"> +> + + + + + src="js/all.js" crossorigin="anonymous"> +> + + + src="../jquery/jquery-3.4.1.min.js"> +> + + + src="../jquery/jquery-ui.js"> +> + + + type="text/javascript" src="../js/file_upload/vpb_uploader.js"> +> + + type="text/javascript">$(document).ready(function() + { + // Call the main function + new vpb_multiple_file_uploader + ({ + vpb_form_id: "form_id", // Form ID + autoSubmit: true, + vpb_server_url: "../controller/admin_notenupload.php" + }); + }); + +> + + + type="text/javascript"> + + function keysave(ele) { + if(event.key === 'Enter') { + rollesave(); + } + } + + +> + + + + + + +> + $(function(){ + // im Navbar muss der toggle in der Callbackfunktion definiert werden. Sonst findet jquery getelementbyID nicht + $("#navtop").load('navtop.php', null, function(){$.getScript('js/scripts.js');}); + $("#navleft").load("nav.php"); + $("#footer").load("footer.php"); + }); + +> + +
+ + +
+
+
+
+
+
+ + Notenupload +
+
+
+
+
Titel:
+
+ +
+
+
+
Verlag:
+
+ +
+
+
+
Anzahl Lizenzen:
+
+ +
+
+
+
Streamlizenz vorhanden:
+
+ +
+
+ +
+ +
+ + + + + + + + + + + +
DateiStatusGrößeAktion
+ + +
+

+ +

+
+
+
+
+ + +
+ + +
+
+ + +_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', - 'unifunc' => 'content_64242254290e23_08078591', + 'unifunc' => 'content_642587fb6e3f57_59937716', 'has_nocache_code' => false, 'file_dependency' => array ( '61084ee676a3c91a4b41c7e50fa536cf9cd1daac' => array ( 0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\index.html', - 1 => 1680089585, + 1 => 1680181242, 2 => 'file', ), ), @@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( array ( ), ),false)) { -function content_64242254290e23_08078591 (Smarty_Internal_Template $_smarty_tpl) { +function content_642587fb6e3f57_59937716 (Smarty_Internal_Template $_smarty_tpl) { ?> diff --git a/templates_c/73fc7d922bf5deb481c3ad13a23515c6f17bc0b3_0.file.test2.html.php b/templates_c/73fc7d922bf5deb481c3ad13a23515c6f17bc0b3_0.file.test2.html.php new file mode 100644 index 0000000..c3d06ae --- /dev/null +++ b/templates_c/73fc7d922bf5deb481c3ad13a23515c6f17bc0b3_0.file.test2.html.php @@ -0,0 +1,191 @@ +_decodeProperties($_smarty_tpl, array ( + 'version' => '3.1.39', + 'unifunc' => 'content_6426af9e1123f2_00074654', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '73fc7d922bf5deb481c3ad13a23515c6f17bc0b3' => + array ( + 0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\test2.html', + 1 => 1680256913, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6426af9e1123f2_00074654 (Smarty_Internal_Template $_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + + + + + + src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"> +> + + + + + src="js/all.js" crossorigin="anonymous"> +> + + + src="../jquery/jquery-3.4.1.min.js"> +> + + + src="../jquery/jquery-ui.js"> +> + + + type="text/javascript" src="../js/file_upload/vpb_uploader.js"> +> + + type="text/javascript">$(document).ready(function() + { + // Call the main function + new vpb_multiple_file_uploader + ({ + vpb_form_id: "form_id", // Form ID + autoSubmit: true, + vpb_server_url: "../controller/admin_notenupload.php" + }); + }); + +> + + + type="text/javascript"> + + function keysave(ele) { + if(event.key === 'Enter') { + rollesave(); + } + } + + +> + + + + + + +> + $(function(){ + // im Navbar muss der toggle in der Callbackfunktion definiert werden. Sonst findet jquery getelementbyID nicht + $("#navtop").load('navtop.php', null, function(){$.getScript('js/scripts.js');}); + $("#navleft").load("nav.php"); + $("#footer").load("footer.php"); + }); + +> + +
+ + +
+
+
+
+
+
+ + Notenupload +
+
+
+
+
Titel:
+
+ +
+
+
+
Verlag:
+
+ +
+
+
+
Anzahl Lizenzen:
+
+ +
+
+
+
Streamlizenz vorhanden:
+
+ +
+
+ +
+ +
+ + + + + + + + + + + +
DateiStatusGrößeAktion
+ + +
+

+ +

+
+
+
+
+ + +
+ + +
+
+ + +_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', - 'unifunc' => 'content_6423d1c386cc23_65117232', + 'unifunc' => 'content_64258913c8e6a4_46849023', 'has_nocache_code' => false, 'file_dependency' => array ( '81c00a8c5d0bbd7d154ad2d8777ef2d3d8c3a749' => array ( 0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\nav.html', - 1 => 1680067901, + 1 => 1680181522, 2 => 'file', ), ), @@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( array ( ), ),false)) { -function content_6423d1c386cc23_65117232 (Smarty_Internal_Template $_smarty_tpl) { +function content_64258913c8e6a4_46849023 (Smarty_Internal_Template $_smarty_tpl) { ?>