0) { if (!isset($_POST["Sugar"]) && $_POST["Sugar"] != "Spice") { exit(0); } } if (isset($_GET["pt"]) && $_GET["pt"]=="webadmin") { include("../startwebadmin.pinc"); } else { include("../startweb.pinc"); } $vars = array( fr("i", "bcTemplatesId", -1), fr("i", "bcCardsId", -1), fr("c", "SessionId", session_id()), fr("c", "currentDesign"), fr("c", "CompanyName"), fr("c", "YourName"), fr("c", "YourTitle"), fr("c", "pt"), fr("f", "sdpi", 109), fr("f", "pdpi", 300), fr("f", "sres", $sdpi/2.54), fr("f", "pres", $pdpi/2.54), fr("f", "zoom", 1), fr("f", "res", $sres*$zoom), fr("f", "cardWidth", 9), fr("f", "cardHeight", 5.5), fr("f", "ptToPx", (2.54/72)*$sres), "zoomLevels", "design", ); $zoomLevels = array(0.25, 0.5, 0.75, 1, 1.25, 1.5, 2, 3, 4); $design = $pt=="webadmin" ? 1 : 0; /////////////////////////////////////// /// Record user's information /// /////////////////////////////////////// /// Record if there's a currentDesign if ($currentDesign) { assert(!$design); $userUpds = stripGpcKeys('/^previewDetails_/', $_POST, array("CompanyName", "YourName", "Email", "EmailAddress", "PhoneNumber", "FaxNumber", "MobileNumber", "Address")); $email = isset($userUpds["Email"]) ? $userUpds["Email"] : (isset($userUpds["EmailAddress"]) ? $userUpds["EmailAddress"] : ""); $userUpds = array_merge($userUpds, array( "bcCardsId" => -1, "BrowserType" => $_SERVER["HTTP_USER_AGENT"], "SubmittedDate" => time(), "SessionId" => session_id(), "Referer" => $_SESSION["Referer"], "ExcludeFromBulkEmail" => true, "BusCard" => $currentDesign, "Email" => $email, )); unset($userUpds["EmailAddress"]); if (!isset($_SESSION["bcCardsId"])) { $bcCardsId = db_replace('bcCards', $userUpds, 'bcCardsId'); $_SESSION["bcCardsId"] = $bcCardsId; } else { $userUpds["bcCardsId"] = $_SESSION["bcCardsId"]; $bcCardsId = db_replace("bcCards", $userUpds, "bcCardsId"); } /// Email Message /// $msg = '

Someone is using the design tool.

'; $adminButtons = array( array("link" => 'http://www.apapublishing.com.au/34722admin/buscards/?s_keywords='.$bcCardsId, "text" => 'Preview Design & Details'), ); sendAdminEmail(array( "to" => $ADMINEMAILS["tppdesign"], "subject" => "User Log: Design in progress...", "message" => $msg, "onBehalfOf" => array($YourName, $email), "buttons" => $adminButtons, )); } $pg_title = "Design Your Business Card"; function pg_head() { global $design; if ($design) {?> onloads[onloads.length] = function() { busCardOldValue = gbid("saveThis").innerHTML; } '; } $template = sqlr("select * from bcTemplates where bcTemplatesId = ".$bcTemplatesId); $bc = sqlr("select bcCardsId, Email as EmailAddress, bcCards.* from bcCards where bcCardsId = ".$bcCardsId); $trackingNumber = $bc->gcv("bcCardsId"); function colorMenu($handler) { $red = array(array("33", "66", "ff"),array("00", "99", "cc")); $greenInts = array("00","33","66","99","cc","ff"); $blueInts = array("00","33","66","99","cc","ff"); $specialColor = array( "000000" => "Black", "ffffff" => "White", "ff0000" => "Red", "009900" => "Green", "0000ff" => "Blue", "ffcccc" => "Pink", "990099" => "Purple", "ff9900" => "Orange", "ffff00" => "Yellow", ); ?>
" title="" onclick="">
" onclick="">
0 && $SessionId!=$bc->gcv("SessionId") && $pt!="webadmin") { function pg_body() { ?>Session incorrect.gcv("TemplateData"); if (!$design) { $i = 0; $str = ""; if ($tm) { while ( $str = matchSingle('/\$([a-zA-Z]*)/', $tm) ) { $curVal = ""; if ($bc->hasField($str)) { $curVal = htmlspecialchars($bc->gcv($str)); } $tm = preg_replace('#\$'.$str.'#', ($curVal ? $curVal : "<".$str.">"), $tm); if ($i++ > 500) { echo "Error: Too many replaces"; break; } } } } ?>
| |
0) { $card = sqlr("select BusCard, SessionId from bcCards where bcCardsId = ".$bcCardsId); $sessionId = $card->gcv("SessionId"); echo $card->gcv("BusCard"); } else if ($bcTemplatesId==-1) { ?>
Font
Size
Decoration
Colour
Text Alignment
Line Height
Arrange
Duplicate
Delete
Arial
Courier
Times
Verdana
Give exact name of font . . .
6pt
8pt
10pt
12pt
16pt
20pt
24pt
28pt
34pt
40pt
Specify . . .
Italic
Bold
Small Caps
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
Left
Center
Right
Bring to Front
Bring Forward
Send Backward
Send To Back
Floating
In text-flow
Auto
Single Space
1.25 Space
1.5 Space
1.75 Space
Double Space
Colour
Image
Generate
<% } } */?>
<% } } */?>
More...
None
Gradient:      to     
Red
height) { height = 32*height/width; width = 32; } else { width = 32*width/height; height = 32; } }* / %><% } } */?>
More...
0) { ?>
$v) { $v = stripslashes($v); if (preg_match('/^previewDetails_/', $k)) { nl(); ?>