├── LICENSE ├── README.md ├── accounts_users.php ├── accounts_users_delete.php ├── accounts_users_download.php ├── accounts_users_export.php ├── accounts_users_insert.php ├── block_ip_address.php ├── block_ip_address_block.php ├── block_ip_address_delete.php ├── block_ip_address_export.php ├── class_cn.php ├── contact_for_users.php ├── contact_for_users_delete.php ├── contact_for_users_export.php ├── control_panel.php ├── control_panel.png ├── control_panel0.png ├── css ├── accounts_users.css ├── block_ip_address.css ├── control.css ├── delete_user.css ├── details_users.css ├── index.css ├── storage_user.css └── transfer_archives.css ├── delete_user.php ├── delete_user_delete.php ├── details_users.php ├── details_users_delete.php ├── details_users_download.php ├── details_users_export.php ├── fpdf ├── FAQ.htm ├── changelog.htm ├── doc │ ├── __construct.htm │ ├── acceptpagebreak.htm │ ├── addfont.htm │ ├── addlink.htm │ ├── addpage.htm │ ├── aliasnbpages.htm │ ├── cell.htm │ ├── close.htm │ ├── error.htm │ ├── footer.htm │ ├── getpageheight.htm │ ├── getpagewidth.htm │ ├── getstringwidth.htm │ ├── getx.htm │ ├── gety.htm │ ├── header.htm │ ├── image.htm │ ├── index.htm │ ├── line.htm │ ├── link.htm │ ├── ln.htm │ ├── multicell.htm │ ├── output.htm │ ├── pageno.htm │ ├── rect.htm │ ├── setauthor.htm │ ├── setautopagebreak.htm │ ├── setcompression.htm │ ├── setcreator.htm │ ├── setdisplaymode.htm │ ├── setdrawcolor.htm │ ├── setfillcolor.htm │ ├── setfont.htm │ ├── setfontsize.htm │ ├── setkeywords.htm │ ├── setleftmargin.htm │ ├── setlinewidth.htm │ ├── setlink.htm │ ├── setmargins.htm │ ├── setrightmargin.htm │ ├── setsubject.htm │ ├── settextcolor.htm │ ├── settitle.htm │ ├── settopmargin.htm │ ├── setx.htm │ ├── setxy.htm │ ├── sety.htm │ ├── text.htm │ └── write.htm ├── font │ ├── courier.php │ ├── courierb.php │ ├── courierbi.php │ ├── courieri.php │ ├── helvetica.php │ ├── helveticab.php │ ├── helveticabi.php │ ├── helveticai.php │ ├── symbol.php │ ├── times.php │ ├── timesb.php │ ├── timesbi.php │ ├── timesi.php │ └── zapfdingbats.php ├── fpdf.css ├── fpdf.php ├── install.txt ├── license.txt ├── makefont │ ├── cp1250.map │ ├── cp1251.map │ ├── cp1252.map │ ├── cp1253.map │ ├── cp1254.map │ ├── cp1255.map │ ├── cp1257.map │ ├── cp1258.map │ ├── cp874.map │ ├── iso-8859-1.map │ ├── iso-8859-11.map │ ├── iso-8859-15.map │ ├── iso-8859-16.map │ ├── iso-8859-2.map │ ├── iso-8859-4.map │ ├── iso-8859-5.map │ ├── iso-8859-7.map │ ├── iso-8859-9.map │ ├── koi8-r.map │ ├── koi8-u.map │ ├── makefont.php │ └── ttfparser.php └── tutorial │ ├── 20k_c1.txt │ ├── 20k_c2.txt │ ├── calligra.php │ ├── calligra.ttf │ ├── calligra.z │ ├── countries.txt │ ├── index.htm │ ├── logo.png │ ├── makefont.php │ ├── tuto1.htm │ ├── tuto1.php │ ├── tuto2.htm │ ├── tuto2.php │ ├── tuto3.htm │ ├── tuto3.php │ ├── tuto4.htm │ ├── tuto4.php │ ├── tuto5.htm │ ├── tuto5.php │ ├── tuto6.htm │ ├── tuto6.php │ ├── tuto7.htm │ └── tuto7.php ├── function_data.php ├── index.php ├── logout.php ├── photos ├── database-tree.ico ├── database.ico ├── makbox.png ├── network.png ├── settings.png └── users.ico ├── server_messages.php ├── server_messages_export.php ├── storage_user.php ├── storage_user_storage.php ├── transfer_archives.php ├── transfer_archives_delete.php ├── transfer_archives_download.php ├── transfer_archives_export.php ├── transfer_archives_hidden.php ├── transfer_archives_hidden_delete.php ├── transfer_archives_hidden_download.php └── transfer_archives_hidden_export.php /README.md: -------------------------------------------------------------------------------- 1 | # control_panel 2 | Makbox control panel for the cloud manager 3 | 4 | 1) Insert the folder control_panel into your cloud folder
5 | 2) open a browser and type https:// or http:// localhost/control_panel
6 | 3) Connect to the dashboard and manage your cloud data
7 | 4) for connect to dashboard use: password:makbox
8 | 9 | ![Control_panel0](control_panel0.png)
10 | 11 | ![Control_panel](control_panel.png) 12 | -------------------------------------------------------------------------------- /accounts_users_delete.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | if(isset($_POST['delete_users'])) 27 | { 28 | 29 | 30 | require('class_cn.php'); 31 | 32 | $obj = new in; 33 | 34 | $host = $obj->connect[0]; 35 | $user = $obj->connect[1]; 36 | $pass = $obj->connect[2]; 37 | $db = $obj->connect[3]; 38 | 39 | $conn = new mysqli ($host,$user,$pass,$db); 40 | 41 | if($conn->connect_error) 42 | { 43 | die("Database connection failed: " .$conn->connect_error); 44 | } 45 | 46 | else 47 | { 48 | $idarr = $_POST['checked_id']; 49 | foreach($idarr as $id) 50 | { 51 | $query1="delete from mlogin where id='$id'"; 52 | $result1=$conn->query($query1); 53 | 54 | } 55 | $_SESSION['success_msg'] = 'File have been deleted successfully.'; 56 | header("Location: accounts_users.php"); 57 | 58 | 59 | } // kleisimo ths else gia ta dedomena 60 | 61 | $conn->close(); 62 | 63 | }//telos ths if gia ton elenxo me thn issset 64 | 65 | ?> 66 | -------------------------------------------------------------------------------- /accounts_users_download.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | if(isset($_GET['id'])) 26 | { 27 | 28 | $id = intval($_GET['id']); 29 | 30 | 31 | if($id <= 0) 32 | { 33 | die('The ID is invalid!'); 34 | } 35 | 36 | 37 | else 38 | { 39 | 40 | require('class_cn.php'); 41 | 42 | $obj = new in; 43 | 44 | $host = $obj->connect[0]; 45 | $user = $obj->connect[1]; 46 | $pass = $obj->connect[2]; 47 | $db = $obj->connect[3]; 48 | 49 | $conn = new mysqli($host,$user,$pass,$db); 50 | 51 | if($conn->connect_error) 52 | { 53 | die ("Cannot connect to server " .$conn->connect_error); 54 | } 55 | 56 | else 57 | { 58 | 59 | $sql= "select created,username,password,email from login where id='$id'"; 60 | $result = $conn->query($sql); 61 | 62 | if($result) 63 | { 64 | 65 | $row = $result->fetch_assoc(); 66 | 67 | header("Content-Type: text/plain"); 68 | header('Content-Disposition:attachment;filename="' .$row['username'] .'"'); 69 | 70 | echo "Account for " .$row['username'] ." user " ."\n"; 71 | echo "____________________"; 72 | echo" 73 | Created: {$row['created']} 74 | Username: {$row['username']} 75 | Password: {$row['password']} 76 | Email: {$row['email']} 77 | "; 78 | 79 | 80 | } // kleisimo ths if 81 | 82 | 83 | 84 | else 85 | { 86 | echo 'Error! No data exists with that ID.'; 87 | } 88 | 89 | }//kleisimo ths else gia ta dedoimena 90 | 91 | }// kleisimo ths megalhs else 92 | 93 | $conn->close(); 94 | 95 | 96 | } // kleisimo ths if isset 97 | 98 | 99 | 100 | ?> 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /accounts_users_export.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | 27 | require('class_cn.php'); 28 | 29 | $obj = new in; 30 | 31 | $host = $obj->connect[0]; 32 | $user = $obj->connect[1]; 33 | $pass = $obj->connect[2]; 34 | $db = $obj->connect[3]; 35 | 36 | $conn = new mysqli($host,$user,$pass,$db); 37 | 38 | if($conn->connect_error) 39 | { 40 | die ("Cannot connect to server " .$conn->connect_error); 41 | } 42 | 43 | 44 | else 45 | { 46 | 47 | 48 | require('fpdf/fpdf.php'); 49 | $pdf=new FPDF(); 50 | $pdf->AddPage(); 51 | $pdf->SetFont('Arial','B',10); 52 | $pdf->Ln(); 53 | $pdf->Ln(); 54 | $pdf->SetFont('times','B',10); 55 | $pdf->SetFillColor(230,230,230); // edw kathorizeis to xrwma 56 | $pdf->Cell(196,12,"All accounts for users",1,0,'C',TRUE); 57 | $pdf->Ln(); // afhnei mia grammh keno kai paei apo katw 58 | $pdf->Cell(49,15,"Created",1,0,'C',TRUE); // edw vazeis platos,upsos,onoma,border w,0h,kai true gia na parei to xrwma 59 | $pdf->Cell(30,15,"Username",1,0,'C',TRUE); 60 | $pdf->Cell(68,15,"Password",1,0,'C',TRUE); 61 | $pdf->Cell(49,15,"Email",1,0,'C',TRUE); 62 | $pdf->Ln(); 63 | 64 | 65 | $sql = "select created,username,password,email from login"; 66 | $result = $conn->query($sql); 67 | 68 | while($row=$result->fetch_assoc()) 69 | { 70 | $created = $row['created']; 71 | $username = $row['username']; 72 | $password = $row['password']; 73 | $email = $row['email']; 74 | 75 | $pdf->Cell(49,10,$created,1); 76 | $pdf->Cell(30,10,$username,1); 77 | $pdf->Cell(68,10,$password,1); 78 | $pdf->MultiCell(49,10,$email,1,'L',false); // edw emfanizei olo to keimeno kanwntas ansiplwsh keimenou 79 | 80 | } 81 | 82 | $pdf->Output(); 83 | 84 | 85 | 86 | 87 | /* 88 | duo eidh eksodou pdf 89 | 90 | $pdf->Output('D','messages.pdf'); //eksodos kateutheian me onoma 91 | 92 | $pdf->Output(); // edw anoigo vlewpw kai meta katevazw kai allazw onoma 93 | 94 | */ 95 | 96 | 97 | } // kleisimo ths else gia ta dedomena 98 | 99 | $conn->close(); 100 | 101 | 102 | ?> 103 | -------------------------------------------------------------------------------- /accounts_users_insert.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | session_start(); 27 | 28 | if(isset($_POST['insert'])) 29 | { 30 | 31 | 32 | require('class_cn.php'); 33 | 34 | $obj = new in; 35 | 36 | $host = $obj->connect[0]; 37 | $user = $obj->connect[1]; 38 | $pass = $obj->connect[2]; 39 | $db = $obj->connect[3]; 40 | 41 | 42 | $conn = new mysqli($host,$user,$pass,$db); 43 | 44 | if($conn->connect_error) 45 | { 46 | die ("Cannot connect to server " .$conn->connect_error); 47 | } 48 | 49 | 50 | 51 | else 52 | { 53 | 54 | require_once('function_data.php'); 55 | 56 | 57 | $username=input($_POST['username']); 58 | $password=input($_POST['password']); 59 | $email=input($_POST['email']); 60 | 61 | 62 | $username=$conn->real_escape_string($username); 63 | $password=$conn->real_escape_string($password); 64 | $email=$conn->real_escape_string($email); 65 | 66 | $sql0="insert into login (username,password,email) values('$username','$email','$password')"; 67 | $result0=$conn->query($sql0); 68 | 69 | $sql1="select created,id,username,password,email,forgot_text from login"; 70 | $result1=$conn->query($sql1); 71 | 72 | 73 | 74 | 75 | if($result1 == true) 76 | { 77 | echo ''; 79 | echo (""); 80 | } 81 | 82 | else 83 | { 84 | echo ''; 86 | echo (""); 87 | } 88 | 89 | 90 | } // kleisimo ths else 91 | 92 | 93 | } // kleisimo ths if isset 94 | 95 | ?> 96 | -------------------------------------------------------------------------------- /block_ip_address_block.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | if(isset($_POST['block_ip'])) 27 | { 28 | 29 | require('class_cn.php'); 30 | 31 | $obj = new in; 32 | 33 | $host = $obj->connect[0]; 34 | $user = $obj->connect[1]; 35 | $pass = $obj->connect[2]; 36 | $db = $obj->connect[3]; 37 | 38 | 39 | 40 | 41 | $conn = new mysqli($host,$user,$pass,$db); 42 | 43 | 44 | if($conn->connect_error) 45 | { 46 | die ("Cannot connect to server " .$conn->connect_error); 47 | exit; 48 | } 49 | 50 | 51 | else 52 | { 53 | 54 | require_once('function_data.php'); 55 | 56 | $ip_address=input($_POST['ip_address']); 57 | $ip_address=$conn->real_escape_string($ip_address); 58 | 59 | 60 | 61 | $sql0="select ip_address from block_ip"; 62 | $result0=$conn->query($sql0); 63 | 64 | 65 | if(empty($ip_address)) 66 | { 67 | echo ''; 69 | echo (""); 70 | } 71 | 72 | else 73 | { 74 | 75 | while($row0=$result0->fetch_assoc()) 76 | { 77 | $specie=$row0['ip_address']; 78 | if ($ip_address==$specie) 79 | { 80 | echo ''; 82 | echo (""); 83 | } 84 | } 85 | 86 | 87 | 88 | if (filter_var($ip_address, FILTER_VALIDATE_IP)) 89 | { 90 | 91 | $sql2="insert into block_ip (ip_address) values('$ip_address')"; 92 | $result2=$conn->query($sql2); 93 | echo ''; 95 | echo (""); 96 | } 97 | 98 | 99 | else 100 | { 101 | echo ''; 103 | echo (""); 104 | } 105 | 106 | 107 | 108 | } // kleisimo ths else gia upoxrewtiko pedio 109 | 110 | 111 | 112 | 113 | } // kleisimo ths else gia ta dedomena 114 | 115 | 116 | $conn->close(); 117 | 118 | } // kleisimo ths isset 119 | 120 | 121 | ?> 122 | -------------------------------------------------------------------------------- /block_ip_address_delete.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | if(isset($_POST['delete_ip'])) 27 | { 28 | 29 | require('class_cn.php'); 30 | 31 | $obj = new in; 32 | 33 | $host = $obj->connect[0]; 34 | $user = $obj->connect[1]; 35 | $pass = $obj->connect[2]; 36 | $db = $obj->connect[3]; 37 | 38 | 39 | 40 | $conn = new mysqli ($host,$user,$pass,$db); 41 | 42 | if($conn->connect_error) 43 | { 44 | die("Database connection failed: " .$conn->connect_error); 45 | } 46 | 47 | else 48 | { 49 | $idarr = $_POST['checked_id']; 50 | foreach($idarr as $id) 51 | { 52 | $sql="delete from block_ip where id='$id'"; 53 | $result=$conn->query($sql); 54 | 55 | 56 | } 57 | $_SESSION['success_msg'] = 'File have been deleted successfully.'; 58 | header("Location: block_ip_address.php"); 59 | 60 | 61 | } // kleisimo ths else gia ta dedomena 62 | 63 | $conn->close(); 64 | 65 | }//telos ths if gia ton elenxo me thn issset 66 | 67 | ?> 68 | -------------------------------------------------------------------------------- /block_ip_address_export.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | require('class_cn.php'); 27 | 28 | $obj = new in; 29 | 30 | $host = $obj->connect[0]; 31 | $user = $obj->connect[1]; 32 | $pass = $obj->connect[2]; 33 | $db = $obj->connect[3]; 34 | 35 | 36 | 37 | $conn = new mysqli($host,$user,$pass,$db); 38 | 39 | if($conn->connect_error) 40 | { 41 | die ("Cannot connect to server " .$conn->connect_error); 42 | } 43 | 44 | 45 | else 46 | { 47 | 48 | 49 | require('fpdf/fpdf.php'); 50 | $pdf=new FPDF(); 51 | $pdf->AddPage('P', 'A5'); // kathorizei ton tupo xartiou ths selidas 52 | // o tupos mporei an einai P or Portrait L or Landscape kai megethos xartiou (A3,A4,A5,Letter,Legal) 53 | $pdf->SetFont('Arial','B',10); 54 | $pdf->Ln(); 55 | $pdf->Ln(); 56 | $pdf->SetFont('times','B',12); 57 | $pdf->SetFillColor(230,230,230); // edw kathorizeis to xrwma 58 | $pdf->Cell(130,12,"All ip addresses blocked",1,0,'C',TRUE); 59 | $pdf->SetFont('Arial','B',10); 60 | $pdf->Ln(); // afhnei mia grammh keno kai paei apo katw 61 | $pdf->Cell(50,15,"Instant",1,0,'C',TRUE); // edw vazeis platos,upsos,onoma,border w,0h,kai true gia na parei to xrwma 62 | $pdf->Cell(80,15,"IP address",1,0,'C',TRUE); 63 | $pdf->Ln(); 64 | 65 | 66 | $sql="select instant,ip_address from block_ip"; 67 | $result = $conn->query($sql); 68 | 69 | while($row=$result->fetch_assoc()) 70 | { 71 | $instant = $row['instant']; 72 | $ip = $row['ip_address']; 73 | 74 | 75 | $pdf->Cell(50,7,$instant,1); 76 | $pdf->Cell(80,7,$ip,1); 77 | $pdf->Ln(); 78 | } 79 | 80 | $pdf->Output(); 81 | 82 | 83 | 84 | 85 | /* 86 | duo eidh eksodou pdf 87 | 88 | $pdf->Output('D','messages.pdf'); //eksodos kateutheian me onoma 89 | 90 | $pdf->Output(); // edw anoigo vlewpw kai meta katevazw kai allazw onoma 91 | 92 | */ 93 | 94 | 95 | } // kleisimo ths else gia ta dedomena 96 | 97 | $conn->close(); 98 | 99 | 100 | ?> 101 | -------------------------------------------------------------------------------- /class_cn.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | class in 26 | { 27 | public $connect = array(); 28 | public function __construct() 29 | { 30 | $this->connect[0]="localhost"; 31 | $this->connect[1]="makbox"; 32 | $this->connect[2]="makbox"; 33 | $this->connect[3]="makbox"; 34 | } 35 | } 36 | ?> 37 | -------------------------------------------------------------------------------- /contact_for_users_delete.php: -------------------------------------------------------------------------------- 1 | 5 | * Makbox is a personal (staas) cloud. 6 | * 7 | * Makbox is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Affero General Public License as 9 | * published by the Free Software Foundation, either version 3 of the 10 | * License, or (at your option) any later version. 11 | * 12 | * 13 | * Makbox is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU Affero General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Affero General Public License, version 3, 19 | * along with this program. If not, see 20 | * 21 | */ 22 | 23 | 24 | 25 | if(isset($_POST['delete_contact'])) 26 | { 27 | 28 | require('class_cn.php'); 29 | 30 | $obj = new in; 31 | 32 | $host = $obj->connect[0]; 33 | $user = $obj->connect[1]; 34 | $pass = $obj->connect[2]; 35 | $db = $obj->connect[3]; 36 | 37 | 38 | $conn = new mysqli ($host,$user,$pass,$db); 39 | 40 | if($conn->connect_error) 41 | { 42 | die("Database connection failed: " .$conn->connect_error); 43 | } 44 | 45 | else 46 | { 47 | $idarr = $_POST['checked_id']; 48 | foreach($idarr as $id) 49 | { 50 | $sql="delete from contact where id='$id'"; 51 | $result=$conn->query($sql); 52 | 53 | } 54 | $_SESSION['success_msg'] = 'File have been deleted successfully.'; 55 | header("Location: contact_for_users.php"); 56 | 57 | 58 | } // kleisimo ths else gia ta dedomena 59 | 60 | $conn->close(); 61 | 62 | }//telos ths if gia ton elenxo me thn isset 63 | 64 | ?> 65 | -------------------------------------------------------------------------------- /contact_for_users_export.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | require('class_cn.php'); 27 | 28 | $obj = new in; 29 | 30 | $host = $obj->connect[0]; 31 | $user = $obj->connect[1]; 32 | $pass = $obj->connect[2]; 33 | $db = $obj->connect[3]; 34 | 35 | 36 | 37 | $conn = new mysqli($host,$user,$pass,$db); 38 | 39 | if($conn->connect_error) 40 | { 41 | die ("Cannot connect to server " .$conn->connect_error); 42 | } 43 | 44 | 45 | else 46 | { 47 | 48 | 49 | require('fpdf/fpdf.php'); 50 | $pdf=new FPDF(); 51 | $pdf->AddPage('P', 'Legal'); // kathorizei ton tupo xartiou ths selidas 52 | // o tupos mporei an einai P or Portrait L or Landscape kai megethos xartiou (A3,A4,A5,Letter,Legal) 53 | $pdf->SetFont('Arial','B',10); 54 | $pdf->Ln(); 55 | $pdf->Ln(); 56 | $pdf->SetFont('times','B',10); 57 | $pdf->SetFillColor(230,230,230); // edw kathorizeis to xrwma 58 | $pdf->Cell(202,12,"All contacts for users",1,0,'C',TRUE); 59 | $pdf->Ln(); // afhnei mia grammh keno kai paei apo katw 60 | $pdf->Cell(35,15,"Created",1,0,'C',TRUE); // edw vazeis platos,upsos,onoma,border w,0h,kai true gia na parei to xrwma 61 | $pdf->Cell(22,15,"From",1,0,'C',TRUE); 62 | $pdf->Cell(60,15,"To",1,0,'C',TRUE); 63 | $pdf->Cell(85,15,"Message",1,0,'C',TRUE); 64 | $pdf->Ln(); 65 | 66 | 67 | $sql="select created,name,email,message from contact"; 68 | $result = $conn->query($sql); 69 | 70 | while($row=$result->fetch_assoc()) 71 | { 72 | $created = $row['created']; 73 | $name = $row['name']; 74 | $email = $row['email']; 75 | $message = $row['message']; 76 | //$blank=" "; 77 | 78 | $pdf->Cell(35,7,$created,1); 79 | //$pdf->Cell(10,7,$blank); 80 | $pdf->Cell(22,7,$name,1); 81 | $pdf->Cell(60,7,$email,1); 82 | $pdf->Cell(85,7,$message,1); // edw emfanizei olo to keimeno kanwntas ansiplwsh keimenou 83 | $pdf->Ln(); 84 | } 85 | 86 | $pdf->Output(); 87 | 88 | 89 | 90 | 91 | /* 92 | duo eidh eksodou pdf 93 | 94 | $pdf->Output('D','messages.pdf'); //eksodos kateutheian me onoma 95 | 96 | $pdf->Output(); // edw anoigo vlewpw kai meta katevazw kai allazw onoma 97 | 98 | */ 99 | 100 | 101 | } // kleisimo ths else gia ta dedomena 102 | 103 | $conn->close(); 104 | 105 | 106 | ?> 107 | -------------------------------------------------------------------------------- /control_panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/control_panel.png -------------------------------------------------------------------------------- /control_panel0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/control_panel0.png -------------------------------------------------------------------------------- /css/accounts_users.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016-2017 Barchampas Gerasimos 3 | * Makbox is a personal (staas) cloud. 4 | * 5 | * Makbox is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU Affero General Public License as 7 | * published by the Free Software Foundation, either version 3 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * 11 | * Makbox is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Affero General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Affero General Public License, version 3, 17 | * along with this program. If not, see 18 | * 19 | */ 20 | 21 | 22 | 23 | #insert 24 | { 25 | background-color:#404040; 26 | border-style:solid; 27 | border-width:0.5em; 28 | border-color:#404040; 29 | height:4em; 30 | width:100%; 31 | position: absolute; 32 | left: 0; 33 | top: 13%; 34 | width:; 35 | text-align: center; 36 | font-size: 15px; 37 | } 38 | 39 | 40 | 41 | 42 | 43 | 44 | #table1 45 | { 46 | position:absolute; 47 | top:19%; 48 | left:15%; 49 | border-style:solid; 50 | border-width:5em; 51 | border-color:#404040; 52 | height:4em; 53 | width:100%; 54 | position: absolute; 55 | left: 0; 56 | top: ; 57 | width:; 58 | text-align: center; 59 | font-size: 15px; 60 | } 61 | 62 | 63 | 64 | #header 65 | { 66 | position:absolute; 67 | top:0%; 68 | left:15%; 69 | background-color:#404040; 70 | text-decoration: none; 71 | color:white; 72 | font-size:24px; 73 | width:70%; 74 | height:8%; 75 | } 76 | 77 | 78 | #a1 79 | { 80 | position:absolute; 81 | top:8%; 82 | left:43%; 83 | text-decoration: none; 84 | background-color:#404040; 85 | color:white; 86 | width:10em; 87 | border-style:solid; 88 | border-width:0.5em; 89 | border-color:#404040; 90 | font-size:18px; 91 | } 92 | 93 | 94 | 95 | 96 | #a2 97 | { 98 | text-decoration: none; 99 | background-color:#404040; 100 | color:white; 101 | width:10em; 102 | border-style:solid; 103 | border-width:0.5em; 104 | border-color:#404040; 105 | } 106 | 107 | 108 | #a3 109 | { 110 | text-decoration: none; 111 | color:white; 112 | } 113 | 114 | 115 | 116 | 117 | #hr1 118 | { 119 | border-bottom: 3px solid black; 120 | border-left: 1px solid black; 121 | } 122 | 123 | 124 | #hr2 125 | { 126 | border-bottom: 1px solid black; 127 | border-left: 1px solid black; 128 | } 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | #del-submit 137 | { 138 | border-style:solid; 139 | border-color:red; 140 | background-color:red; 141 | box-shadow:none; 142 | opacity:0.7; 143 | color:white; 144 | } 145 | 146 | -------------------------------------------------------------------------------- /css/block_ip_address.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016-2017 Barchampas Gerasimos 3 | * Makbox is a personal (staas) cloud. 4 | * 5 | * Makbox is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU Affero General Public License as 7 | * published by the Free Software Foundation, either version 3 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * 11 | * Makbox is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Affero General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Affero General Public License, version 3, 17 | * along with this program. If not, see 18 | * 19 | */ 20 | 21 | 22 | 23 | 24 | #insert 25 | { 26 | background-color:#404040; 27 | border-style:solid; 28 | border-width:0.5em; 29 | border-color:#404040; 30 | height:4em; 31 | width:100%; 32 | position: absolute; 33 | left: 0; 34 | top: 13%; 35 | width:; 36 | text-align: center; 37 | font-size: 15px; 38 | } 39 | 40 | 41 | 42 | 43 | 44 | 45 | #table1 46 | { 47 | position:absolute; 48 | top:19%; 49 | left:15%; 50 | border-style:solid; 51 | border-width:5em; 52 | border-color:#404040; 53 | height:4em; 54 | width:100%; 55 | position: absolute; 56 | left: 0; 57 | top: ; 58 | width:; 59 | text-align: center; 60 | font-size: 15px; 61 | } 62 | 63 | 64 | 65 | #header 66 | { 67 | position:absolute; 68 | top:0%; 69 | left:14%; 70 | background-color:#404040; 71 | text-decoration: none; 72 | color:white; 73 | font-size:24px; 74 | width:70%; 75 | height:8%; 76 | } 77 | 78 | 79 | #a1 80 | { 81 | position:absolute; 82 | top:8%; 83 | left:43%; 84 | text-decoration: none; 85 | background-color:#404040; 86 | color:white; 87 | width:10em; 88 | border-style:solid; 89 | border-width:0.5em; 90 | border-color:#404040; 91 | font-size:18px; 92 | } 93 | 94 | 95 | 96 | 97 | #a2 98 | { 99 | text-decoration: none; 100 | background-color:#404040; 101 | color:white; 102 | width:10em; 103 | border-style:solid; 104 | border-width:0.5em; 105 | border-color:#404040; 106 | } 107 | 108 | 109 | #a3 110 | { 111 | text-decoration: none; 112 | color:white; 113 | } 114 | 115 | 116 | 117 | 118 | #hr1 119 | { 120 | border-bottom: 3px solid black; 121 | border-left: 1px solid black; 122 | } 123 | 124 | 125 | #hr2 126 | { 127 | border-bottom: 1px solid black; 128 | border-left: 1px solid black; 129 | } 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | #del-submit 138 | { 139 | border-style:solid; 140 | border-color:red; 141 | background-color:red; 142 | box-shadow:none; 143 | opacity:0.7; 144 | color:white; 145 | } 146 | 147 | 148 | -------------------------------------------------------------------------------- /css/control.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016-2017 Barchampas Gerasimos 3 | * Makbox is a personal (staas) cloud. 4 | * 5 | * Makbox is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU Affero General Public License as 7 | * published by the Free Software Foundation, either version 3 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * 11 | * Makbox is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Affero General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Affero General Public License, version 3, 17 | * along with this program. If not, see 18 | * 19 | */ 20 | 21 | 22 | 23 | 24 | 25 | #body 26 | { 27 | background-color:lightblue; 28 | 29 | border-width: 40px 70px 40px 70px; 30 | border-style: double; 31 | border-color: white; 32 | border-radius: 120px 40px 60px 120px; 33 | -moz-border-radius:40px 60px 60px 60px; 34 | -webkit-border-radius:1200px 1200px 1000px 1000px; 35 | } 36 | 37 | 38 | 39 | #table2 40 | { 41 | background-color:lightblue; 42 | border-style:solid; 43 | border-width:0em; 44 | border-color:; 45 | height:10em; 46 | width:70%; 47 | position: absolute; 48 | left: 15%; 49 | top:; 50 | width:; 51 | text-align: center; 52 | font-size: 15px; 53 | } 54 | 55 | 56 | 57 | 58 | #header 59 | { 60 | position:absolute; 61 | top:-2.3%; 62 | left:15%; 63 | background-color:; 64 | text-decoration: none; 65 | color:white; 66 | font-size:24px; 67 | width:70%; 68 | border-style:solid; 69 | border-width:0.7em; 70 | border-color:lightblue; 71 | } 72 | 73 | 74 | 75 | #a2 76 | { 77 | background-color:lightblue; 78 | background-image:url('/control_panel/photos/database-tree.ico'); 79 | background-repeat:no-repeat; 80 | background-size:100% 100%; 81 | left:15%; 82 | height:30%; 83 | width:40%; 84 | border-style:solid; 85 | border-width:0.4em; 86 | border-color:lightblue; 87 | } 88 | 89 | 90 | 91 | 92 | #a3 93 | { 94 | background-color:lightblue; 95 | height:4em; 96 | width:70%; 97 | position: absolute; 98 | left: 15%; 99 | top:; 100 | width:; 101 | text-align: center; 102 | font: bold italic 12px Arial; 103 | } 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | #del-submit 113 | { 114 | border-style:solid; 115 | border-color:red; 116 | background-color:red; 117 | box-shadow:none; 118 | opacity:0.7; 119 | color:white; 120 | } 121 | 122 | 123 | 124 | #logout 125 | { 126 | border-style:solid; 127 | border-color:red; 128 | background-color:red; 129 | box-shadow:none; 130 | opacity:0.7; 131 | color:white; 132 | text-decoration:none; 133 | } 134 | 135 | 136 | #a 137 | { 138 | font: bold 11px Arial; 139 | text-decoration: none; 140 | background-color:white; 141 | color: #333333; 142 | padding: 12px 12px 12px 6px; 143 | border-top: 1px solid #CCCCCC; 144 | border-right: 1px solid #333333; 145 | border-bottom: 1px solid #333333; 146 | border-left: 1px solid #CCCCCC; 147 | } 148 | 149 | 150 | 151 | 152 | #th 153 | { 154 | vertical-align: text-top; 155 | font-size:20px; 156 | color:white; 157 | } 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | -------------------------------------------------------------------------------- /css/delete_user.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016-2017 Barchampas Gerasimos 3 | * Makbox is a personal (staas) cloud. 4 | * 5 | * Makbox is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU Affero General Public License as 7 | * published by the Free Software Foundation, either version 3 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * 11 | * Makbox is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Affero General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Affero General Public License, version 3, 17 | * along with this program. If not, see 18 | * 19 | */ 20 | 21 | 22 | 23 | 24 | #insert 25 | { 26 | background-color:#404040; 27 | border-style:solid; 28 | border-width:0.5em; 29 | border-color:#404040; 30 | height:4em; 31 | width:100%; 32 | position: absolute; 33 | left: 0; 34 | top: 13%; 35 | width:; 36 | text-align: center; 37 | font-size: 15px; 38 | } 39 | 40 | 41 | 42 | 43 | 44 | 45 | #table1 46 | { 47 | position:absolute; 48 | top:19%; 49 | left:15%; 50 | border-style:solid; 51 | border-width:5em; 52 | border-color:#404040; 53 | height:4em; 54 | width:100%; 55 | position: absolute; 56 | left: 0; 57 | top: ; 58 | width:; 59 | text-align: center; 60 | font-size: 15px; 61 | } 62 | 63 | 64 | 65 | #header 66 | { 67 | position:absolute; 68 | top:0%; 69 | left:14%; 70 | background-color:#404040; 71 | text-decoration: none; 72 | color:white; 73 | font-size:24px; 74 | width:70%; 75 | height:8%; 76 | } 77 | 78 | 79 | #a1 80 | { 81 | position:absolute; 82 | top:8%; 83 | left:43%; 84 | text-decoration: none; 85 | background-color:#404040; 86 | color:white; 87 | width:10em; 88 | border-style:solid; 89 | border-width:0.5em; 90 | border-color:#404040; 91 | font-size:18px; 92 | } 93 | 94 | 95 | 96 | 97 | #a2 98 | { 99 | text-decoration: none; 100 | background-color:#404040; 101 | color:white; 102 | width:10em; 103 | border-style:solid; 104 | border-width:0.5em; 105 | border-color:#404040; 106 | } 107 | 108 | 109 | #a3 110 | { 111 | text-decoration: none; 112 | color:white; 113 | } 114 | 115 | 116 | 117 | 118 | #hr1 119 | { 120 | border-bottom: 3px solid black; 121 | border-left: 1px solid black; 122 | } 123 | 124 | 125 | #hr2 126 | { 127 | border-bottom: 1px solid black; 128 | border-left: 1px solid black; 129 | } 130 | -------------------------------------------------------------------------------- /css/details_users.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016-2017 Barchampas Gerasimos 3 | * Makbox is a personal (staas) cloud. 4 | * 5 | * Makbox is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU Affero General Public License as 7 | * published by the Free Software Foundation, either version 3 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * 11 | * Makbox is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Affero General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Affero General Public License, version 3, 17 | * along with this program. If not, see 18 | * 19 | */ 20 | 21 | 22 | 23 | 24 | 25 | #table1 26 | { 27 | position:absolute; 28 | top:12%; 29 | left:0%; 30 | border-style:solid; 31 | border-width:5em; 32 | border-color:#404040; 33 | height:4em; 34 | width:100%; 35 | position: absolute; 36 | width:; 37 | text-align: center; 38 | font-size: 15px; 39 | } 40 | 41 | 42 | 43 | #header 44 | { 45 | position:absolute; 46 | top:0%; 47 | left:15%; 48 | background-color:#404040; 49 | text-decoration: none; 50 | color:white; 51 | font-size:24px; 52 | width:70%; 53 | height:8%; 54 | } 55 | 56 | 57 | #a1 58 | { 59 | position:absolute; 60 | top:8%; 61 | left:43%; 62 | text-decoration: none; 63 | background-color:#404040; 64 | color:white; 65 | width:10em; 66 | border-style:solid; 67 | border-width:0.5em; 68 | border-color:#404040; 69 | font-size:18px; 70 | } 71 | 72 | 73 | 74 | 75 | #a2 76 | { 77 | text-decoration: none; 78 | background-color:#404040; 79 | color:white; 80 | width:10em; 81 | border-style:solid; 82 | border-width:0.5em; 83 | border-color:#404040; 84 | } 85 | 86 | 87 | #a3 88 | { 89 | text-decoration: none; 90 | color:white; 91 | } 92 | 93 | 94 | 95 | 96 | #hr1 97 | { 98 | border-bottom: 3px solid black; 99 | border-left: 1px solid black; 100 | } 101 | 102 | 103 | #hr2 104 | { 105 | border-bottom: 1px solid black; 106 | border-left: 1px solid black; 107 | } 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | #del-submit 116 | { 117 | border-style:solid; 118 | border-color:red; 119 | background-color:red; 120 | box-shadow:none; 121 | opacity:0.7; 122 | color:white; 123 | } 124 | 125 | 126 | -------------------------------------------------------------------------------- /css/index.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016-2017 Barchampas Gerasimos 3 | * Makbox is a personal (staas) cloud. 4 | * 5 | * Makbox is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU Affero General Public License as 7 | * published by the Free Software Foundation, either version 3 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * 11 | * Makbox is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Affero General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Affero General Public License, version 3, 17 | * along with this program. If not, see 18 | * 19 | */ 20 | 21 | 22 | 23 | body 24 | { 25 | /* 26 | background: url(''); 27 | */ 28 | 29 | /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#b3dced+0,29b8e5+50,bce0ee+100;Blue+Pipe */ 30 | background: #b3dced; /* Old browsers */ 31 | background: -moz-linear-gradient(top, #b3dced 0%, #29b8e5 50%, #bce0ee 100%); /* FF3.6-15 */ 32 | background: -webkit-linear-gradient(top, #b3dced 0%,#29b8e5 50%,#bce0ee 100%); /* Chrome10-25,Safari5.1-6 */ 33 | background: linear-gradient(to bottom, #b3dced 0%,#29b8e5 50%,#bce0ee 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ 34 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3dced', endColorstr='#bce0ee',GradientType=0 ); /* IE6-9 */ 35 | 36 | 37 | } 38 | 39 | 40 | .container 41 | { 42 | max-width: 500px; 43 | padding-left: 90px; 44 | padding-top: 95px; 45 | } 46 | 47 | 48 | .btn-default:hover, .btn-default:focus 49 | { 50 | background-color: #5cb85c; 51 | border-color: #5cb85c; 52 | color: white; 53 | } 54 | 55 | 56 | .btn-block { 57 | height: 34px !important; 58 | } 59 | 60 | 61 | -------------------------------------------------------------------------------- /css/storage_user.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016-2017 Barchampas Gerasimos 3 | * Makbox is a personal (staas) cloud. 4 | * 5 | * Makbox is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU Affero General Public License as 7 | * published by the Free Software Foundation, either version 3 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * 11 | * Makbox is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Affero General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Affero General Public License, version 3, 17 | * along with this program. If not, see 18 | * 19 | */ 20 | 21 | 22 | 23 | 24 | #insert 25 | { 26 | background-color:#404040; 27 | border-style:solid; 28 | border-width:0.5em; 29 | border-color:#404040; 30 | height:4em; 31 | width:100%; 32 | position: absolute; 33 | left: 0; 34 | top: 13%; 35 | width:; 36 | text-align: center; 37 | font-size: 15px; 38 | } 39 | 40 | 41 | 42 | 43 | 44 | 45 | #table1 46 | { 47 | position:absolute; 48 | top:19%; 49 | left:15%; 50 | border-style:solid; 51 | border-width:5em; 52 | border-color:#404040; 53 | height:4em; 54 | width:100%; 55 | position: absolute; 56 | left: 0; 57 | top: ; 58 | width:; 59 | text-align: center; 60 | font-size: 15px; 61 | } 62 | 63 | 64 | 65 | #header 66 | { 67 | position:absolute; 68 | top:0%; 69 | left:14%; 70 | background-color:#404040; 71 | text-decoration: none; 72 | color:white; 73 | font-size:24px; 74 | width:70%; 75 | height:8%; 76 | } 77 | 78 | 79 | #a1 80 | { 81 | position:absolute; 82 | top:8%; 83 | left:43%; 84 | text-decoration: none; 85 | background-color:#404040; 86 | color:white; 87 | width:10em; 88 | border-style:solid; 89 | border-width:0.5em; 90 | border-color:#404040; 91 | font-size:18px; 92 | } 93 | 94 | 95 | 96 | 97 | #a2 98 | { 99 | text-decoration: none; 100 | background-color:#404040; 101 | color:white; 102 | width:10em; 103 | border-style:solid; 104 | border-width:0.5em; 105 | border-color:#404040; 106 | } 107 | 108 | 109 | #a3 110 | { 111 | text-decoration: none; 112 | color:white; 113 | } 114 | 115 | 116 | 117 | 118 | #hr1 119 | { 120 | border-bottom: 3px solid black; 121 | border-left: 1px solid black; 122 | } 123 | 124 | 125 | #hr2 126 | { 127 | border-bottom: 1px solid black; 128 | border-left: 1px solid black; 129 | } 130 | -------------------------------------------------------------------------------- /css/transfer_archives.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016-2017 Barchampas Gerasimos 3 | * Makbox is a personal (staas) cloud. 4 | * 5 | * Makbox is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU Affero General Public License as 7 | * published by the Free Software Foundation, either version 3 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * 11 | * Makbox is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Affero General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Affero General Public License, version 3, 17 | * along with this program. If not, see 18 | * 19 | */ 20 | 21 | 22 | 23 | 24 | #table1 25 | { 26 | position:absolute; 27 | top:12%; 28 | left:15%; 29 | border-style:solid; 30 | border-width:5em; 31 | border-color:#404040; 32 | height:4em; 33 | width:100%; 34 | position: absolute; 35 | left: 0; 36 | top: ; 37 | width:; 38 | text-align: center; 39 | font-size: 15px; 40 | } 41 | 42 | 43 | 44 | 45 | 46 | #header 47 | { 48 | position:absolute; 49 | top:0%; 50 | left:15%; 51 | background-color:#404040; 52 | text-decoration: none; 53 | color:white; 54 | font-size:24px; 55 | width:70%; 56 | height:8%; 57 | } 58 | 59 | 60 | #a1 61 | { 62 | position:absolute; 63 | top:6.5%; 64 | left:43%; 65 | text-decoration: none; 66 | background-color:#404040; 67 | color:white; 68 | width:10em; 69 | border-style:solid; 70 | border-width:0.5em; 71 | border-color:#404040; 72 | font-size:18px; 73 | } 74 | 75 | 76 | 77 | 78 | #a2 79 | { 80 | text-decoration: none; 81 | background-color:#404040; 82 | color:white; 83 | width:10em; 84 | border-style:solid; 85 | border-width:0.5em; 86 | border-color:#404040; 87 | } 88 | 89 | 90 | #a3 91 | { 92 | text-decoration: none; 93 | color:white; 94 | } 95 | 96 | 97 | 98 | 99 | #hr1 100 | { 101 | border-bottom: 3px solid black; 102 | border-left: 1px solid black; 103 | } 104 | 105 | 106 | #hr2 107 | { 108 | border-bottom: 1px solid black; 109 | border-left: 1px solid black; 110 | } 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | #del-submit 119 | { 120 | border-style:solid; 121 | border-color:red; 122 | background-color:red; 123 | box-shadow:none; 124 | opacity:0.7; 125 | color:white; 126 | } 127 | 128 | 129 | -------------------------------------------------------------------------------- /delete_user_delete.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | session_start(); 26 | 27 | 28 | 29 | if (isset($_POST['submit_delete_user'])) 30 | { 31 | 32 | require('class_cn.php'); 33 | 34 | $obj = new in; 35 | 36 | $host = $obj->connect[0]; 37 | $user = $obj->connect[1]; 38 | $pass = $obj->connect[2]; 39 | $db = $obj->connect[3]; 40 | 41 | 42 | 43 | $conn = new mysqli ($host,$user,$pass,$db); 44 | 45 | if($conn->connect_error) 46 | { 47 | die("Database connection failed: " .$conn->connect_error); 48 | } 49 | 50 | 51 | 52 | else 53 | { 54 | 55 | require_once('function_data.php'); 56 | 57 | $delete_user = input($_POST['delete_user']); 58 | $delete_user = $conn->real_escape_string($delete_user); 59 | 60 | 61 | $sql0="select username from login"; 62 | $result0=$conn->query($sql0); 63 | 64 | 65 | 66 | while($row0=$result0->fetch_assoc()) 67 | { 68 | 69 | if ($delete_user != $row0['username']) 70 | { 71 | echo ''; 73 | echo (""); 74 | } 75 | 76 | 77 | else 78 | { 79 | 80 | 81 | $sql1="delete from folder_uploads where _to = '$delete_user'"; 82 | $result1 = $conn->query($sql1); 83 | 84 | 85 | $sql2="delete from login where username = '$delete_user'"; 86 | $result2 = $conn->query($sql2); 87 | 88 | 89 | $sql3="delete from backup_login where username = '$delete_user'"; 90 | $result3 = $conn->query($sql3); 91 | 92 | 93 | $sql4="delete from profile where username = '$delete_user'"; 94 | $result4 = $conn->query($sql4); 95 | 96 | 97 | $sql5="delete from hard_disk where user = '$delete_user'"; 98 | $result5 = $conn->query($sql5); 99 | 100 | $sql6="delete from modules_details where user_login = '$delete_user'"; 101 | $result6 = $conn->query($sql6); 102 | 103 | 104 | 105 | header("Location: delete_user.php"); 106 | 107 | } // end of else for username 108 | 109 | 110 | } // end of while 111 | 112 | 113 | // $_SESSION['success_msg'] = 'File have been deleted successfully.'; 114 | 115 | 116 | } // kleisimo ths else gia ta dedomena 117 | 118 | 119 | $conn->close(); 120 | 121 | 122 | }//telos ths if gia ton elenxo me thn issset 123 | 124 | 125 | ?> 126 | -------------------------------------------------------------------------------- /details_users_delete.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | if(isset($_POST['delete_details'])) 26 | { 27 | 28 | 29 | require('class_cn.php'); 30 | 31 | $obj = new in; 32 | 33 | $host = $obj->connect[0]; 34 | $user = $obj->connect[1]; 35 | $pass = $obj->connect[2]; 36 | $db = $obj->connect[3]; 37 | 38 | $conn = new mysqli ($host,$user,$pass,$db); 39 | 40 | if($conn->connect_error) 41 | { 42 | die("Database connection failed: " .$conn->connect_error); 43 | } 44 | 45 | else 46 | { 47 | $idarr = $_POST['checked_id']; 48 | foreach($idarr as $id) 49 | { 50 | $sql="delete from all_users_details where id='$id'"; 51 | $result=$conn->query($sql); 52 | 53 | } 54 | $_SESSION['success_msg'] = 'File have been deleted successfully.'; 55 | header("Location: details_users.php"); 56 | 57 | 58 | } // kleisimo ths else gia ta dedomena 59 | 60 | $conn->close(); 61 | 62 | }//telos ths if gia ton elenxo me thn issset 63 | 64 | ?> 65 | -------------------------------------------------------------------------------- /details_users_download.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | if(isset($_GET['id'])) 27 | { 28 | 29 | $id = intval($_GET['id']); 30 | 31 | 32 | if($id <= 0) 33 | { 34 | die('The ID is invalid!'); 35 | } 36 | 37 | 38 | else 39 | { 40 | 41 | require('class_cn.php'); 42 | 43 | $obj = new in; 44 | 45 | $host = $obj->connect[0]; 46 | $user = $obj->connect[1]; 47 | $pass = $obj->connect[2]; 48 | $db = $obj->connect[3]; 49 | 50 | $conn = new mysqli($host,$user,$pass,$db); 51 | 52 | if($conn->connect_error) 53 | { 54 | die ("Cannot connect to server " .$conn->connect_error); 55 | } 56 | 57 | else 58 | { 59 | 60 | $sql="select instant,ip_address,mac_address,folder,cookies,name from all_users_details where id='$id'"; 61 | $result = $conn->query($sql); 62 | 63 | if($result) 64 | { 65 | 66 | $row = $result->fetch_assoc(); 67 | 68 | header("Content-Type: text/plain"); 69 | header('Content-Disposition:attachment;filename="' .$row['instant'] .'"'); 70 | 71 | echo "Details for " .$row['instant'] ." instant " ."\n"; 72 | echo "____________________"; 73 | echo" 74 | Instant: {$row['instant']} 75 | Ip address: {$row['ip_address']} 76 | Mac address(not always): {$row['mac_address']} 77 | Url visited: {$row['folder']} 78 | Cookies: {$row['cookies']} 79 | Client name(if visited): {$row['name']} 80 | "; 81 | 82 | 83 | } // kleisimo ths if 84 | 85 | 86 | 87 | else 88 | { 89 | echo 'Error! No data exists with that ID.'; 90 | } 91 | 92 | }//kleisimo ths else gia ta dedoimena 93 | 94 | }// kleisimo ths megalhs else 95 | 96 | $conn->close(); 97 | 98 | 99 | } // kleisimo ths if isset 100 | 101 | 102 | 103 | ?> 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /details_users_export.php: -------------------------------------------------------------------------------- 1 | 5 | * Makbox is a personal (staas) cloud. 6 | * 7 | * Makbox is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Affero General Public License as 9 | * published by the Free Software Foundation, either version 3 of the 10 | * License, or (at your option) any later version. 11 | * 12 | * 13 | * Makbox is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU Affero General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Affero General Public License, version 3, 19 | * along with this program. If not, see 20 | * 21 | */ 22 | 23 | 24 | 25 | require('class_cn.php'); 26 | 27 | $obj = new in; 28 | 29 | $host = $obj->connect[0]; 30 | $user = $obj->connect[1]; 31 | $pass = $obj->connect[2]; 32 | $db = $obj->connect[3]; 33 | $conn = new mysqli($host,$user,$pass,$db); 34 | 35 | if($conn->connect_error) 36 | { 37 | die ("Cannot connect to server " .$conn->connect_error); 38 | } 39 | 40 | 41 | else 42 | { 43 | 44 | 45 | require('fpdf/fpdf.php'); 46 | $pdf=new FPDF(); 47 | $pdf->AddPage('P', 'A3'); // kathorizei ton tupo xartiou ths selidas 48 | // o tupos mporei an einai P or Portrait L or Landscape kai megethos xartiou (A3,A4,A5,Letter,Legal) 49 | $pdf->SetFont('Arial','B',10); 50 | $pdf->Ln(); 51 | $pdf->Ln(); 52 | $pdf->SetFillColor(230,230,230); // edw kathorizeis to xrwma 53 | $pdf->SetFont('times','B',15); 54 | $pdf->Cell(283,15,"All details for users",1,0,'C',TRUE); 55 | $pdf->Ln(); // afhnei mia grammh keno kai paei apo katw 56 | $pdf->SetFont('times','B',10); 57 | $pdf->Cell(35,15,"Instant",1,0,'C',TRUE); // edw vazeis platos,upsos,onoma,border w,0h,kai true gia na parei to xrwma 58 | $pdf->Cell(40,15,"Ip address",1,0,'C',TRUE); 59 | $pdf->Cell(48,15,"Mac address(not always)",1,0,'C',TRUE); 60 | $pdf->Cell(50,15,"Url visited",1,0,'C',TRUE); 61 | $pdf->Cell(70,15,"Cookies",1,0,'C',TRUE); 62 | $pdf->Cell(40,15,"Client name(if visiting)",1,0,'C',TRUE); 63 | $pdf->Ln(); 64 | 65 | 66 | $sql="select instant,ip_address,mac_address,folder,cookies,name from all_users_details"; 67 | $result = $conn->query($sql); 68 | 69 | while($row=$result->fetch_assoc()) 70 | { 71 | $instant = $row['instant']; 72 | $ip = $row['ip_address']; 73 | $mac = $row['mac_address']; 74 | $folder = $row['folder']; 75 | $cookies = $row['cookies']; 76 | $name = $row['name']; 77 | 78 | 79 | $pdf->Cell(35,7,$instant,1); 80 | $pdf->Cell(40,7,$ip,1); 81 | $pdf->Cell(48,7,$mac,1); 82 | $pdf->Cell(50,7,$folder,1); 83 | $pdf->Cell(70,7,$cookies,1); 84 | $pdf->Cell(40,7,$name,1); 85 | 86 | //$pdf->Cell(127,7,$message,1); // edw emfanizei olo to keimeno kanwntas ansiplwsh keimenou an einai MultiCell 87 | $pdf->Ln(); 88 | } 89 | 90 | $pdf->Output(); 91 | 92 | 93 | 94 | 95 | /* 96 | duo eidh eksodou pdf 97 | 98 | $pdf->Output('D','messages.pdf'); //eksodos kateutheian me onoma 99 | 100 | $pdf->Output(); // edw anoigo vlewpw kai meta katevazw kai allazw onoma 101 | 102 | */ 103 | 104 | 105 | } // kleisimo ths else gia ta dedomena 106 | 107 | $conn->close(); 108 | 109 | 110 | ?> 111 | -------------------------------------------------------------------------------- /fpdf/doc/__construct.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | __construct 6 | 7 | 8 | 9 |

__construct

10 | __construct([string orientation [, string unit [, mixed size]]]) 11 |

Description

12 | This is the class constructor. It allows to set up the page size, the orientation and the 13 | unit of measure used in all methods (except for font sizes). 14 |

Parameters

15 |
16 |
orientation
17 |
18 | Default page orientation. Possible values are (case insensitive): 19 |
    20 |
  • P or Portrait
  • 21 |
  • L or Landscape
  • 22 |
23 | Default value is P. 24 |
25 |
unit
26 |
27 | User unit. Possible values are: 28 |
    29 |
  • pt: point
  • 30 |
  • mm: millimeter
  • 31 |
  • cm: centimeter
  • 32 |
  • in: inch
  • 33 |
34 | A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This 35 | is a very common unit in typography; font sizes are expressed in that unit. 36 |
37 |
38 | Default value is mm. 39 |
40 |
size
41 |
42 | The size used for pages. It can be either one of the following values (case insensitive): 43 |
    44 |
  • A3
  • 45 |
  • A4
  • 46 |
  • A5
  • 47 |
  • Letter
  • 48 |
  • Legal
  • 49 |
50 | or an array containing the width and the height (expressed in the unit given by unit).
51 |
52 | Default value is A4. 53 |
54 |
55 |

Example

56 | Example with a custom 100x150 mm page size: 57 |
58 |
$pdf = new FPDF('P','mm',array(100,150));
59 |
60 |
61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /fpdf/doc/acceptpagebreak.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AcceptPageBreak 6 | 7 | 8 | 9 |

AcceptPageBreak

10 | boolean AcceptPageBreak() 11 |

Description

12 | Whenever a page break condition is met, the method is called, and the break is issued or not 13 | depending on the returned value. The default implementation returns a value according to the 14 | mode selected by SetAutoPageBreak(). 15 |
16 | This method is called automatically and should not be called directly by the application. 17 |

Example

18 | The method is overriden in an inherited class in order to obtain a 3 column layout: 19 |
20 |
class PDF extends FPDF
21 | {
22 | var $col = 0;
23 | 
24 | function SetCol($col)
25 | {
26 |     // Move position to a column
27 |     $this->col = $col;
28 |     $x = 10+$col*65;
29 |     $this->SetLeftMargin($x);
30 |     $this->SetX($x);
31 | }
32 | 
33 | function AcceptPageBreak()
34 | {
35 |     if($this->col<2)
36 |     {
37 |         // Go to next column
38 |         $this->SetCol($this->col+1);
39 |         $this->SetY(10);
40 |         return false;
41 |     }
42 |     else
43 |     {
44 |         // Go back to first column and issue page break
45 |         $this->SetCol(0);
46 |         return true;
47 |     }
48 | }
49 | }
50 | 
51 | $pdf = new PDF();
52 | $pdf->AddPage();
53 | $pdf->SetFont('Arial','',12);
54 | for($i=1;$i<=300;$i++)
55 |     $pdf->Cell(0,5,"Line $i",0,1);
56 | $pdf->Output();
57 |
58 |

See also

59 | SetAutoPageBreak 60 |
61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /fpdf/doc/addfont.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AddFont 6 | 7 | 8 | 9 |

AddFont

10 | AddFont(string family [, string style [, string file]]) 11 |

Description

12 | Imports a TrueType, OpenType or Type1 font and makes it available. It is necessary to generate a font 13 | definition file first with the MakeFont utility. 14 |
15 | The definition file (and the font file itself when embedding) must be present in the font directory. 16 | If it is not found, the error "Could not include font definition file" is raised. 17 |

Parameters

18 |
19 |
family
20 |
21 | Font family. The name can be chosen arbitrarily. If it is a standard family name, it will 22 | override the corresponding font. 23 |
24 |
style
25 |
26 | Font style. Possible values are (case insensitive): 27 |
    28 |
  • empty string: regular
  • 29 |
  • B: bold
  • 30 |
  • I: italic
  • 31 |
  • BI or IB: bold italic
  • 32 |
33 | The default value is regular. 34 |
35 |
file
36 |
37 | The font definition file. 38 |
39 | By default, the name is built from the family and style, in lower case with no space. 40 |
41 |
42 |

Example

43 |
44 |
$pdf->AddFont('Comic','I');
45 |
46 | is equivalent to: 47 |
48 |
$pdf->AddFont('Comic','I','comici.php');
49 |
50 |

See also

51 | SetFont 52 |
53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /fpdf/doc/addlink.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AddLink 6 | 7 | 8 | 9 |

AddLink

10 | int AddLink() 11 |

Description

12 | Creates a new internal link and returns its identifier. An internal link is a clickable area 13 | which directs to another place within the document. 14 |
15 | The identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is 16 | defined with SetLink(). 17 |

See also

18 | Cell, 19 | Write, 20 | Image, 21 | Link, 22 | SetLink 23 |
24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /fpdf/doc/addpage.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AddPage 6 | 7 | 8 | 9 |

AddPage

10 | AddPage([string orientation [, mixed size [, int rotation]]]) 11 |

Description

12 | Adds a new page to the document. If a page is already present, the Footer() method is called 13 | first to output the footer. Then the page is added, the current position set to the top-left 14 | corner according to the left and top margins, and Header() is called to display the header. 15 |
16 | The font which was set before calling is automatically restored. There is no need to call 17 | SetFont() again if you want to continue with the same font. The same is true for colors and 18 | line width. 19 |
20 | The origin of the coordinate system is at the top-left corner and increasing ordinates go 21 | downwards. 22 |

Parameters

23 |
24 |
orientation
25 |
26 | Page orientation. Possible values are (case insensitive): 27 |
    28 |
  • P or Portrait
  • 29 |
  • L or Landscape
  • 30 |
31 | The default value is the one passed to the constructor. 32 |
33 |
size
34 |
35 | Page size. It can be either one of the following values (case insensitive): 36 |
    37 |
  • A3
  • 38 |
  • A4
  • 39 |
  • A5
  • 40 |
  • Letter
  • 41 |
  • Legal
  • 42 |
43 | or an array containing the width and the height (expressed in user unit).
44 |
45 | The default value is the one passed to the constructor. 46 |
47 |
rotation
48 |
49 | Angle by which to rotate the page. It must be a multiple of 90; positive values 50 | mean clockwise rotation. The default value is 0. 51 |
52 |
53 |

See also

54 | __construct, 55 | Header, 56 | Footer, 57 | SetMargins 58 |
59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /fpdf/doc/aliasnbpages.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AliasNbPages 6 | 7 | 8 | 9 |

AliasNbPages

10 | AliasNbPages([string alias]) 11 |

Description

12 | Defines an alias for the total number of pages. It will be substituted as the document is 13 | closed. 14 |

Parameters

15 |
16 |
alias
17 |
18 | The alias. Default value: {nb}. 19 |
20 |
21 |

Example

22 |
23 |
class PDF extends FPDF
24 | {
25 | function Footer()
26 | {
27 |     // Go to 1.5 cm from bottom
28 |     $this->SetY(-15);
29 |     // Select Arial italic 8
30 |     $this->SetFont('Arial','I',8);
31 |     // Print current and total page numbers
32 |     $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
33 | }
34 | }
35 | 
36 | $pdf = new PDF();
37 | $pdf->AliasNbPages();
38 |
39 |

See also

40 | PageNo, 41 | Footer 42 |
43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /fpdf/doc/cell.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Cell 6 | 7 | 8 | 9 |

Cell

10 | Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill [, mixed link]]]]]]]) 11 |

