Create a Matrix
To start a new design, press |
Press CREATE (Continue to press CREATE until you are pleased with the results) | ||
| Enter names in the boxes on the left (no spaces) and enter any optional caption text (spaces allowed) | Press PREVIEW |
build_start("Custom T-shirts and Drinking Mugs - Design Online - Personalized Gifts from Family Matrix","Design Personalized Gift for Birthdays, Graduations, Family Reunions, New Baby - Free Shipping" ,
"apparel,awesome,baby gift,birthday,birthday gift,clothing,coffee mugs,cool t shirts,cool t-shirts,custom coffee mugs,custom logo printed shirt,custom made shirts,custom made t shirts,custom mugs,custom printed shirts,
custom printed t shirt,custom printed t shirts,custom printed tee shirts,custom printing shirt t,custom screen printing,custom shirt,custom shirts,custom sweatshirt,custom t shirt,custom t shirt printing,custom t shirt screen printing,
custom t shirts,custom tee shirts,design,design your own,designer,designs,family memories,family reunion,family reunions,family reunions gift,famiy matrix,free,free shipping,funny tee shirts,funny tees,funny tshirts,gramdparent gift,
graphic tees,high school graduation,high school graduation gift,long sleeve t-shirt,long-sleeve,mothers day,mothers day gift,mugs,new baby,parent gift,personalized,personalized gifts,printed,printed t shirt,printed t shirts,
printed tshirt,screen printed t shirt,screen printed t shirts,screen printed t-shirts,screen printing,screen printing shirt,screen printing t shirts,screen printing tee shirt,screen-printing,shirt,shirt design,shirt printing,
shirts,short sleeve t-shirt,shrits,silk screen printing,silk screen t shirts,silk screen tee shirts,snorg tees,t shirt,t shirt printers,t shirt printing,t shirt screen printing,t shirts,tee,tee shirt printers,tee shirts,tees,
tee-shirt,teeshirts,tshirt,t-shirt,tshirts,t-shirts,unique,unique,unique design,unique gift,unique gifts,vintage,wholesale screen printing,wholesale t-shirts");
$formarray["words1"] = General::alpha_clean($formarray["words1"]);
$formarray["words2"] = General::alpha_clean($formarray["words2"]);
$formarray["words3"] = General::alpha_clean($formarray["words3"]);
$formarray["words4"] = General::alpha_clean($formarray["words4"]);
if($formarray["method"] != "") {
switch($formarray["method"]) {
case "clear":
unset($formarray["words1"]);
unset($formarray["words2"]);
unset($formarray["words3"]);
unset($formarray["words4"]);
unset($formarray["matrix_title"]);
unset($_SESSION["sess_latest_xml"]);
unset($_SESSION["sess_box1"]);
unset($_SESSION["sess_box2"]);
unset($_SESSION["sess_box3"]);
unset($_SESSION["sess_box4"]);
unset($_SESSION["sess_matrix_title"]);
unset($_SESSION["sess_title_color"]);
unlink(SITE_PATH."tmp/".session_id().".png");
unlink(SITE_PATH."tmp/".session_id()."_thumbnail.png");
$generate_matrix = false;
break;
case "generate":
$formarray["words"][1] = $formarray["words1"];
$formarray["words"][2] = $formarray["words2"];
$formarray["words"][3] = $formarray["words3"];
$formarray["words"][4] = $formarray["words4"];
$generate_matrix = true;
break;
}
} else {
if ($formarray["uid"] != "") {
// they clicked one one to see it...
// make sure they own it then draw it here!
$saved_matrix = $page->db->query("select * from saved_matrixes where uid='".$formarray["uid"]."' limit 1");
if (count($saved_matrix) == 1 && ($saved_matrix[0]["user_uid"] == $_SESSION["sess_uid"] || $saved_matrix[0]["user_uid"] == session_id())) {
$x = $saved_matrix[0];
$formarray["words1"] = $x["box1"];
$formarray["words2"] = $x["box2"];
$formarray["words3"] = $x["box3"];
$formarray["words4"] = $x["box4"];
$formarray["words"][1] = $formarray["words1"];
$formarray["words"][2] = $formarray["words2"];
$formarray["words"][3] = $formarray["words3"];
$formarray["words"][4] = $formarray["words4"];
$_SESSION["sess_box1"] = $formarray["words1"];
$_SESSION["sess_box2"] = $formarray["words2"];
$_SESSION["sess_box3"] = $formarray["words3"];
$_SESSION["sess_box4"] = $formarray["words4"];
$_SESSION["sess_matrix_title"] = $x["matrix_title"];
$_SESSION["sess_title_color"] = $x["title_color"];
$formarray["matrix_title"] = $x["matrix_title"];
$formarray["title_color"] = $x["title_color"];
$_SESSION["sess_latest_xml"] = $x["xml"];
require(SITE_PATH.'/Classes/MatrixClasses/php_crossword_output.class.php');
$success = true;
}
} else {
if (isset($_SESSION["sess_latest_xml"])) {
// they HAD a design and navigated away and are back....
$formarray["words1"] = $_SESSION["sess_box1"];
$formarray["words2"] = $_SESSION["sess_box2"];
$formarray["words3"] = $_SESSION["sess_box3"];
$formarray["words4"] = $_SESSION["sess_box4"];
$formarray["matrix_title"] = $_SESSION["sess_matrix_title"];
$formarray["title_color"] = $_SESSION["sess_title_color"];
$formarray["words"][1] = $formarray["words1"];
$formarray["words"][2] = $formarray["words2"];
$formarray["words"][3] = $formarray["words3"];
$formarray["words"][4] = $formarray["words4"];
require(SITE_PATH.'/Classes/MatrixClasses/php_crossword_output.class.php');
$success = true;
} else {
// they HAD no design show them the default
$_SESSION["sess_latest_xml"] = "
To start a new design, press |
Press CREATE (Continue to press CREATE until you are pleased with the results) | ||
| Enter names in the boxes on the left (no spaces) and enter any optional caption text (spaces allowed) | Press PREVIEW |