From e5c3005186b3d0944c5deca68f806d6414108afd Mon Sep 17 00:00:00 2001 From: Chamod Shehanka Date: Tue, 22 May 2018 22:40:58 +0530 Subject: [PATCH] MIT Liecense --- Bussiness-Card-Maker/cardController.php | 2 +- Bussiness-Card-Maker/index.php | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/Bussiness-Card-Maker/cardController.php b/Bussiness-Card-Maker/cardController.php index 6b6fa3a..aee7aef 100644 --- a/Bussiness-Card-Maker/cardController.php +++ b/Bussiness-Card-Maker/cardController.php @@ -23,7 +23,7 @@ public function show_info($name,$email,$web){ $im = @imagecreate(300, 150); //creates an image $background_color = imagecolorallocate($im, 255,255,255); //sets image background color - $y=15; //vertical position of text + $y = 15; //vertical position of text foreach($arrText as $arr){ $textclr=imagecolorallocate($im,0,0,0); //sets text color imagestring($im,5,15,$y,trim($arr),$textclr); //create the text string for image,added trim() to remove unwanted chars diff --git a/Bussiness-Card-Maker/index.php b/Bussiness-Card-Maker/index.php index 7d98fbc..c07a87b 100644 --- a/Bussiness-Card-Maker/index.php +++ b/Bussiness-Card-Maker/index.php @@ -8,24 +8,6 @@ * MIT License Copyright (c) [2018] [Chamod Shehanka] - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Business Card Generator"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. */ include_once ('cardController.php');