Description

12 | Prints a cell (rectangular area) with optional borders, background color and character string. 13 | The upper-left corner of the cell corresponds to the current position. The text can be aligned 14 | or centered. After the call, the current position moves to the right or to the next line. It is 15 | possible to put a link on the text. 16 |
17 | If automatic page breaking is enabled and the cell goes beyond the limit, a page break is 18 | done before outputting. 19 |

Parameters

20 |
21 |
w
22 |
23 | Cell width. If 0, the cell extends up to the right margin. 24 |
25 |
h
26 |
27 | Cell height. 28 | Default value: 0. 29 |
30 |
txt
31 |
32 | String to print. 33 | Default value: empty string. 34 |
35 |
border
36 |
37 | Indicates if borders must be drawn around the cell. The value can be either a number: 38 |
    39 |
  • 0: no border
  • 40 |
  • 1: frame
  • 41 |
42 | or a string containing some or all of the following characters (in any order): 43 |
    44 |
  • L: left
  • 45 |
  • T: top
  • 46 |
  • R: right
  • 47 |
  • B: bottom
  • 48 |
49 | Default value: 0. 50 |
51 |
ln
52 |
53 | Indicates where the current position should go after the call. Possible values are: 54 |
    55 |
  • 0: to the right
  • 56 |
  • 1: to the beginning of the next line
  • 57 |
  • 2: below
  • 58 |
