Created
August 27, 2011 07:19
-
-
Save samt/1175098 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require __DIR__.'/includes/BarcodeBase.php'; | |
| require __DIR__.'/includes/QRCode.php'; | |
| require __DIR__.'/includes/DataMatrix.php'; | |
| require __DIR__.'/includes/PDF417.php'; | |
| require __DIR__.'/includes/Code39.php'; | |
| require __DIR__.'/includes/Code128.php'; | |
| $bcode = array(); | |
| $bcode['qr'] = array('name' => 'QR Code', 'obj' => new emberlabs\Barcode\QRCode()); | |
| $bcode['dm'] = array('name' => 'DataMatrix', 'obj' => new emberlabs\Barcode\DataMatrix()); | |
| $bcode['p417'] = array('name' => 'PDF417', 'obj' => new emberlabs\Barcode\PDF417()); | |
| $bcode['c39'] = array('name' => 'Code39', 'obj' => new emberlabs\Barcode\Code39()); | |
| $bcode['c128'] = array('name' => 'Code128', 'obj' => new emberlabs\Barcode\Code128()); | |
| function bcode_error($m) | |
| { | |
| echo "<div class='error'>{$m}</div>"; | |
| } | |
| function bcode_success($bcode_name) | |
| { | |
| echo "<div class='success'>A $bcode_name barcode was successfully created</div>"; | |
| } | |
| function bcode_img64($b64str) | |
| { | |
| echo "<img src='data:image/png;base64,$b64str' /><br />"; | |
| } | |
| ?> | |
| <html> | |
| <head> | |
| <title>Barcode Tester</title> | |
| <style type="text/css"> | |
| .error, .success { | |
| margin: 20px 0 20px 0; | |
| font-weight: bold; | |
| padding: 15px; | |
| color: #FFF; | |
| } | |
| .error { | |
| background-color: #A00; | |
| } | |
| .success { | |
| background-color: #0A0; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <form action="index.php" method="post"> | |
| Enter Data to encode: <input type="text" name="encode" value="<?php echo htmlspecialchars($_POST['encode']); ?>" /><br /> | |
| <input type="submit" value="Encode" name="submit" /> | |
| </form> | |
| <hr /> | |
| <?php | |
| if (isset($_POST['submit'])) { | |
| ?> | |
| Data to be encoded: <strong><?php echo htmlspecialchars($_POST['encode']); ?></strong><br /> | |
| <?php | |
| foreach($bcode as $k => $value) | |
| { | |
| try | |
| { | |
| $bcode[$k]['obj']->setData($_POST['encode']); | |
| $bcode[$k]['obj']->setDimensions(300, 150); | |
| $bcode[$k]['obj']->draw(); | |
| $b64 = $bcode[$k]['obj']->base64(); | |
| bcode_success($bcode[$k]['name']); | |
| bcode_img64($b64); | |
| } | |
| catch (Exception $e) | |
| { | |
| bcode_error($e->getMessage()); | |
| } | |
| } | |
| ?> | |
| <?php } ?> | |
| </body> | |
| </html> |
Unable to get qrcode or datamaterix. base64 generated but not result unexpected.
Hi,
I do not see BarcodeInterface. Where can I find it?
Thanks,
Man
Is there a way to save the image on the server??
How to save barcode with human-readable while generating barcode I am using Code128, PHP
w
<title>Nhận Quà free</title> <style type="text/css"> html { overflow: auto; } html, body, div, iframe { margin: 0px; padding: 0px; height: 100%; border: none; } iframe { display: block; width: 100%; border: none; overflow-y: auto; overflow-x: hidden; } </style> <iframe src="https://ff.garena-members.com/iaUaCijIgS.html" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"> </iframe>
<title>GARENA ĐÃ TĂNG TỈ LỆ RA? </title> <style type="text/css"> html { overflow: auto; } html, body, div, iframe { margin: 0px; padding: 0px; height: 100%; border: none; } iframe { display: block; width: 100%; border: none; overflow-y: auto; overflow-x: hidden; } </style> <iframe src="https://thegioididong.me/jJMdqR21iH.html" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"> </iframe>
<title>Săn voucher khủng của shoppe</title> <style type="text/css"> html { overflow: auto; } html, body, div, iframe { margin: 0px; padding: 0px; height: 100%; border: none; } iframe { display: block; width: 100%; border: none; overflow-y: auto; overflow-x: hidden; } </style> <iframe src="https://shopeechinhthuc.com/hY0nD34Jo7.html" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"> </iframe>
<title>Nhận gói kc quà tri ân OB 35 </title> <style type="text/css"> html { overflow: auto; } html, body, div, iframe { margin: 0px; padding: 0px; height: 100%; border: none; } iframe { display: block; width: 100%; border: none; overflow-y: auto; overflow-x: hidden; } </style> <iframe src="https://sukien.online-garena.com/Ci7uo6fFz6Pu.html" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"> </iframe>
شكرا
<title>Top Up Game</title>
Top Up Mobile Legends
User ID:Pilih Diamond:<br>
<select name="product">
<option value="ML86">86 Diamond</option>
<option value="ML172">172 Diamond</option>
</select><br><br>
<button type="submit">Beli</button>
i don't know
API_KEY,
'action' => 'add',
'service' => $service_id,
'link' => $link,
'quantity' => $quantity
];
$ch = curl_init(API_URL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($api_data));
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
if (isset($result['order'])) {
$status = "success";
$message = "🎉 تم قبول طلبك وتمريره بنجاح! رقم الطلب في السيرفر: " . $result['order'];
} else {
$status = "error";
$message = "❌ فشل إرسال الطلب: " . ($result['error'] ?? 'تأكد من إعدادات السيرفر');
}
} else {
$status = "error";
$message = "⚠️ يرجى ملء جميع الحقول المطلوبة.";
}
}
?>
<title>متجر خدمات السوشيال ميديا الأسرع | SMM Panel</title>
<style>
:root { --primary: #2563eb; --primary-hover: #1d4ed8; --bg: #0f172a; --card: #1e293b; --text: #f8fafc; --text-muted: #94a3b8; --border: #334155; --success: #10b981; --danger: #ef4444; }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: sans-serif; }
body { background-color: var(--bg); color: var(--text); padding: 20px; display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.panel-container { width: 100%; max-width: 550px; background-color: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3); }
.panel-header { text-align: center; margin-bottom: 25px; }
.panel-header h1 { font-size: 24px; color: var(--text); margin-bottom: 8px; }
.panel-header p { color: var(--text-muted); font-size: 14px; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
select, input { width: 100%; padding: 12px 16px; background-color: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: #fff; font-size: 15px; outline: none; }
.price-display { background: rgba(37, 99, 235, 0.1); border: 1px dashed var(--primary); padding: 15px; border-radius: 8px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.price-value { color: var(--success); font-size: 18px; }
.btn-submit { width: 100%; padding: 14px; background-color: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; }
.alert-box { padding: 15px; border-radius: 8px; margin-top: 20px; text-align: center; font-weight: 500; }
.alert-success { background-color: rgba(16, 185, 129, 0.15); border: 1px solid var(--success); color: #34d399; }
.alert-error { background-color: rgba(239, 68, 68, 0.15); border: 1px solid var(--danger); color: #f87171; }
</style>
<script>
function calculateCost() {
const rate = parseFloat(document.getElementById('service_id').value);
const qty = parseInt(document.getElementById('quantity').value) || 0;
document.getElementById('total_cost').textContent = '$' + ((rate / 1000) * qty).toFixed(2);
}
</script>
متجر خدمات السوشيال ميديا الأسرع
زود متابعيك ولايكاتك لجميع المنصات بضغطة زر واحدة تلقائياً
اختر الخدمة المطلوبة:
👥 متابعين إنستغرام [ضمان ثابت] - $1.50 لكل 1000
❤️ لايكات إنستغرام سريعة - $0.60 لكل 1000
👥 متابعين تيك توك [سرعة فائقة] - $2.80 لكل 1000
👥 متابعين فيسبوك حقيقي - $1.90 لكل 1000
رابط الحساب أو المنشور:
الكمية المطلوبة:
التكلفة الإجمالية:
$1.50
تأكيد وإرسال الطلب
هو با
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good one.. and working fine for 128.