59 | Putting 1 is equivalent to putting 0 and calling Ln() just after. 60 | Default value: 0. 61 |
62 |
align
63 |
64 | Allows to center or align the text. Possible values are: 65 |
    66 |
  • L or empty string: left align (default value)
  • 67 |
  • C: center
  • 68 |
  • R: right align
  • 69 |
70 |
71 |
fill
72 |
73 | Indicates if the cell background must be painted (true) or transparent (false). 74 | Default value: false. 75 |
76 |
link
77 |
78 | URL or identifier returned by AddLink(). 79 |
80 |
81 |

Example

82 |
83 |
// Set font
 84 | $pdf->SetFont('Arial','B',16);
 85 | // Move to 8 cm to the right
 86 | $pdf->Cell(80);
 87 | // Centered text in a framed 20*10 mm cell and line break
 88 | $pdf->Cell(20,10,'Title',1,1,'C');
89 |
90 |

See also

91 | SetFont, 92 | SetDrawColor, 93 | SetFillColor, 94 | SetTextColor, 95 | SetLineWidth, 96 | AddLink, 97 | Ln, 98 | MultiCell, 99 | Write, 100 | SetAutoPageBreak 101 |
102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /fpdf/doc/close.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Close 6 | 7 | 8 | 9 |

Close

10 | Close() 11 |

Description

12 | Terminates the PDF document. It is not necessary to call this method explicitly because Output() 13 | does it automatically. 14 |
15 | If the document contains no page, AddPage() is called to prevent from getting an invalid document. 16 |

See also

17 | Output 18 |
19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /fpdf/doc/error.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Error 6 | 7 | 8 | 9 |

Error

10 | Error(string msg) 11 |

Description

12 | This method is automatically called in case of a fatal error; it simply throws an exception 13 | with the provided message.
14 | An inherited class may override it to customize the error handling but the method should 15 | never return, otherwise the resulting document would probably be invalid. 16 |

Parameters

17 |
18 |
msg
19 |
20 | The error message. 21 |
22 |
23 |
24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /fpdf/doc/footer.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Footer 6 | 7 | 8 | 9 |

Footer

10 | Footer() 11 |

Description

12 | This method is used to render the page footer. It is automatically called by AddPage() and 13 | Close() and should not be called directly by the application. The implementation in FPDF is 14 | empty, so you have to subclass it and override the method if you want a specific processing. 15 |

Example

16 |
17 |
class PDF extends FPDF
18 | {
19 | function Footer()
20 | {
21 |     // Go to 1.5 cm from bottom
22 |     $this->SetY(-15);
23 |     // Select Arial italic 8
24 |     $this->SetFont('Arial','I',8);
25 |     // Print centered page number
26 |     $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
27 | }
28 | }
29 |
30 |

See also

31 | Header 32 |
33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /fpdf/doc/getpageheight.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GetPageHeight 6 | 7 | 8 | 9 |

GetPageHeight

10 | float GetPageHeight() 11 |

Description

12 | Returns the current page height. 13 |

See also

14 | GetPageWidth 15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /fpdf/doc/getpagewidth.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GetPageWidth 6 | 7 | 8 | 9 |

GetPageWidth

10 | float GetPageWidth() 11 |

Description

12 | Returns the current page width. 13 |

See also

14 | GetPageHeight 15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /fpdf/doc/getstringwidth.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GetStringWidth 6 | 7 | 8 | 9 |

GetStringWidth

10 | float GetStringWidth(string s) 11 |

Description

12 | Returns the length of a string in user unit. A font must be selected. 13 |

Parameters

14 |
15 |
s
16 |
17 | The string whose length is to be computed. 18 |
19 |
20 |
21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /fpdf/doc/getx.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GetX 6 | 7 | 8 | 9 |

GetX

10 | float GetX() 11 |

Description

12 | Returns the abscissa of the current position. 13 |

See also

14 | SetX, 15 | GetY, 16 | SetY 17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /fpdf/doc/gety.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | GetY 6 | 7 | 8 | 9 |

GetY

10 | float GetY() 11 |

Description

12 | Returns the ordinate of the current position. 13 |

See also

14 | SetY, 15 | GetX, 16 | SetX 17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /fpdf/doc/header.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Header 6 | 7 | 8 | 9 |

Header

10 | Header() 11 |

Description

12 | This method is used to render the page header. It is automatically called by AddPage() and 13 | should not be called directly by the application. The implementation in FPDF is empty, so 14 | you have to subclass it and override the method if you want a specific processing. 15 |

Example

16 |
17 |
class PDF extends FPDF
18 | {
19 | function Header()
20 | {
21 |     // Select Arial bold 15
22 |     $this->SetFont('Arial','B',15);
23 |     // Move to the right
24 |     $this->Cell(80);
25 |     // Framed title
26 |     $this->Cell(30,10,'Title',1,0,'C');
27 |     // Line break
28 |     $this->Ln(20);
29 | }
30 | }
31 |
32 |

See also

33 | Footer 34 |
35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /fpdf/doc/image.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Image 6 | 7 | 8 | 9 |

Image

10 | Image(string file [, float x [, float y [, float w [, float h [, string type [, mixed link]]]]]]) 11 |

Description

12 | Puts an image. The size it will take on the page can be specified in different ways: 13 |
    14 |
  • explicit width and height (expressed in user unit or dpi)
  • 15 |
  • one explicit dimension, the other being calculated automatically in order to keep the original proportions
  • 16 |
  • no explicit dimension, in which case the image is put at 96 dpi
  • 17 |
18 | Supported formats are JPEG, PNG and GIF. The GD extension is required for GIF. 19 |
20 |
21 | For JPEGs, all flavors are allowed: 22 |
    23 |
  • gray scales
  • 24 |
  • true colors (24 bits)
  • 25 |
  • CMYK (32 bits)
  • 26 |
27 | For PNGs, are allowed: 28 |
    29 |
  • gray scales on at most 8 bits (256 levels)
  • 30 |
  • indexed colors
  • 31 |
  • true colors (24 bits)
  • 32 |
33 | For GIFs: in case of an animated GIF, only the first frame is displayed.
34 |
35 | Transparency is supported.
36 |
37 | The format can be specified explicitly or inferred from the file extension.
38 |
39 | It is possible to put a link on the image.
40 |
41 | Remark: if an image is used several times, only one copy is embedded in the file. 42 |

Parameters

43 |
44 |
file
45 |
46 | Path or URL of the image. 47 |
48 |
x
49 |
50 | Abscissa of the upper-left corner. If not specified or equal to null, the current abscissa 51 | is used. 52 |
53 |
y
54 |
55 | Ordinate of the upper-left corner. If not specified or equal to null, the current ordinate 56 | is used; moreover, a page break is triggered first if necessary (in case automatic page breaking is enabled) 57 | and, after the call, the current ordinate is moved to the bottom of the image. 58 |
59 |
w
60 |
61 | Width of the image in the page. There are three cases: 62 |
    63 |
  • If the value is positive, it represents the width in user unit
  • 64 |
  • If the value is negative, the absolute value represents the horizontal resolution in dpi
  • 65 |
  • If the value is not specified or equal to zero, it is automatically calculated
  • 66 |
67 |
68 |
h
69 |
70 | Height of the image in the page. There are three cases: 71 |
    72 |
  • If the value is positive, it represents the height in user unit
  • 73 |
  • If the value is negative, the absolute value represents the vertical resolution in dpi
  • 74 |
  • If the value is not specified or equal to zero, it is automatically calculated
  • 75 |
76 |
77 |
type
78 |
79 | Image format. Possible values are (case insensitive): JPG, JPEG, PNG and GIF. 80 | If not specified, the type is inferred from the file extension. 81 |
82 |
link
83 |
84 | URL or identifier returned by AddLink(). 85 |
86 |
87 |

Example

88 |
89 |
// Insert a logo in the top-left corner at 300 dpi
 90 | $pdf->Image('logo.png',10,10,-300);
 91 | // Insert a dynamic image from a URL
 92 | $pdf->Image('http://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World',60,30,90,0,'PNG');
93 |
94 |

See also

95 | AddLink 96 |
97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /fpdf/doc/index.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FPDF 1.81 Reference Manual 6 | 7 | 8 | 9 |

FPDF 1.81 Reference Manual

10 | __construct - constructor
11 | AcceptPageBreak - accept or not automatic page break
12 | AddFont - add a new font
13 | AddLink - create an internal link
14 | AddPage - add a new page
15 | AliasNbPages - define an alias for number of pages
16 | Cell - print a cell
17 | Close - terminate the document
18 | Error - fatal error
19 | Footer - page footer
20 | GetPageHeight - get current page height
21 | GetPageWidth - get current page width
22 | GetStringWidth - compute string length
23 | GetX - get current x position
24 | GetY - get current y position
25 | Header - page header
26 | Image - output an image
27 | Line - draw a line
28 | Link - put a link
29 | Ln - line break
30 | MultiCell - print text with line breaks
31 | Output - save or send the document
32 | PageNo - page number
33 | Rect - draw a rectangle
34 | SetAuthor - set the document author
35 | SetAutoPageBreak - set the automatic page breaking mode
36 | SetCompression - turn compression on or off
37 | SetCreator - set document creator
38 | SetDisplayMode - set display mode
39 | SetDrawColor - set drawing color
40 | SetFillColor - set filling color
41 | SetFont - set font
42 | SetFontSize - set font size
43 | SetKeywords - associate keywords with document
44 | SetLeftMargin - set left margin
45 | SetLineWidth - set line width
46 | SetLink - set internal link destination
47 | SetMargins - set margins
48 | SetRightMargin - set right margin
49 | SetSubject - set document subject
50 | SetTextColor - set text color
51 | SetTitle - set document title
52 | SetTopMargin - set top margin
53 | SetX - set current x position
54 | SetXY - set current x and y positions
55 | SetY - set current y position and optionally reset x
56 | Text - print a string
57 | Write - print flowing text
58 | 59 | 60 | -------------------------------------------------------------------------------- /fpdf/doc/line.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Line 6 | 7 | 8 | 9 |

Line

10 | Line(float x1, float y1, float x2, float y2) 11 |

Description

12 | Draws a line between two points. 13 |

Parameters

14 |
15 |
x1
16 |
17 | Abscissa of first point. 18 |
19 |
y1
20 |
21 | Ordinate of first point. 22 |
23 |
x2
24 |
25 | Abscissa of second point. 26 |
27 |
y2
28 |
29 | Ordinate of second point. 30 |
31 |
32 |

See also

33 | SetLineWidth, 34 | SetDrawColor 35 |
36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /fpdf/doc/link.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Link 6 | 7 | 8 | 9 |

Link

10 | Link(float x, float y, float w, float h, mixed link) 11 |

Description

12 | Puts a link on a rectangular area of the page. Text or image links are generally put via Cell(), 13 | Write() or Image(), but this method can be useful for instance to define a clickable area inside 14 | an image. 15 |

Parameters

16 |
17 |
x
18 |
19 | Abscissa of the upper-left corner of the rectangle. 20 |
21 |
y
22 |
23 | Ordinate of the upper-left corner of the rectangle. 24 |
25 |
w
26 |
27 | Width of the rectangle. 28 |
29 |
h
30 |
31 | Height of the rectangle. 32 |
33 |
link
34 |
35 | URL or identifier returned by AddLink(). 36 |
37 |
38 |

See also

39 | AddLink, 40 | Cell, 41 | Write, 42 | Image 43 |
44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /fpdf/doc/ln.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Ln 6 | 7 | 8 | 9 |

Ln

10 | Ln([float h]) 11 |

Description

12 | Performs a line break. The current abscissa goes back to the left margin and the ordinate 13 | increases by the amount passed in parameter. 14 |

Parameters

15 |
16 |
h
17 |
18 | The height of the break. 19 |
20 | By default, the value equals the height of the last printed cell. 21 |
22 |
23 |

See also

24 | Cell 25 |
26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /fpdf/doc/multicell.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | MultiCell 6 | 7 | 8 | 9 |

MultiCell

10 | MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]]) 11 |

Description

12 | This method allows printing text with line breaks. They can be automatic (as soon as the 13 | text reaches the right border of the cell) or explicit (via the \n character). As many cells 14 | as necessary are output, one below the other. 15 |
16 | Text can be aligned, centered or justified. The cell block can be framed and the background 17 | painted. 18 |

Parameters

19 |
20 |
w
21 |
22 | Width of cells. If 0, they extend up to the right margin of the page. 23 |
24 |
h
25 |
26 | Height of cells. 27 |
28 |
txt
29 |
30 | String to print. 31 |
32 |
border
33 |
34 | Indicates if borders must be drawn around the cell block. The value can be either a number: 35 |
    36 |
  • 0: no border
  • 37 |
  • 1: frame
  • 38 |
39 | or a string containing some or all of the following characters (in any order): 40 |
    41 |
  • L: left
  • 42 |
  • T: top
  • 43 |
  • R: right
  • 44 |
  • B: bottom
  • 45 |
46 | Default value: 0. 47 |
48 |
align
49 |
50 | Sets the text alignment. Possible values are: 51 |
    52 |
  • L: left alignment
  • 53 |
  • C: center
  • 54 |
  • R: right alignment
  • 55 |
  • J: justification (default value)
  • 56 |
57 |
58 |
fill
59 |
60 | Indicates if the cell background must be painted (true) or transparent (false). 61 | Default value: false. 62 |
63 |
64 |

See also

65 | SetFont, 66 | SetDrawColor, 67 | SetFillColor, 68 | SetTextColor, 69 | SetLineWidth, 70 | Cell, 71 | Write, 72 | SetAutoPageBreak 73 |
74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /fpdf/doc/output.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Output 6 | 7 | 8 | 9 |

Output

10 | string Output([string dest [, string name [, boolean isUTF8]]]) 11 |

Description

12 | Send the document to a given destination: browser, file or string. In the case of a browser, the 13 | PDF viewer may be used or a download may be forced. 14 |
15 | The method first calls Close() if necessary to terminate the document. 16 |

Parameters

17 |
18 |
dest
19 |
20 | Destination where to send the document. It can be one of the following: 21 |
    22 |
  • I: send the file inline to the browser. The PDF viewer is used if available.
  • 23 |
  • D: send to the browser and force a file download with the name given by name.
  • 24 |
  • F: save to a local file with the name given by name (may include a path).
  • 25 |
  • S: return the document as a string.
  • 26 |
27 | The default value is I. 28 |
29 |
name
30 |
31 | The name of the file. It is ignored in case of destination S.
32 | The default value is doc.pdf. 33 |
34 |
isUTF8
35 |
36 | Indicates if name is encoded in ISO-8859-1 (false) or UTF-8 (true). 37 | Only used for destinations I and D.
38 | The default value is false. 39 |
40 |
41 |

See also

42 | Close 43 |
44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /fpdf/doc/pageno.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PageNo 6 | 7 | 8 | 9 |

PageNo

10 | int PageNo() 11 |

Description

12 | Returns the current page number. 13 |

See also

14 | AliasNbPages 15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /fpdf/doc/rect.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Rect 6 | 7 | 8 | 9 |

Rect

10 | Rect(float x, float y, float w, float h [, string style]) 11 |

Description

12 | Outputs a rectangle. It can be drawn (border only), filled (with no border) or both. 13 |

Parameters

14 |
15 |
x
16 |
17 | Abscissa of upper-left corner. 18 |
19 |
y
20 |
21 | Ordinate of upper-left corner. 22 |
23 |
w
24 |
25 | Width. 26 |
27 |
h
28 |
29 | Height. 30 |
31 |
style
32 |
33 | Style of rendering. Possible values are: 34 |
    35 |
  • D or empty string: draw. This is the default value.
  • 36 |
  • F: fill
  • 37 |
  • DF or FD: draw and fill
  • 38 |
39 |
40 |
41 |

See also

42 | SetLineWidth, 43 | SetDrawColor, 44 | SetFillColor 45 |
46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /fpdf/doc/setauthor.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetAuthor 6 | 7 | 8 | 9 |

SetAuthor

10 | SetAuthor(string author [, boolean isUTF8]) 11 |

Description

12 | Defines the author of the document. 13 |

Parameters

14 |
15 |
author
16 |
17 | The name of the author. 18 |
19 |
isUTF8
20 |
21 | Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true).
22 | Default value: false. 23 |
24 |
25 |

See also

26 | SetCreator, 27 | SetKeywords, 28 | SetSubject, 29 | SetTitle 30 |
31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /fpdf/doc/setautopagebreak.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetAutoPageBreak 6 | 7 | 8 | 9 |

SetAutoPageBreak

10 | SetAutoPageBreak(boolean auto [, float margin]) 11 |

Description

12 | Enables or disables the automatic page breaking mode. When enabling, the second parameter is 13 | the distance from the bottom of the page that defines the triggering limit. By default, the 14 | mode is on and the margin is 2 cm. 15 |

Parameters

16 |
17 |
auto
18 |
19 | Boolean indicating if mode should be on or off. 20 |
21 |
margin
22 |
23 | Distance from the bottom of the page. 24 |
25 |
26 |

See also

27 | Cell, 28 | MultiCell, 29 | AcceptPageBreak 30 |
31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /fpdf/doc/setcompression.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetCompression 6 | 7 | 8 | 9 |

SetCompression

10 | SetCompression(boolean compress) 11 |

Description

12 | Activates or deactivates page compression. When activated, the internal representation of 13 | each page is compressed, which leads to a compression ratio of about 2 for the resulting 14 | document. 15 |
16 | Compression is on by default. 17 |
18 |
19 | Note: the Zlib extension is required for this feature. If not present, compression 20 | will be turned off. 21 |

Parameters

22 |
23 |
compress
24 |
25 | Boolean indicating if compression must be enabled. 26 |
27 |
28 |
29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /fpdf/doc/setcreator.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetCreator 6 | 7 | 8 | 9 |

SetCreator

10 | SetCreator(string creator [, boolean isUTF8]) 11 |

Description

12 | Defines the creator of the document. This is typically the name of the application that 13 | generates the PDF. 14 |

Parameters

15 |
16 |
creator
17 |
18 | The name of the creator. 19 |
20 |
isUTF8
21 |
22 | Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true).
23 | Default value: false. 24 |
25 |
26 |

See also

27 | SetAuthor, 28 | SetKeywords, 29 | SetSubject, 30 | SetTitle 31 |
32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /fpdf/doc/setdisplaymode.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetDisplayMode 6 | 7 | 8 | 9 |

SetDisplayMode

10 | SetDisplayMode(mixed zoom [, string layout]) 11 |

Description

12 | Defines the way the document is to be displayed by the viewer. The zoom level can be set: pages can be 13 | displayed entirely on screen, occupy the full width of the window, use real size, be scaled by a 14 | specific zooming factor or use viewer default (configured in the Preferences menu of Adobe Reader). 15 | The page layout can be specified too: single at once, continuous display, two columns or viewer 16 | default. 17 |

Parameters

18 |
19 |
zoom
20 |
21 | The zoom to use. It can be one of the following string values: 22 |
    23 |
  • fullpage: displays the entire page on screen
  • 24 |
  • fullwidth: uses maximum width of window
  • 25 |
  • real: uses real size (equivalent to 100% zoom)
  • 26 |
  • default: uses viewer default mode
  • 27 |
28 | or a number indicating the zooming factor to use. 29 |
30 |
layout
31 |
32 | The page layout. Possible values are: 33 |
    34 |
  • single: displays one page at once
  • 35 |
  • continuous: displays pages continuously
  • 36 |
  • two: displays two pages on two columns
  • 37 |
  • default: uses viewer default mode
  • 38 |
39 | Default value is default. 40 |
41 |
42 |
43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /fpdf/doc/setdrawcolor.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetDrawColor 6 | 7 | 8 | 9 |

SetDrawColor

10 | SetDrawColor(int r [, int g, int b]) 11 |

Description

12 | Defines the color used for all drawing operations (lines, rectangles and cell borders). It 13 | can be expressed in RGB components or gray scale. The method can be called before the first 14 | page is created and the value is retained from page to page. 15 |

Parameters

16 |
17 |
r
18 |
19 | If g et b are given, red component; if not, indicates the gray level. 20 | Value between 0 and 255. 21 |
22 |
g
23 |
24 | Green component (between 0 and 255). 25 |
26 |
b
27 |
28 | Blue component (between 0 and 255). 29 |
30 |
31 |

See also

32 | SetFillColor, 33 | SetTextColor, 34 | Line, 35 | Rect, 36 | Cell, 37 | MultiCell 38 |
39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /fpdf/doc/setfillcolor.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetFillColor 6 | 7 | 8 | 9 |

SetFillColor

10 | SetFillColor(int r [, int g, int b]) 11 |

Description

12 | Defines the color used for all filling operations (filled rectangles and cell backgrounds). 13 | It can be expressed in RGB components or gray scale. The method can be called before the first 14 | page is created and the value is retained from page to page. 15 |

Parameters

16 |
17 |
r
18 |
19 | If g and b are given, red component; if not, indicates the gray level. 20 | Value between 0 and 255. 21 |
22 |
g
23 |
24 | Green component (between 0 and 255). 25 |
26 |
b
27 |
28 | Blue component (between 0 and 255). 29 |
30 |
31 |

See also

32 | SetDrawColor, 33 | SetTextColor, 34 | Rect, 35 | Cell, 36 | MultiCell 37 |
38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /fpdf/doc/setfont.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetFont 6 | 7 | 8 | 9 |

SetFont

10 | SetFont(string family [, string style [, float size]]) 11 |

Description

12 | Sets the font used to print character strings. It is mandatory to call this method 13 | at least once before printing text or the resulting document would not be valid. 14 |
15 | The font can be either a standard one or a font added via the AddFont() method. Standard fonts 16 | use the Windows encoding cp1252 (Western Europe). 17 |
18 | The method can be called before the first page is created and the font is kept from page 19 | to page. 20 |
21 | If you just wish to change the current font size, it is simpler to call SetFontSize(). 22 |
23 |
24 | Note: the font definition files must be accessible. They are searched successively in: 25 |
    26 |
  • The directory defined by the FPDF_FONTPATH constant (if this constant is defined)
  • 27 |
  • The font directory located in the same directory as fpdf.php (if it exists)
  • 28 |
  • The directories accessible through include()
  • 29 |
30 | Example using FPDF_FONTPATH: 31 |
32 |
define('FPDF_FONTPATH','/home/www/font');
33 | require('fpdf.php');
34 |
35 | If the file corresponding to the requested font is not found, the error "Could not include font 36 | definition file" is raised. 37 |

Parameters

38 |
39 |
family
40 |
41 | Family font. It can be either a name defined by AddFont() or one of the standard families (case 42 | insensitive): 43 |
    44 |
  • Courier (fixed-width)
  • 45 |
  • Helvetica or Arial (synonymous; sans serif)
  • 46 |
  • Times (serif)
  • 47 |
  • Symbol (symbolic)
  • 48 |
  • ZapfDingbats (symbolic)
  • 49 |
50 | It is also possible to pass an empty string. In that case, the current family is kept. 51 |
52 |
style
53 |
54 | Font style. Possible values are (case insensitive): 55 |
    56 |
  • empty string: regular
  • 57 |
  • B: bold
  • 58 |
  • I: italic
  • 59 |
  • U: underline
  • 60 |
61 | or any combination. The default value is regular. 62 | Bold and italic styles do not apply to Symbol and ZapfDingbats. 63 |
64 |
size
65 |
66 | Font size in points. 67 |
68 | The default value is the current size. If no size has been specified since the beginning of 69 | the document, the value taken is 12. 70 |
71 |
72 |

Example

73 |
74 |
// Times regular 12
75 | $pdf->SetFont('Times');
76 | // Arial bold 14
77 | $pdf->SetFont('Arial','B',14);
78 | // Removes bold
79 | $pdf->SetFont('');
80 | // Times bold, italic and underlined 14
81 | $pdf->SetFont('Times','BIU');
82 |
83 |

See also

84 | AddFont, 85 | SetFontSize, 86 | Cell, 87 | MultiCell, 88 | Write 89 |
90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /fpdf/doc/setfontsize.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetFontSize 6 | 7 | 8 | 9 |

SetFontSize

10 | SetFontSize(float size) 11 |

Description

12 | Defines the size of the current font. 13 |

Parameters

14 |
15 |
size
16 |
17 | The size (in points). 18 |
19 |
20 |

See also

21 | SetFont 22 |
23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /fpdf/doc/setkeywords.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetKeywords 6 | 7 | 8 | 9 |

SetKeywords

10 | SetKeywords(string keywords [, boolean isUTF8]) 11 |

Description

12 | Associates keywords with the document, generally in the form 'keyword1 keyword2 ...'. 13 |

Parameters

14 |
15 |
keywords
16 |
17 | The list of keywords. 18 |
19 |
isUTF8
20 |
21 | Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true).
22 | Default value: false. 23 |
24 |
25 |

See also

26 | SetAuthor, 27 | SetCreator, 28 | SetSubject, 29 | SetTitle 30 |
31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /fpdf/doc/setleftmargin.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetLeftMargin 6 | 7 | 8 | 9 |

SetLeftMargin

10 | SetLeftMargin(float margin) 11 |

Description

12 | Defines the left margin. The method can be called before creating the first page. 13 |
14 | If the current abscissa gets out of page, it is brought back to the margin. 15 |

Parameters

16 |
17 |
margin
18 |
19 | The margin. 20 |
21 |
22 |

See also

23 | SetTopMargin, 24 | SetRightMargin, 25 | SetAutoPageBreak, 26 | SetMargins 27 |
28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /fpdf/doc/setlinewidth.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetLineWidth 6 | 7 | 8 | 9 |

SetLineWidth

10 | SetLineWidth(float width) 11 |

Description

12 | Defines the line width. By default, the value equals 0.2 mm. The method can be called before 13 | the first page is created and the value is retained from page to page. 14 |

Parameters

15 |
16 |
width
17 |
18 | The width. 19 |
20 |
21 |

See also

22 | Line, 23 | Rect, 24 | Cell, 25 | MultiCell 26 |
27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /fpdf/doc/setlink.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetLink 6 | 7 | 8 | 9 |

SetLink

10 | SetLink(int link [, float y [, int page]]) 11 |

Description

12 | Defines the page and position a link points to. 13 |

Parameters

14 |
15 |
link
16 |
17 | The link identifier returned by AddLink(). 18 |
19 |
y
20 |
21 | Ordinate of target position; -1 indicates the current position. 22 | The default value is 0 (top of page). 23 |
24 |
page
25 |
26 | Number of target page; -1 indicates the current page. This is the default value. 27 |
28 |
29 |

See also

30 | AddLink 31 |
32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /fpdf/doc/setmargins.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetMargins 6 | 7 | 8 | 9 |

SetMargins

10 | SetMargins(float left, float top [, float right]) 11 |

Description

12 | Defines the left, top and right margins. By default, they equal 1 cm. Call this method to change 13 | them. 14 |

Parameters

15 |
16 |
left
17 |
18 | Left margin. 19 |
20 |
top
21 |
22 | Top margin. 23 |
24 |
right
25 |
26 | Right margin. Default value is the left one. 27 |
28 |
29 |

See also

30 | SetLeftMargin, 31 | SetTopMargin, 32 | SetRightMargin, 33 | SetAutoPageBreak 34 |
35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /fpdf/doc/setrightmargin.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetRightMargin 6 | 7 | 8 | 9 |

SetRightMargin

10 | SetRightMargin(float margin) 11 |

Description

12 | Defines the right margin. The method can be called before creating the first page. 13 |

Parameters

14 |
15 |
margin
16 |
17 | The margin. 18 |
19 |
20 |

See also

21 | SetLeftMargin, 22 | SetTopMargin, 23 | SetAutoPageBreak, 24 | SetMargins 25 |
26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /fpdf/doc/setsubject.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetSubject 6 | 7 | 8 | 9 |

SetSubject

10 | SetSubject(string subject [, boolean isUTF8]) 11 |

Description

12 | Defines the subject of the document. 13 |

Parameters

14 |
15 |
subject
16 |
17 | The subject. 18 |
19 |
isUTF8
20 |
21 | Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true).
22 | Default value: false. 23 |
24 |
25 |

See also

26 | SetAuthor, 27 | SetCreator, 28 | SetKeywords, 29 | SetTitle 30 |
31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /fpdf/doc/settextcolor.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetTextColor 6 | 7 | 8 | 9 |

SetTextColor

10 | SetTextColor(int r [, int g, int b]) 11 |

Description

12 | Defines the color used for text. It can be expressed in RGB components or gray scale. The 13 | method can be called before the first page is created and the value is retained from page to 14 | page. 15 |

Parameters

16 |
17 |
r
18 |
19 | If g et b are given, red component; if not, indicates the gray level. 20 | Value between 0 and 255. 21 |
22 |
g
23 |
24 | Green component (between 0 and 255). 25 |
26 |
b
27 |
28 | Blue component (between 0 and 255). 29 |
30 |
31 |

See also

32 | SetDrawColor, 33 | SetFillColor, 34 | Text, 35 | Cell, 36 | MultiCell 37 |
38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /fpdf/doc/settitle.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetTitle 6 | 7 | 8 | 9 |

SetTitle

10 | SetTitle(string title [, boolean isUTF8]) 11 |

Description

12 | Defines the title of the document. 13 |

Parameters

14 |
15 |
title
16 |
17 | The title. 18 |
19 |
isUTF8
20 |
21 | Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true).
22 | Default value: false. 23 |
24 |
25 |

See also

26 | SetAuthor, 27 | SetCreator, 28 | SetKeywords, 29 | SetSubject 30 |
31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /fpdf/doc/settopmargin.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetTopMargin 6 | 7 | 8 | 9 |

SetTopMargin

10 | SetTopMargin(float margin) 11 |

Description

12 | Defines the top margin. The method can be called before creating the first page. 13 |

Parameters

14 |
15 |
margin
16 |
17 | The margin. 18 |
19 |
20 |

See also

21 | SetLeftMargin, 22 | SetRightMargin, 23 | SetAutoPageBreak, 24 | SetMargins 25 |
26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /fpdf/doc/setx.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetX 6 | 7 | 8 | 9 |

SetX

10 | SetX(float x) 11 |

Description

12 | Defines the abscissa of the current position. If the passed value is negative, it is relative 13 | to the right of the page. 14 |

Parameters

15 |
16 |
x
17 |
18 | The value of the abscissa. 19 |
20 |
21 |

See also

22 | GetX, 23 | GetY, 24 | SetY, 25 | SetXY 26 |
27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /fpdf/doc/setxy.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetXY 6 | 7 | 8 | 9 |

SetXY

10 | SetXY(float x, float y) 11 |

Description

12 | Defines the abscissa and ordinate of the current position. If the passed values are negative, 13 | they are relative respectively to the right and bottom of the page. 14 |

Parameters

15 |
16 |
x
17 |
18 | The value of the abscissa. 19 |
20 |
y
21 |
22 | The value of the ordinate. 23 |
24 |
25 |

See also

26 | SetX, 27 | SetY 28 |
29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /fpdf/doc/sety.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SetY 6 | 7 | 8 | 9 |

SetY

10 | SetY(float y [, boolean resetX]) 11 |

Description

12 | Sets the ordinate and optionally moves the current abscissa back to the left margin. If the value 13 | is negative, it is relative to the bottom of the page. 14 |

Parameters

15 |
16 |
y
17 |
18 | The value of the ordinate. 19 |
20 |
resetX
21 |
22 | Whether to reset the abscissa. Default value: true. 23 |
24 |
25 |

See also

26 | GetX, 27 | GetY, 28 | SetX, 29 | SetXY 30 |
31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /fpdf/doc/text.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Text 6 | 7 | 8 | 9 |

Text

10 | Text(float x, float y, string txt) 11 |

Description

12 | Prints a character string. The origin is on the left of the first character, on the baseline. 13 | This method allows to place a string precisely on the page, but it is usually easier to use 14 | Cell(), MultiCell() or Write() which are the standard methods to print text. 15 |

Parameters

16 |
17 |
x
18 |
19 | Abscissa of the origin. 20 |
21 |
y
22 |
23 | Ordinate of the origin. 24 |
25 |
txt
26 |
27 | String to print. 28 |
29 |
30 |

See also

31 | SetFont, 32 | SetTextColor, 33 | Cell, 34 | MultiCell, 35 | Write 36 |
37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /fpdf/doc/write.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Write 6 | 7 | 8 | 9 |

Write

10 | Write(float h, string txt [, mixed link]) 11 |

Description

12 | This method prints text from the current position. When the right margin is reached (or the \n 13 | character is met) a line break occurs and text continues from the left margin. Upon method exit, 14 | the current position is left just at the end of the text. 15 |
16 | It is possible to put a link on the text. 17 |

Parameters

18 |
19 |
h
20 |
21 | Line height. 22 |
23 |
txt
24 |
25 | String to print. 26 |
27 |
link
28 |
29 | URL or identifier returned by AddLink(). 30 |
31 |
32 |

Example

33 |
34 |
// Begin with regular font
35 | $pdf->SetFont('Arial','',14);
36 | $pdf->Write(5,'Visit ');
37 | // Then put a blue underlined link
38 | $pdf->SetTextColor(0,0,255);
39 | $pdf->SetFont('','U');
40 | $pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');
41 |
42 |

See also

43 | SetFont, 44 | SetTextColor, 45 | AddLink, 46 | MultiCell, 47 | SetAutoPageBreak 48 |
49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /fpdf/font/courier.php: -------------------------------------------------------------------------------- 1 | array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 10 | ?> 11 | -------------------------------------------------------------------------------- /fpdf/font/courierb.php: -------------------------------------------------------------------------------- 1 | array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 10 | ?> 11 | -------------------------------------------------------------------------------- /fpdf/font/courierbi.php: -------------------------------------------------------------------------------- 1 | array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 10 | ?> 11 | -------------------------------------------------------------------------------- /fpdf/font/courieri.php: -------------------------------------------------------------------------------- 1 | array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 10 | ?> 11 | -------------------------------------------------------------------------------- /fpdf/font/helvetica.php: -------------------------------------------------------------------------------- 1 | 278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, 8 | chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584, 9 | ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667, 10 | 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, 11 | 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833, 12 | 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556, 13 | chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, 14 | chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, 15 | chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, 16 | chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, 17 | chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556, 18 | chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); 19 | $enc = 'cp1252'; 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 21 | ?> 22 | -------------------------------------------------------------------------------- /fpdf/font/helveticab.php: -------------------------------------------------------------------------------- 1 | 278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, 8 | chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, 9 | ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, 10 | 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, 11 | 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, 12 | 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556, 13 | chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, 14 | chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, 15 | chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, 16 | chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, 17 | chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611, 18 | chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556); 19 | $enc = 'cp1252'; 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 21 | ?> 22 | -------------------------------------------------------------------------------- /fpdf/font/helveticabi.php: -------------------------------------------------------------------------------- 1 | 278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, 8 | chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, 9 | ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, 10 | 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, 11 | 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, 12 | 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556, 13 | chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, 14 | chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, 15 | chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, 16 | chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, 17 | chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611, 18 | chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556); 19 | $enc = 'cp1252'; 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 21 | ?> 22 | -------------------------------------------------------------------------------- /fpdf/font/helveticai.php: -------------------------------------------------------------------------------- 1 | 278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, 8 | chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584, 9 | ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667, 10 | 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, 11 | 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833, 12 | 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556, 13 | chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, 14 | chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, 15 | chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, 16 | chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, 17 | chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556, 18 | chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); 19 | $enc = 'cp1252'; 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 21 | ?> 22 | -------------------------------------------------------------------------------- /fpdf/font/symbol.php: -------------------------------------------------------------------------------- 1 | 250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, 8 | chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549, 9 | ','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722, 10 | 'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768, 11 | 'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576, 12 | 'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0, 13 | chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, 14 | chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603, 15 | chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768, 16 | chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042, 17 | chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329, 18 | chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0); 19 | $uv = array(32=>160,33=>33,34=>8704,35=>35,36=>8707,37=>array(37,2),39=>8715,40=>array(40,2),42=>8727,43=>array(43,2),45=>8722,46=>array(46,18),64=>8773,65=>array(913,2),67=>935,68=>array(916,2),70=>934,71=>915,72=>919,73=>921,74=>977,75=>array(922,4),79=>array(927,2),81=>920,82=>929,83=>array(931,3),86=>962,87=>937,88=>926,89=>936,90=>918,91=>91,92=>8756,93=>93,94=>8869,95=>95,96=>63717,97=>array(945,2),99=>967,100=>array(948,2),102=>966,103=>947,104=>951,105=>953,106=>981,107=>array(954,4),111=>array(959,2),113=>952,114=>961,115=>array(963,3),118=>982,119=>969,120=>958,121=>968,122=>950,123=>array(123,3),126=>8764,160=>8364,161=>978,162=>8242,163=>8804,164=>8725,165=>8734,166=>402,167=>9827,168=>9830,169=>9829,170=>9824,171=>8596,172=>array(8592,4),176=>array(176,2),178=>8243,179=>8805,180=>215,181=>8733,182=>8706,183=>8226,184=>247,185=>array(8800,2),187=>8776,188=>8230,189=>array(63718,2),191=>8629,192=>8501,193=>8465,194=>8476,195=>8472,196=>8855,197=>8853,198=>8709,199=>array(8745,2),201=>8835,202=>8839,203=>8836,204=>8834,205=>8838,206=>array(8712,2),208=>8736,209=>8711,210=>63194,211=>63193,212=>63195,213=>8719,214=>8730,215=>8901,216=>172,217=>array(8743,2),219=>8660,220=>array(8656,4),224=>9674,225=>9001,226=>array(63720,3),229=>8721,230=>array(63723,10),241=>9002,242=>8747,243=>8992,244=>63733,245=>8993,246=>array(63734,9)); 20 | ?> 21 | -------------------------------------------------------------------------------- /fpdf/font/times.php: -------------------------------------------------------------------------------- 1 | 250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, 8 | chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564, 9 | ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722, 10 | 'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944, 11 | 'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778, 12 | 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, 13 | chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980, 14 | chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333, 15 | chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, 16 | chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, 17 | chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500, 18 | chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500); 19 | $enc = 'cp1252'; 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 21 | ?> 22 | -------------------------------------------------------------------------------- /fpdf/font/timesb.php: -------------------------------------------------------------------------------- 1 | 250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, 8 | chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, 9 | ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722, 10 | 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000, 11 | 'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833, 12 | 'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, 13 | chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, 14 | chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333, 15 | chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, 16 | chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, 17 | chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, 18 | chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); 19 | $enc = 'cp1252'; 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 21 | ?> 22 | -------------------------------------------------------------------------------- /fpdf/font/timesbi.php: -------------------------------------------------------------------------------- 1 | 250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, 8 | chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, 9 | ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667, 10 | 'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889, 11 | 'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778, 12 | 'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, 13 | chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, 14 | chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333, 15 | chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, 16 | chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, 17 | chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, 18 | chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444); 19 | $enc = 'cp1252'; 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 21 | ?> 22 | -------------------------------------------------------------------------------- /fpdf/font/timesi.php: -------------------------------------------------------------------------------- 1 | 250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, 8 | chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675, 9 | ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611, 10 | 'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833, 11 | 'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722, 12 | 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, 13 | chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980, 14 | chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333, 15 | chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611, 16 | chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, 17 | chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500, 18 | chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444); 19 | $enc = 'cp1252'; 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 21 | ?> 22 | -------------------------------------------------------------------------------- /fpdf/font/zapfdingbats.php: -------------------------------------------------------------------------------- 1 | 0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0, 8 | chr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'"'=>961,'#'=>974,'$'=>980,'%'=>719,'&'=>789,'\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939, 9 | ','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692, 10 | 'B'=>786,'C'=>788,'D'=>788,'E'=>790,'F'=>793,'G'=>794,'H'=>816,'I'=>823,'J'=>789,'K'=>841,'L'=>823,'M'=>833,'N'=>816,'O'=>831,'P'=>923,'Q'=>744,'R'=>723,'S'=>749,'T'=>790,'U'=>792,'V'=>695,'W'=>776, 11 | 'X'=>768,'Y'=>792,'Z'=>759,'['=>707,'\\'=>708,']'=>682,'^'=>701,'_'=>826,'`'=>815,'a'=>789,'b'=>789,'c'=>707,'d'=>687,'e'=>696,'f'=>689,'g'=>786,'h'=>787,'i'=>713,'j'=>791,'k'=>785,'l'=>791,'m'=>873, 12 | 'n'=>761,'o'=>762,'p'=>762,'q'=>759,'r'=>759,'s'=>892,'t'=>892,'u'=>788,'v'=>784,'w'=>438,'x'=>138,'y'=>277,'z'=>415,'{'=>392,'|'=>392,'}'=>668,'~'=>668,chr(127)=>0,chr(128)=>390,chr(129)=>390,chr(130)=>317,chr(131)=>317, 13 | chr(132)=>276,chr(133)=>276,chr(134)=>509,chr(135)=>509,chr(136)=>410,chr(137)=>410,chr(138)=>234,chr(139)=>234,chr(140)=>334,chr(141)=>334,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, 14 | chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>0,chr(161)=>732,chr(162)=>544,chr(163)=>544,chr(164)=>910,chr(165)=>667,chr(166)=>760,chr(167)=>760,chr(168)=>776,chr(169)=>595,chr(170)=>694,chr(171)=>626,chr(172)=>788,chr(173)=>788,chr(174)=>788,chr(175)=>788, 15 | chr(176)=>788,chr(177)=>788,chr(178)=>788,chr(179)=>788,chr(180)=>788,chr(181)=>788,chr(182)=>788,chr(183)=>788,chr(184)=>788,chr(185)=>788,chr(186)=>788,chr(187)=>788,chr(188)=>788,chr(189)=>788,chr(190)=>788,chr(191)=>788,chr(192)=>788,chr(193)=>788,chr(194)=>788,chr(195)=>788,chr(196)=>788,chr(197)=>788, 16 | chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918, 17 | chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874, 18 | chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0); 19 | $uv = array(32=>32,33=>array(9985,4),37=>9742,38=>array(9990,4),42=>9755,43=>9758,44=>array(9996,28),72=>9733,73=>array(10025,35),108=>9679,109=>10061,110=>9632,111=>array(10063,4),115=>9650,116=>9660,117=>9670,118=>10070,119=>9687,120=>array(10072,7),128=>array(10088,14),161=>array(10081,7),168=>9827,169=>9830,170=>9829,171=>9824,172=>array(9312,10),182=>array(10102,31),213=>8594,214=>array(8596,2),216=>array(10136,24),241=>array(10161,14)); 20 | ?> 21 | -------------------------------------------------------------------------------- /fpdf/fpdf.css: -------------------------------------------------------------------------------- 1 | body {font-family:"Times New Roman",serif} 2 | h1 {font:bold 135% Arial,sans-serif; color:#4000A0; margin-bottom:0.9em} 3 | h2 {font:bold 95% Arial,sans-serif; color:#900000; margin-top:1.5em; margin-bottom:1em} 4 | dl.param dt {text-decoration:underline} 5 | dl.param dd {margin-top:1em; margin-bottom:1em} 6 | dl.param ul {margin-top:1em; margin-bottom:1em} 7 | tt, code, kbd {font-family:"Courier New",Courier,monospace; font-size:82%} 8 | div.source {margin-top:1.4em; margin-bottom:1.3em} 9 | div.source pre {display:table; border:1px solid #24246A; width:100%; margin:0em; font-family:inherit; font-size:100%} 10 | div.source code {display:block; border:1px solid #C5C5EC; background-color:#F0F5FF; padding:6px; color:#000000} 11 | div.doc-source {margin-top:1.4em; margin-bottom:1.3em} 12 | div.doc-source pre {display:table; width:100%; margin:0em; font-family:inherit; font-size:100%} 13 | div.doc-source code {display:block; background-color:#E0E0E0; padding:4px} 14 | .kw {color:#000080; font-weight:bold} 15 | .str {color:#CC0000} 16 | .cmt {color:#008000} 17 | p.demo {text-align:center; margin-top:-0.9em} 18 | a.demo {text-decoration:none; font-weight:bold; color:#0000CC} 19 | a.demo:link {text-decoration:none; font-weight:bold; color:#0000CC} 20 | a.demo:hover {text-decoration:none; font-weight:bold; color:#0000FF} 21 | a.demo:active {text-decoration:none; font-weight:bold; color:#0000FF} 22 | -------------------------------------------------------------------------------- /fpdf/install.txt: -------------------------------------------------------------------------------- 1 | The FPDF library is made up of the following elements: 2 | 3 | - the main file, fpdf.php, which contains the class 4 | - the font definition files located in the font directory 5 | 6 | The font definition files are necessary as soon as you want to output some text in a document. 7 | If they are not accessible, the SetFont() method will produce the following error: 8 | 9 | FPDF error: Could not include font definition file 10 | 11 | 12 | Remarks: 13 | 14 | - Only the files corresponding to the fonts actually used are necessary 15 | - The tutorials provided in this package are ready to be executed 16 | -------------------------------------------------------------------------------- /fpdf/license.txt: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any person obtaining a copy 2 | of this software to use, copy, modify, distribute, sublicense, and/or sell 3 | copies of the software, and to permit persons to whom the software is furnished 4 | to do so. 5 | 6 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. -------------------------------------------------------------------------------- /fpdf/tutorial/20k_c1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/fpdf/tutorial/20k_c1.txt -------------------------------------------------------------------------------- /fpdf/tutorial/calligra.php: -------------------------------------------------------------------------------- 1 | 899,'Descent'=>-234,'CapHeight'=>899,'Flags'=>32,'FontBBox'=>'[-173 -234 1328 899]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>800); 5 | $up = -200; 6 | $ut = 20; 7 | $cw = array( 8 | chr(0)=>800,chr(1)=>800,chr(2)=>800,chr(3)=>800,chr(4)=>800,chr(5)=>800,chr(6)=>800,chr(7)=>800,chr(8)=>800,chr(9)=>800,chr(10)=>800,chr(11)=>800,chr(12)=>800,chr(13)=>800,chr(14)=>800,chr(15)=>800,chr(16)=>800,chr(17)=>800,chr(18)=>800,chr(19)=>800,chr(20)=>800,chr(21)=>800, 9 | chr(22)=>800,chr(23)=>800,chr(24)=>800,chr(25)=>800,chr(26)=>800,chr(27)=>800,chr(28)=>800,chr(29)=>800,chr(30)=>800,chr(31)=>800,' '=>282,'!'=>324,'"'=>405,'#'=>584,'$'=>632,'%'=>980,'&'=>776,'\''=>259,'('=>299,')'=>299,'*'=>377,'+'=>600, 10 | ','=>259,'-'=>432,'.'=>254,'/'=>597,'0'=>529,'1'=>298,'2'=>451,'3'=>359,'4'=>525,'5'=>423,'6'=>464,'7'=>417,'8'=>457,'9'=>479,':'=>275,';'=>282,'<'=>600,'='=>600,'>'=>600,'?'=>501,'@'=>800,'A'=>743, 11 | 'B'=>636,'C'=>598,'D'=>712,'E'=>608,'F'=>562,'G'=>680,'H'=>756,'I'=>308,'J'=>314,'K'=>676,'L'=>552,'M'=>1041,'N'=>817,'O'=>729,'P'=>569,'Q'=>698,'R'=>674,'S'=>618,'T'=>673,'U'=>805,'V'=>753,'W'=>1238, 12 | 'X'=>716,'Y'=>754,'Z'=>599,'['=>315,'\\'=>463,']'=>315,'^'=>600,'_'=>547,'`'=>278,'a'=>581,'b'=>564,'c'=>440,'d'=>571,'e'=>450,'f'=>347,'g'=>628,'h'=>611,'i'=>283,'j'=>283,'k'=>560,'l'=>252,'m'=>976, 13 | 'n'=>595,'o'=>508,'p'=>549,'q'=>540,'r'=>395,'s'=>441,'t'=>307,'u'=>614,'v'=>556,'w'=>915,'x'=>559,'y'=>597,'z'=>452,'{'=>315,'|'=>222,'}'=>315,'~'=>600,chr(127)=>800,chr(128)=>800,chr(129)=>800,chr(130)=>0,chr(131)=>0, 14 | chr(132)=>0,chr(133)=>780,chr(134)=>0,chr(135)=>0,chr(136)=>278,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>1064,chr(141)=>800,chr(142)=>0,chr(143)=>800,chr(144)=>800,chr(145)=>259,chr(146)=>259,chr(147)=>470,chr(148)=>470,chr(149)=>500,chr(150)=>300,chr(151)=>600,chr(152)=>278,chr(153)=>990, 15 | chr(154)=>0,chr(155)=>0,chr(156)=>790,chr(157)=>800,chr(158)=>800,chr(159)=>754,chr(160)=>282,chr(161)=>324,chr(162)=>450,chr(163)=>640,chr(164)=>518,chr(165)=>603,chr(166)=>0,chr(167)=>519,chr(168)=>254,chr(169)=>800,chr(170)=>349,chr(171)=>0,chr(172)=>0,chr(173)=>432,chr(174)=>800,chr(175)=>278, 16 | chr(176)=>0,chr(177)=>0,chr(178)=>0,chr(179)=>0,chr(180)=>278,chr(181)=>614,chr(182)=>0,chr(183)=>254,chr(184)=>278,chr(185)=>0,chr(186)=>305,chr(187)=>0,chr(188)=>0,chr(189)=>0,chr(190)=>0,chr(191)=>501,chr(192)=>743,chr(193)=>743,chr(194)=>743,chr(195)=>743,chr(196)=>743,chr(197)=>743, 17 | chr(198)=>1060,chr(199)=>598,chr(200)=>608,chr(201)=>608,chr(202)=>608,chr(203)=>608,chr(204)=>308,chr(205)=>308,chr(206)=>308,chr(207)=>308,chr(208)=>0,chr(209)=>817,chr(210)=>729,chr(211)=>729,chr(212)=>729,chr(213)=>729,chr(214)=>729,chr(215)=>0,chr(216)=>729,chr(217)=>805,chr(218)=>805,chr(219)=>805, 18 | chr(220)=>805,chr(221)=>0,chr(222)=>0,chr(223)=>688,chr(224)=>581,chr(225)=>581,chr(226)=>581,chr(227)=>581,chr(228)=>581,chr(229)=>581,chr(230)=>792,chr(231)=>440,chr(232)=>450,chr(233)=>450,chr(234)=>450,chr(235)=>450,chr(236)=>283,chr(237)=>283,chr(238)=>283,chr(239)=>283,chr(240)=>0,chr(241)=>595, 19 | chr(242)=>508,chr(243)=>508,chr(244)=>508,chr(245)=>508,chr(246)=>508,chr(247)=>0,chr(248)=>508,chr(249)=>614,chr(250)=>614,chr(251)=>614,chr(252)=>614,chr(253)=>0,chr(254)=>0,chr(255)=>597); 20 | $enc = 'cp1252'; 21 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); 22 | $file = 'calligra.z'; 23 | $originalsize = 33948; 24 | $subsetted = true; 25 | ?> 26 | -------------------------------------------------------------------------------- /fpdf/tutorial/calligra.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/fpdf/tutorial/calligra.ttf -------------------------------------------------------------------------------- /fpdf/tutorial/calligra.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/fpdf/tutorial/calligra.z -------------------------------------------------------------------------------- /fpdf/tutorial/countries.txt: -------------------------------------------------------------------------------- 1 | Austria;Vienna;83859;8075 2 | Belgium;Brussels;30518;10192 3 | Denmark;Copenhagen;43094;5295 4 | Finland;Helsinki;304529;5147 5 | France;Paris;543965;58728 6 | Germany;Berlin;357022;82057 7 | Greece;Athens;131625;10511 8 | Ireland;Dublin;70723;3694 9 | Italy;Roma;301316;57563 10 | Luxembourg;Luxembourg;2586;424 11 | Netherlands;Amsterdam;41526;15654 12 | Portugal;Lisbon;91906;9957 13 | Spain;Madrid;504790;39348 14 | Sweden;Stockholm;410934;8839 15 | United Kingdom;London;243820;58862 16 | -------------------------------------------------------------------------------- /fpdf/tutorial/index.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Tutorials 6 | 7 | 8 | 9 |

Tutorials

10 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /fpdf/tutorial/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/fpdf/tutorial/logo.png -------------------------------------------------------------------------------- /fpdf/tutorial/makefont.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /fpdf/tutorial/tuto1.php: -------------------------------------------------------------------------------- 1 | AddPage(); 6 | $pdf->SetFont('Arial','B',16); 7 | $pdf->Cell(40,10,'Hello World!'); 8 | $pdf->Output(); 9 | ?> 10 | -------------------------------------------------------------------------------- /fpdf/tutorial/tuto2.php: -------------------------------------------------------------------------------- 1 | Image('logo.png',10,6,30); 11 | // Arial bold 15 12 | $this->SetFont('Arial','B',15); 13 | // Move to the right 14 | $this->Cell(80); 15 | // Title 16 | $this->Cell(30,10,'Title',1,0,'C'); 17 | // Line break 18 | $this->Ln(20); 19 | } 20 | 21 | // Page footer 22 | function Footer() 23 | { 24 | // Position at 1.5 cm from bottom 25 | $this->SetY(-15); 26 | // Arial italic 8 27 | $this->SetFont('Arial','I',8); 28 | // Page number 29 | $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C'); 30 | } 31 | } 32 | 33 | // Instanciation of inherited class 34 | $pdf = new PDF(); 35 | $pdf->AliasNbPages(); 36 | $pdf->AddPage(); 37 | $pdf->SetFont('Times','',12); 38 | for($i=1;$i<=40;$i++) 39 | $pdf->Cell(0,10,'Printing line number '.$i,0,1); 40 | $pdf->Output(); 41 | ?> 42 | -------------------------------------------------------------------------------- /fpdf/tutorial/tuto3.php: -------------------------------------------------------------------------------- 1 | SetFont('Arial','B',15); 12 | // Calculate width of title and position 13 | $w = $this->GetStringWidth($title)+6; 14 | $this->SetX((210-$w)/2); 15 | // Colors of frame, background and text 16 | $this->SetDrawColor(0,80,180); 17 | $this->SetFillColor(230,230,0); 18 | $this->SetTextColor(220,50,50); 19 | // Thickness of frame (1 mm) 20 | $this->SetLineWidth(1); 21 | // Title 22 | $this->Cell($w,9,$title,1,1,'C',true); 23 | // Line break 24 | $this->Ln(10); 25 | } 26 | 27 | function Footer() 28 | { 29 | // Position at 1.5 cm from bottom 30 | $this->SetY(-15); 31 | // Arial italic 8 32 | $this->SetFont('Arial','I',8); 33 | // Text color in gray 34 | $this->SetTextColor(128); 35 | // Page number 36 | $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); 37 | } 38 | 39 | function ChapterTitle($num, $label) 40 | { 41 | // Arial 12 42 | $this->SetFont('Arial','',12); 43 | // Background color 44 | $this->SetFillColor(200,220,255); 45 | // Title 46 | $this->Cell(0,6,"Chapter $num : $label",0,1,'L',true); 47 | // Line break 48 | $this->Ln(4); 49 | } 50 | 51 | function ChapterBody($file) 52 | { 53 | // Read text file 54 | $txt = file_get_contents($file); 55 | // Times 12 56 | $this->SetFont('Times','',12); 57 | // Output justified text 58 | $this->MultiCell(0,5,$txt); 59 | // Line break 60 | $this->Ln(); 61 | // Mention in italics 62 | $this->SetFont('','I'); 63 | $this->Cell(0,5,'(end of excerpt)'); 64 | } 65 | 66 | function PrintChapter($num, $title, $file) 67 | { 68 | $this->AddPage(); 69 | $this->ChapterTitle($num,$title); 70 | $this->ChapterBody($file); 71 | } 72 | } 73 | 74 | $pdf = new PDF(); 75 | $title = '20000 Leagues Under the Seas'; 76 | $pdf->SetTitle($title); 77 | $pdf->SetAuthor('Jules Verne'); 78 | $pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); 79 | $pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); 80 | $pdf->Output(); 81 | ?> 82 | -------------------------------------------------------------------------------- /fpdf/tutorial/tuto4.php: -------------------------------------------------------------------------------- 1 | SetFont('Arial','B',15); 15 | $w = $this->GetStringWidth($title)+6; 16 | $this->SetX((210-$w)/2); 17 | $this->SetDrawColor(0,80,180); 18 | $this->SetFillColor(230,230,0); 19 | $this->SetTextColor(220,50,50); 20 | $this->SetLineWidth(1); 21 | $this->Cell($w,9,$title,1,1,'C',true); 22 | $this->Ln(10); 23 | // Save ordinate 24 | $this->y0 = $this->GetY(); 25 | } 26 | 27 | function Footer() 28 | { 29 | // Page footer 30 | $this->SetY(-15); 31 | $this->SetFont('Arial','I',8); 32 | $this->SetTextColor(128); 33 | $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); 34 | } 35 | 36 | function SetCol($col) 37 | { 38 | // Set position at a given column 39 | $this->col = $col; 40 | $x = 10+$col*65; 41 | $this->SetLeftMargin($x); 42 | $this->SetX($x); 43 | } 44 | 45 | function AcceptPageBreak() 46 | { 47 | // Method accepting or not automatic page break 48 | if($this->col<2) 49 | { 50 | // Go to next column 51 | $this->SetCol($this->col+1); 52 | // Set ordinate to top 53 | $this->SetY($this->y0); 54 | // Keep on page 55 | return false; 56 | } 57 | else 58 | { 59 | // Go back to first column 60 | $this->SetCol(0); 61 | // Page break 62 | return true; 63 | } 64 | } 65 | 66 | function ChapterTitle($num, $label) 67 | { 68 | // Title 69 | $this->SetFont('Arial','',12); 70 | $this->SetFillColor(200,220,255); 71 | $this->Cell(0,6,"Chapter $num : $label",0,1,'L',true); 72 | $this->Ln(4); 73 | // Save ordinate 74 | $this->y0 = $this->GetY(); 75 | } 76 | 77 | function ChapterBody($file) 78 | { 79 | // Read text file 80 | $txt = file_get_contents($file); 81 | // Font 82 | $this->SetFont('Times','',12); 83 | // Output text in a 6 cm width column 84 | $this->MultiCell(60,5,$txt); 85 | $this->Ln(); 86 | // Mention 87 | $this->SetFont('','I'); 88 | $this->Cell(0,5,'(end of excerpt)'); 89 | // Go back to first column 90 | $this->SetCol(0); 91 | } 92 | 93 | function PrintChapter($num, $title, $file) 94 | { 95 | // Add chapter 96 | $this->AddPage(); 97 | $this->ChapterTitle($num,$title); 98 | $this->ChapterBody($file); 99 | } 100 | } 101 | 102 | $pdf = new PDF(); 103 | $title = '20000 Leagues Under the Seas'; 104 | $pdf->SetTitle($title); 105 | $pdf->SetAuthor('Jules Verne'); 106 | $pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); 107 | $pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); 108 | $pdf->Output(); 109 | ?> 110 | -------------------------------------------------------------------------------- /fpdf/tutorial/tuto5.php: -------------------------------------------------------------------------------- 1 | Cell(40,7,$col,1); 23 | $this->Ln(); 24 | // Data 25 | foreach($data as $row) 26 | { 27 | foreach($row as $col) 28 | $this->Cell(40,6,$col,1); 29 | $this->Ln(); 30 | } 31 | } 32 | 33 | // Better table 34 | function ImprovedTable($header, $data) 35 | { 36 | // Column widths 37 | $w = array(40, 35, 40, 45); 38 | // Header 39 | for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); 41 | $this->Ln(); 42 | // Data 43 | foreach($data as $row) 44 | { 45 | $this->Cell($w[0],6,$row[0],'LR'); 46 | $this->Cell($w[1],6,$row[1],'LR'); 47 | $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R'); 48 | $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R'); 49 | $this->Ln(); 50 | } 51 | // Closing line 52 | $this->Cell(array_sum($w),0,'','T'); 53 | } 54 | 55 | // Colored table 56 | function FancyTable($header, $data) 57 | { 58 | // Colors, line width and bold font 59 | $this->SetFillColor(255,0,0); 60 | $this->SetTextColor(255); 61 | $this->SetDrawColor(128,0,0); 62 | $this->SetLineWidth(.3); 63 | $this->SetFont('','B'); 64 | // Header 65 | $w = array(40, 35, 40, 45); 66 | for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C',true); 68 | $this->Ln(); 69 | // Color and font restoration 70 | $this->SetFillColor(224,235,255); 71 | $this->SetTextColor(0); 72 | $this->SetFont(''); 73 | // Data 74 | $fill = false; 75 | foreach($data as $row) 76 | { 77 | $this->Cell($w[0],6,$row[0],'LR',0,'L',$fill); 78 | $this->Cell($w[1],6,$row[1],'LR',0,'L',$fill); 79 | $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R',$fill); 80 | $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R',$fill); 81 | $this->Ln(); 82 | $fill = !$fill; 83 | } 84 | // Closing line 85 | $this->Cell(array_sum($w),0,'','T'); 86 | } 87 | } 88 | 89 | $pdf = new PDF(); 90 | // Column headings 91 | $header = array('Country', 'Capital', 'Area (sq km)', 'Pop. (thousands)'); 92 | // Data loading 93 | $data = $pdf->LoadData('countries.txt'); 94 | $pdf->SetFont('Arial','',14); 95 | $pdf->AddPage(); 96 | $pdf->BasicTable($header,$data); 97 | $pdf->AddPage(); 98 | $pdf->ImprovedTable($header,$data); 99 | $pdf->AddPage(); 100 | $pdf->FancyTable($header,$data); 101 | $pdf->Output(); 102 | ?> 103 | -------------------------------------------------------------------------------- /fpdf/tutorial/tuto6.php: -------------------------------------------------------------------------------- 1 | /U',$html,-1,PREG_SPLIT_DELIM_CAPTURE); 16 | foreach($a as $i=>$e) 17 | { 18 | if($i%2==0) 19 | { 20 | // Text 21 | if($this->HREF) 22 | $this->PutLink($this->HREF,$e); 23 | else 24 | $this->Write(5,$e); 25 | } 26 | else 27 | { 28 | // Tag 29 | if($e[0]=='/') 30 | $this->CloseTag(strtoupper(substr($e,1))); 31 | else 32 | { 33 | // Extract attributes 34 | $a2 = explode(' ',$e); 35 | $tag = strtoupper(array_shift($a2)); 36 | $attr = array(); 37 | foreach($a2 as $v) 38 | { 39 | if(preg_match('/([^=]*)=["\']?([^"\']*)/',$v,$a3)) 40 | $attr[strtoupper($a3[1])] = $a3[2]; 41 | } 42 | $this->OpenTag($tag,$attr); 43 | } 44 | } 45 | } 46 | } 47 | 48 | function OpenTag($tag, $attr) 49 | { 50 | // Opening tag 51 | if($tag=='B' || $tag=='I' || $tag=='U') 52 | $this->SetStyle($tag,true); 53 | if($tag=='A') 54 | $this->HREF = $attr['HREF']; 55 | if($tag=='BR') 56 | $this->Ln(5); 57 | } 58 | 59 | function CloseTag($tag) 60 | { 61 | // Closing tag 62 | if($tag=='B' || $tag=='I' || $tag=='U') 63 | $this->SetStyle($tag,false); 64 | if($tag=='A') 65 | $this->HREF = ''; 66 | } 67 | 68 | function SetStyle($tag, $enable) 69 | { 70 | // Modify style and select corresponding font 71 | $this->$tag += ($enable ? 1 : -1); 72 | $style = ''; 73 | foreach(array('B', 'I', 'U') as $s) 74 | { 75 | if($this->$s>0) 76 | $style .= $s; 77 | } 78 | $this->SetFont('',$style); 79 | } 80 | 81 | function PutLink($URL, $txt) 82 | { 83 | // Put a hyperlink 84 | $this->SetTextColor(0,0,255); 85 | $this->SetStyle('U',true); 86 | $this->Write(5,$txt,$URL); 87 | $this->SetStyle('U',false); 88 | $this->SetTextColor(0); 89 | } 90 | } 91 | 92 | $html = 'You can now easily print text mixing different styles: bold, italic, 93 | underlined, or all at once!

You can also insert links on 94 | text, such as www.fpdf.org, or on an image: click on the logo.'; 95 | 96 | $pdf = new PDF(); 97 | // First page 98 | $pdf->AddPage(); 99 | $pdf->SetFont('Arial','',20); 100 | $pdf->Write(5,"To find out what's new in this tutorial, click "); 101 | $pdf->SetFont('','U'); 102 | $link = $pdf->AddLink(); 103 | $pdf->Write(5,'here',$link); 104 | $pdf->SetFont(''); 105 | // Second page 106 | $pdf->AddPage(); 107 | $pdf->SetLink($link); 108 | $pdf->Image('logo.png',10,12,30,0,'','http://www.fpdf.org'); 109 | $pdf->SetLeftMargin(45); 110 | $pdf->SetFontSize(14); 111 | $pdf->WriteHTML($html); 112 | $pdf->Output(); 113 | ?> 114 | -------------------------------------------------------------------------------- /fpdf/tutorial/tuto7.php: -------------------------------------------------------------------------------- 1 | AddFont('Calligrapher','','calligra.php'); 7 | $pdf->AddPage(); 8 | $pdf->SetFont('Calligrapher','',35); 9 | $pdf->Cell(0,10,'Enjoy new fonts with FPDF!'); 10 | $pdf->Output(); 11 | ?> 12 | -------------------------------------------------------------------------------- /function_data.php: -------------------------------------------------------------------------------- 1 | 5 | * Makbox is a personal (staas) cloud. 6 | * 7 | * Makbox is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Affero General Public License as 9 | * published by the Free Software Foundation, either version 3 of the 10 | * License, or (at your option) any later version. 11 | * 12 | * 13 | * Makbox is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU Affero General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Affero General Public License, version 3, 19 | * along with this program. If not, see 20 | * 21 | */ 22 | 23 | 24 | function input($data) 25 | { 26 | $data = trim($data); 27 | $data = stripslashes($data); 28 | $data = htmlspecialchars($data); 29 | return $data; 30 | } 31 | 32 | 33 | ?> 34 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 5 | * Makbox is a personal (staas) cloud. 6 | * 7 | * Makbox is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Affero General Public License as 9 | * published by the Free Software Foundation, either version 3 of the 10 | * License, or (at your option) any later version. 11 | * 12 | * 13 | * Makbox is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU Affero General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Affero General Public License, version 3, 19 | * along with this program. If not, see 20 | * 21 | */ 22 | 23 | 24 | session_start(); 25 | 26 | 27 | ?> 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 |
52 |
53 | 54 | 55 |
56 |

Administrator

57 |
58 | 59 | 60 |
61 |
62 |
63 | 64 | 65 | 66 |
67 | 70 |
71 | 72 |
73 | 74 |
75 |
76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | alert("Sign in control panel error"); 127 | '; 128 | } 129 | 130 | 131 | } // kleisimo ths isset 132 | 133 | 134 | } //kleisimo ths megalhs else gia elenxo ths ip 135 | 136 | ?> 137 | -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | 5 | * Makbox is a personal (staas) cloud. 6 | * 7 | * Makbox is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Affero General Public License as 9 | * published by the Free Software Foundation, either version 3 of the 10 | * License, or (at your option) any later version. 11 | * 12 | * 13 | * Makbox is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU Affero General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Affero General Public License, version 3, 19 | * along with this program. If not, see 20 | * 21 | */ 22 | 23 | 24 | session_start(); 25 | session_unset(); 26 | session_destroy(); 27 | header('Location: index.php'); 28 | 29 | ?> 30 | -------------------------------------------------------------------------------- /photos/database-tree.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/photos/database-tree.ico -------------------------------------------------------------------------------- /photos/database.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/photos/database.ico -------------------------------------------------------------------------------- /photos/makbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/photos/makbox.png -------------------------------------------------------------------------------- /photos/network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/photos/network.png -------------------------------------------------------------------------------- /photos/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/photos/settings.png -------------------------------------------------------------------------------- /photos/users.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/makbox/control_panel/80b00eea2b894d8bf020cbb20d86b33974e4cbcb/photos/users.ico -------------------------------------------------------------------------------- /server_messages_export.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | require('class_cn.php'); 27 | 28 | $obj = new in; 29 | 30 | $host = $obj->connect[0]; 31 | $user = $obj->connect[1]; 32 | $pass = $obj->connect[2]; 33 | $db = $obj->connect[3]; 34 | 35 | $conn = new mysqli($host,$user,$pass,$db); 36 | 37 | if($conn->connect_error) 38 | { 39 | die ("Cannot connect to server " .$conn->connect_error); 40 | } 41 | 42 | 43 | else 44 | { 45 | 46 | 47 | require('fpdf/fpdf.php'); 48 | $pdf=new FPDF(); 49 | $pdf->AddPage('P', 'Legal'); // kathorizei ton tupo xartiou ths selidas 50 | // o tupos mporei an einai P or Portrait L or Landscape kai megethos xartiou (A3,A4,A5,Letter,Legal) 51 | $pdf->SetFont('Arial','B',10); 52 | $pdf->Ln(); 53 | $pdf->Ln(); 54 | $pdf->SetFont('times','B',10); 55 | $pdf->SetFillColor(230,230,230); // edw kathorizeis to xrwma 56 | $pdf->Cell(199,12,"All server messages send to users",1,0,'C',TRUE); 57 | $pdf->Ln(); // afhnei mia grammh keno kai paei apo katw 58 | $pdf->Cell(34,15,"Created",1,0,'C',TRUE); // edw vazeis platos,upsos,onoma,border w,0h,kai true gia na parei to xrwma 59 | $pdf->Cell(16,15,"From",1,0,'C',TRUE); 60 | $pdf->Cell(22,15,"To",1,0,'C',TRUE); 61 | $pdf->Cell(127,15,"Message",1,0,'C',TRUE); 62 | $pdf->Ln(); 63 | 64 | 65 | $sql = "SELECT created,_from,_to,message FROM messages"; 66 | $result = $conn->query($sql); 67 | 68 | while($row=$result->fetch_assoc()) 69 | { 70 | $created = $row['created']; 71 | $from = $row['_from']; 72 | $to = $row['_to']; 73 | $message = $row['message']; 74 | //$blank=" "; 75 | 76 | $pdf->Cell(34,7,$created,1); 77 | //$pdf->Cell(10,7,$blank); 78 | $pdf->Cell(16,7,$from,1); 79 | $pdf->Cell(22,7,$to,1); 80 | $pdf->Cell(127,7,$message,1); // edw emfanizei olo to keimeno kanwntas ansiplwsh keimenou 81 | $pdf->Ln(); 82 | } 83 | 84 | $pdf->Output(); 85 | 86 | 87 | 88 | 89 | /* 90 | duo eidh eksodou pdf 91 | 92 | $pdf->Output('D','messages.pdf'); //eksodos kateutheian me onoma 93 | 94 | $pdf->Output(); // edw anoigo vlewpw kai meta katevazw kai allazw onoma 95 | 96 | */ 97 | 98 | 99 | } // kleisimo ths else gia ta dedomena 100 | 101 | $conn->close(); 102 | 103 | 104 | ?> 105 | -------------------------------------------------------------------------------- /storage_user_storage.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | if(isset($_POST['submit_storage'])) 27 | { 28 | 29 | require('class_cn.php'); 30 | 31 | $obj = new in; 32 | 33 | $host = $obj->connect[0]; 34 | $user = $obj->connect[1]; 35 | $pass = $obj->connect[2]; 36 | $db = $obj->connect[3]; 37 | 38 | 39 | 40 | 41 | $conn = new mysqli($host,$user,$pass,$db); 42 | 43 | 44 | if($conn->connect_error) 45 | { 46 | die ("Cannot connect to server " .$conn->connect_error); 47 | exit; 48 | } 49 | 50 | 51 | else 52 | { 53 | 54 | require_once('function_data.php'); 55 | 56 | 57 | $user = input($_POST['user']); 58 | $user = $conn->real_escape_string($user); 59 | 60 | $space_limit = input($_POST['space_limit']); 61 | $space_limit = $conn->real_escape_string($space_limit); 62 | 63 | 64 | 65 | $sql0="select user from hard_disk"; 66 | $result0=$conn->query($sql0); 67 | 68 | 69 | 70 | while($row0=$result0->fetch_assoc()) 71 | { 72 | 73 | if ($user != $row0['user']) 74 | { 75 | echo ''; 77 | echo (""); 78 | } 79 | 80 | 81 | 82 | else 83 | { 84 | 85 | $sql2="update hard_disk set space_limit = '$space_limit' where user='$user'"; 86 | $result2=$conn->query($sql2); 87 | echo (""); 88 | } 89 | 90 | 91 | } // end of while 92 | 93 | 94 | } // kleisimo ths else gia ta dedomena 95 | 96 | 97 | $conn->close(); 98 | 99 | } // kleisimo ths isset 100 | 101 | 102 | ?> 103 | -------------------------------------------------------------------------------- /transfer_archives_delete.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | if(isset($_POST['delete_submit'])) 27 | { 28 | 29 | require('class_cn.php'); 30 | 31 | $obj = new in; 32 | 33 | $host = $obj->connect[0]; 34 | $user = $obj->connect[1]; 35 | $pass = $obj->connect[2]; 36 | $db = $obj->connect[3]; 37 | 38 | $conn = new mysqli ($host,$user,$pass,$db); 39 | 40 | if($conn->connect_error) 41 | { 42 | die("Database connection failed: " .$conn->connect_error); 43 | } 44 | 45 | else 46 | { 47 | $idarr = $_POST['checked_id']; 48 | foreach($idarr as $id) 49 | { 50 | 51 | $sql1="DELETE FROM folder_uploads WHERE id='$id' and file_type='canonical'"; 52 | $result1=$conn->query($sql1); 53 | 54 | 55 | } 56 | $_SESSION['success_msg'] = 'File have been deleted successfully.'; 57 | header("Location: transfer_archives.php"); 58 | 59 | }//telos ths else gia ta dedomena 60 | 61 | $conn->close(); 62 | 63 | }//telos ths if gia ton elenxo me thn issset 64 | ?> 65 | -------------------------------------------------------------------------------- /transfer_archives_download.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | if(isset($_GET['id'])) 27 | { 28 | 29 | $id = intval($_GET['id']); 30 | 31 | 32 | if($id <= 0) 33 | { 34 | die('The ID is invalid!'); 35 | } 36 | 37 | 38 | else 39 | { 40 | 41 | require('class_cn.php'); 42 | 43 | $obj = new in; 44 | 45 | $host = $obj->connect[0]; 46 | $user = $obj->connect[1]; 47 | $pass = $obj->connect[2]; 48 | $db = $obj->connect[3]; 49 | 50 | $conn = new mysqli($host,$user,$pass,$db); 51 | 52 | if($conn->connect_error) 53 | { 54 | die ("Cannot connect to server " .$conn->connect_error); 55 | } 56 | 57 | else 58 | { 59 | 60 | $sql= " SELECT name,type,size,data FROM folder_uploads WHERE id ='$id'"; 61 | $result = $conn->query($sql); 62 | 63 | if($result) 64 | { 65 | $row = $result->fetch_assoc(); 66 | 67 | 68 | header("Content-Type: ". $row['type']); 69 | header("Content-Length: ". $row['size']); 70 | header('Content-Disposition:attachment;filename="' .$row['name'] .'"'); 71 | 72 | 73 | echo $row['data']; 74 | } 75 | else 76 | { 77 | echo 'Error! No data exists with that ID.'; 78 | } 79 | 80 | }//kleisimo ths else gia ta dedoimena 81 | 82 | }// kleisimo ths megalhs else 83 | 84 | $conn->close(); 85 | 86 | }// kleisimos ths megalhs if 87 | 88 | 89 | 90 | 91 | ?> 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /transfer_archives_export.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | require('class_cn.php'); 27 | 28 | $obj = new in; 29 | 30 | $host = $obj->connect[0]; 31 | $user = $obj->connect[1]; 32 | $pass = $obj->connect[2]; 33 | $db = $obj->connect[3]; 34 | 35 | $conn = new mysqli($host,$user,$pass,$db); 36 | 37 | if($conn->connect_error) 38 | { 39 | die ("Cannot connect to server " .$conn->connect_error); 40 | } 41 | 42 | 43 | else 44 | { 45 | 46 | 47 | require('fpdf/fpdf.php'); 48 | $pdf=new FPDF(); 49 | $pdf->AddPage('P', 'A3'); // kathorizei ton tupo xartiou ths selidas 50 | // o tupos mporei an einai P or Portrait L or Landscape kai megethos xartiou (A3,A4,A5,Letter,Legal) 51 | $pdf->SetFont('Arial','B',10); 52 | $pdf->Ln(); 53 | $pdf->Ln(); 54 | $pdf->SetFillColor(230,230,230); // edw kathorizeis to xrwma 55 | $pdf->SetFont('times','B',15); 56 | $pdf->Cell(283,15,"All tansfer archives between users",1,0,'C',TRUE); 57 | $pdf->Ln(); // afhnei mia grammh keno kai paei apo katw 58 | $pdf->SetFont('times','B',10); 59 | $pdf->Cell(95,15,"Name",1,0,'C',TRUE); // edw vazeis platos,upsos,onoma,border w,0h,kai true gia na parei to xrwma 60 | $pdf->Cell(60,15,"Type",1,0,'C',TRUE); 61 | $pdf->Cell(30,15,"Size",1,0,'C',TRUE); 62 | $pdf->Cell(29,15,"From",1,0,'C',TRUE); 63 | $pdf->Cell(29,15,"To",1,0,'C',TRUE); 64 | $pdf->Cell(40,15,"Send",1,0,'C',TRUE); 65 | $pdf->Ln(); 66 | 67 | 68 | $sql="select id,name,type,size,_from,_to,created from folder_uploads"; 69 | $result = $conn->query($sql); 70 | 71 | while($row=$result->fetch_assoc()) 72 | { 73 | $name = $row['name']; 74 | $type = $row['type']; 75 | $size = $row['size']; 76 | $from = $row['_from']; 77 | $to = $row['_to']; 78 | $created = $row['created']; 79 | 80 | 81 | $pdf->Cell(95,7,$name,1); 82 | $pdf->Cell(60,7,$type,1); 83 | $pdf->Cell(30,7,$size,1); 84 | $pdf->Cell(29,7,$from,1); 85 | $pdf->Cell(29,7,$to,1); 86 | $pdf->Cell(40,7,$created,1); 87 | 88 | //$pdf->Cell(127,7,$message,1); // edw emfanizei olo to keimeno kanwntas ansiplwsh keimenou an einai MultiCell 89 | $pdf->Ln(); 90 | } 91 | 92 | $pdf->Output(); 93 | 94 | 95 | 96 | 97 | /* 98 | duo eidh eksodou pdf 99 | 100 | $pdf->Output('D','messages.pdf'); //eksodos kateutheian me onoma 101 | 102 | $pdf->Output(); // edw anoigo vlewpw kai meta katevazw kai allazw onoma 103 | 104 | */ 105 | 106 | 107 | } // kleisimo ths else gia ta dedomena 108 | 109 | $conn->close(); 110 | 111 | 112 | ?> 113 | -------------------------------------------------------------------------------- /transfer_archives_hidden_delete.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | if(isset($_POST['delete_submit'])) 27 | { 28 | 29 | require('class_cn.php'); 30 | 31 | $obj = new in; 32 | 33 | $host = $obj->connect[0]; 34 | $user = $obj->connect[1]; 35 | $pass = $obj->connect[2]; 36 | $db = $obj->connect[3]; 37 | 38 | $conn = new mysqli ($host,$user,$pass,$db); 39 | 40 | if($conn->connect_error) 41 | { 42 | die("Database connection failed: " .$conn->connect_error); 43 | } 44 | 45 | else 46 | { 47 | $idarr = $_POST['checked_id']; 48 | foreach($idarr as $id) 49 | { 50 | 51 | $sql1="DELETE FROM backup_folder_uploads WHERE id='$id'"; 52 | $result1=$conn->query($sql1); 53 | 54 | 55 | } 56 | $_SESSION['success_msg'] = 'File have been deleted successfully.'; 57 | header("Location: transfer_archives_hidden.php"); 58 | 59 | }//telos ths else gia ta dedomena 60 | 61 | $conn->close(); 62 | 63 | }//telos ths if gia ton elenxo me thn issset 64 | ?> 65 | -------------------------------------------------------------------------------- /transfer_archives_hidden_download.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | if(isset($_GET['id'])) 27 | { 28 | 29 | $id = intval($_GET['id']); 30 | 31 | 32 | if($id <= 0) 33 | { 34 | die('The ID is invalid!'); 35 | } 36 | 37 | 38 | else 39 | { 40 | 41 | require('class_cn.php'); 42 | 43 | $obj = new in; 44 | 45 | $host = $obj->connect[0]; 46 | $user = $obj->connect[1]; 47 | $pass = $obj->connect[2]; 48 | $db = $obj->connect[3]; 49 | 50 | $conn = new mysqli($host,$user,$pass,$db); 51 | 52 | if($conn->connect_error) 53 | { 54 | die ("Cannot connect to server " .$conn->connect_error); 55 | } 56 | 57 | else 58 | { 59 | 60 | $sql= " SELECT name,type,size,data FROM backup_folder_uploads WHERE id ='$id'"; 61 | $result = $conn->query($sql); 62 | 63 | if($result) 64 | { 65 | $row = $result->fetch_assoc(); 66 | 67 | 68 | header("Content-Type: ". $row['type']); 69 | header("Content-Length: ". $row['size']); 70 | header('Content-Disposition:attachment;filename="' .$row['name'] .'"'); 71 | 72 | 73 | echo $row['data']; 74 | } 75 | else 76 | { 77 | echo 'Error! No data exists with that ID.'; 78 | } 79 | 80 | }//kleisimo ths else gia ta dedoimena 81 | 82 | }// kleisimo ths megalhs else 83 | 84 | $conn->close(); 85 | 86 | }// kleisimos ths megalhs if 87 | 88 | 89 | 90 | 91 | ?> 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /transfer_archives_hidden_export.php: -------------------------------------------------------------------------------- 1 | 6 | * Makbox is a personal (staas) cloud. 7 | * 8 | * Makbox is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU Affero General Public License as 10 | * published by the Free Software Foundation, either version 3 of the 11 | * License, or (at your option) any later version. 12 | * 13 | * 14 | * Makbox is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Affero General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Affero General Public License, version 3, 20 | * along with this program. If not, see 21 | * 22 | */ 23 | 24 | 25 | 26 | require('class_cn.php'); 27 | 28 | $obj = new in; 29 | 30 | $host = $obj->connect[0]; 31 | $user = $obj->connect[1]; 32 | $pass = $obj->connect[2]; 33 | $db = $obj->connect[3]; 34 | 35 | $conn = new mysqli($host,$user,$pass,$db); 36 | 37 | if($conn->connect_error) 38 | { 39 | die ("Cannot connect to server " .$conn->connect_error); 40 | } 41 | 42 | 43 | else 44 | { 45 | 46 | 47 | require('fpdf/fpdf.php'); 48 | $pdf=new FPDF(); 49 | $pdf->AddPage('P', 'A3'); // kathorizei ton tupo xartiou ths selidas 50 | // o tupos mporei an einai P or Portrait L or Landscape kai megethos xartiou (A3,A4,A5,Letter,Legal) 51 | $pdf->SetFont('Arial','B',10); 52 | $pdf->Ln(); 53 | $pdf->Ln(); 54 | $pdf->SetFillColor(230,230,230); // edw kathorizeis to xrwma 55 | $pdf->SetFont('times','B',15); 56 | $pdf->Cell(283,15,"All tansfer archives between users",1,0,'C',TRUE); 57 | $pdf->Ln(); // afhnei mia grammh keno kai paei apo katw 58 | $pdf->SetFont('times','B',10); 59 | $pdf->Cell(95,15,"Name",1,0,'C',TRUE); // edw vazeis platos,upsos,onoma,border w,0h,kai true gia na parei to xrwma 60 | $pdf->Cell(60,15,"Type",1,0,'C',TRUE); 61 | $pdf->Cell(30,15,"Size",1,0,'C',TRUE); 62 | $pdf->Cell(29,15,"From",1,0,'C',TRUE); 63 | $pdf->Cell(29,15,"To",1,0,'C',TRUE); 64 | $pdf->Cell(40,15,"Send",1,0,'C',TRUE); 65 | $pdf->Ln(); 66 | 67 | 68 | $sql="select id,name,type,size,_from,_to,created from backup_folder_uploads"; 69 | $result = $conn->query($sql); 70 | 71 | while($row=$result->fetch_assoc()) 72 | { 73 | $name = $row['name']; 74 | $type = $row['type']; 75 | $size = $row['size']; 76 | $from = $row['_from']; 77 | $to = $row['_to']; 78 | $created = $row['created']; 79 | 80 | 81 | $pdf->Cell(95,7,$name,1); 82 | $pdf->Cell(60,7,$type,1); 83 | $pdf->Cell(30,7,$size,1); 84 | $pdf->Cell(29,7,$from,1); 85 | $pdf->Cell(29,7,$to,1); 86 | $pdf->Cell(40,7,$created,1); 87 | 88 | //$pdf->Cell(127,7,$message,1); // edw emfanizei olo to keimeno kanwntas ansiplwsh keimenou an einai MultiCell 89 | $pdf->Ln(); 90 | } 91 | 92 | $pdf->Output(); 93 | 94 | 95 | 96 | 97 | /* 98 | duo eidh eksodou pdf 99 | 100 | $pdf->Output('D','messages.pdf'); //eksodos kateutheian me onoma 101 | 102 | $pdf->Output(); // edw anoigo vlewpw kai meta katevazw kai allazw onoma 103 | 104 | */ 105 | 106 | 107 | } // kleisimo ths else gia ta dedomena 108 | 109 | $conn->close(); 110 | 111 | 112 | ?> 113 | --------------------------------------------------------------------------------