ISPConfig module for simplify the creation of websites and DNS zones in a only step
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

475 líneas
22 KiB

  1. <?php
  2. require('fpdf/fpdf.php');
  3. class PDFO6H extends FPDF
  4. {
  5. protected $B = 0;
  6. protected $I = 0;
  7. protected $U = 0;
  8. protected $HREF = '';
  9. // Margins
  10. var $left = 2;
  11. var $right = 2;
  12. var $top = 10;
  13. var $bottom = 10;
  14. //Autor Aramis
  15. function WriteHTML($html)
  16. {
  17. // Intérprete de HTML
  18. $html = str_replace("\n",' ',$html);
  19. $a = preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE);
  20. foreach($a as $i=>$e)
  21. {
  22. if($i%2==0)
  23. {
  24. // Text
  25. if($this->HREF)
  26. $this->PutLink($this->HREF,$e);
  27. else
  28. $this->Write(5,$e);
  29. }
  30. else
  31. {
  32. // Etiqueta
  33. if($e[0]=='/')
  34. $this->CloseTag(strtoupper(substr($e,1)));
  35. else
  36. {
  37. // Extraer atributos
  38. $a2 = explode(' ',$e);
  39. $tag = strtoupper(array_shift($a2));
  40. $attr = array();
  41. foreach($a2 as $v)
  42. {
  43. if(preg_match('/([^=]*)=["\']?([^"\']*)/',$v,$a3))
  44. $attr[strtoupper($a3[1])] = $a3[2];
  45. }
  46. $this->OpenTag($tag,$attr);
  47. }
  48. }
  49. }
  50. }
  51. function OpenTag($tag, $attr)
  52. {
  53. // Etiqueta de apertura
  54. if($tag=='B' || $tag=='I' || $tag=='U')
  55. $this->SetStyle($tag,true);
  56. if($tag=='A')
  57. $this->HREF = $attr['HREF'];
  58. if($tag=='BR')
  59. $this->Ln(5);
  60. }
  61. function CloseTag($tag)
  62. {
  63. // Etiqueta de cierre
  64. if($tag=='B' || $tag=='I' || $tag=='U')
  65. $this->SetStyle($tag,false);
  66. if($tag=='A')
  67. $this->HREF = '';
  68. }
  69. function SetStyle($tag, $enable)
  70. {
  71. // Modificar estilo y escoger la fuente correspondiente
  72. $this->$tag += ($enable ? 1 : -1);
  73. $style = '';
  74. foreach(array('B', 'I', 'U') as $s)
  75. {
  76. if($this->$s>0)
  77. $style .= $s;
  78. }
  79. $this->SetFont('',$style);
  80. }
  81. function PutLink($URL, $txt)
  82. {
  83. // Escribir un hiper-enlace
  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. //Script - Shadow Cell Gledston Reis
  91. function ShadowCell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='', $color='G', $distance=0.5)
  92. {
  93. if($color=='G')
  94. $ShadowColor = 100;
  95. elseif($color=='B')
  96. $ShadowColor = 0;
  97. else
  98. $ShadowColor = $color;
  99. $TextColor = $this->TextColor;
  100. $x = $this->x;
  101. $this->SetTextColor($ShadowColor);
  102. $this->Cell($w, $h, $txt, $border, 0, $align, $fill, $link);
  103. $this->TextColor = $TextColor;
  104. $this->x = $x;
  105. $this->y += $distance;
  106. $this->Cell($w, $h, $txt, 0, $ln, $align);
  107. }
  108. // Create Table
  109. function WriteTable($tcolums)
  110. {
  111. // go through all colums
  112. for ($i = 0; $i < sizeof($tcolums); $i++)
  113. {
  114. $current_col = $tcolums[$i];
  115. $height = 0;
  116. // get max height of current col
  117. $nb=0;
  118. for($b = 0; $b < sizeof($current_col); $b++)
  119. {
  120. // set style
  121. $this->SetFont($current_col[$b]['font_name'], $current_col[$b]['font_style'], $current_col[$b]['font_size']);
  122. $color = explode(",", $current_col[$b]['fillcolor']);
  123. $this->SetFillColor($color[0], $color[1], $color[2]);
  124. $color = explode(",", $current_col[$b]['textcolor']);
  125. $this->SetTextColor($color[0], $color[1], $color[2]);
  126. $color = explode(",", $current_col[$b]['drawcolor']);
  127. $this->SetDrawColor($color[0], $color[1], $color[2]);
  128. $this->SetLineWidth($current_col[$b]['linewidth']);
  129. $nb = max($nb, $this->NbLines($current_col[$b]['width'], $current_col[$b]['text']));
  130. $height = $current_col[$b]['height'];
  131. }
  132. $h=$height*$nb;
  133. // Issue a page break first if needed
  134. $this->CheckPageBreak($h);
  135. // Draw the cells of the row
  136. for($b = 0; $b < sizeof($current_col); $b++)
  137. {
  138. $w = $current_col[$b]['width'];
  139. $a = $current_col[$b]['align'];
  140. // Save the current position
  141. $x=$this->GetX();
  142. $y=$this->GetY();
  143. // set style
  144. $this->SetFont($current_col[$b]['font_name'], $current_col[$b]['font_style'], $current_col[$b]['font_size']);
  145. $color = explode(",", $current_col[$b]['fillcolor']);
  146. $this->SetFillColor($color[0], $color[1], $color[2]);
  147. $color = explode(",", $current_col[$b]['textcolor']);
  148. $this->SetTextColor($color[0], $color[1], $color[2]);
  149. $color = explode(",", $current_col[$b]['drawcolor']);
  150. $this->SetDrawColor($color[0], $color[1], $color[2]);
  151. $this->SetLineWidth($current_col[$b]['linewidth']);
  152. $color = explode(",", $current_col[$b]['fillcolor']);
  153. $this->SetDrawColor($color[0], $color[1], $color[2]);
  154. // Draw Cell Background
  155. $this->Rect($x, $y, $w, $h, 'FD');
  156. $color = explode(",", $current_col[$b]['drawcolor']);
  157. $this->SetDrawColor($color[0], $color[1], $color[2]);
  158. // Draw Cell Border
  159. if (substr_count($current_col[$b]['linearea'], "T") > 0)
  160. {
  161. $this->Line($x, $y, $x+$w, $y);
  162. }
  163. if (substr_count($current_col[$b]['linearea'], "B") > 0)
  164. {
  165. $this->Line($x, $y+$h, $x+$w, $y+$h);
  166. }
  167. if (substr_count($current_col[$b]['linearea'], "L") > 0)
  168. {
  169. $this->Line($x, $y, $x, $y+$h);
  170. }
  171. if (substr_count($current_col[$b]['linearea'], "R") > 0)
  172. {
  173. $this->Line($x+$w, $y, $x+$w, $y+$h);
  174. }
  175. // Print the text
  176. $this->MultiCell($w, $current_col[$b]['height'], $current_col[$b]['text'], 0, $a, 0);
  177. // Put the position to the right of the cell
  178. $this->SetXY($x+$w, $y);
  179. }
  180. // Go to the next line
  181. $this->Ln($h);
  182. }
  183. }
  184. // If the height h would cause an overflow, add a new page immediately
  185. function CheckPageBreak($h)
  186. {
  187. if($this->GetY()+$h>$this->PageBreakTrigger)
  188. $this->AddPage($this->CurOrientation);
  189. }
  190. // Computes the number of lines a MultiCell of width w will take
  191. function NbLines($w, $txt)
  192. {
  193. $cw=&$this->CurrentFont['cw'];
  194. if($w==0)
  195. $w=$this->w-$this->rMargin-$this->x;
  196. $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
  197. $s=str_replace("\r", '', $txt);
  198. $nb=strlen($s);
  199. if($nb>0 and $s[$nb-1]=="\n")
  200. $nb--;
  201. $sep=-1;
  202. $i=0;
  203. $j=0;
  204. $l=0;
  205. $nl=1;
  206. while($i<$nb)
  207. {
  208. $c=$s[$i];
  209. if($c=="\n")
  210. {
  211. $i++;
  212. $sep=-1;
  213. $j=$i;
  214. $l=0;
  215. $nl++;
  216. continue;
  217. }
  218. if($c==' ')
  219. $sep=$i;
  220. $l+=$cw[$c];
  221. if($l>$wmax)
  222. {
  223. if($sep==-1)
  224. {
  225. if($i==$j)
  226. $i++;
  227. }
  228. else
  229. $i=$sep+1;
  230. $sep=-1;
  231. $j=$i;
  232. $l=0;
  233. $nl++;
  234. }
  235. else
  236. $i++;
  237. }
  238. return $nl;
  239. }
  240. }
  241. //$name = $_POST['name'];
  242. $info = $_POST['pdf_power2'];
  243. $nombre_bd = $_POST['nombre_bd2'];
  244. $usuario_bd = $_POST['usuario_bd2'];
  245. $pass_bd = $_POST['pass_bd2'];
  246. $nombreDominio = $_POST['dominio_nuevo'];
  247. //$fecha_creado = $_POST['fecha_creado'];
  248. $usuario_ftp = $_POST['usuario_ftp2'];
  249. $pass_ftp = $_POST['pass_ftp2'];
  250. $la_ip4 = $_POST['ip4'];
  251. $la_url_db = $_POST['url_db'];
  252. //$nombre_base = $_POST['nombre_bd'];
  253. //$info=$_GET['datos_pdf'];
  254. $acentuar = 'Politica';
  255. //$str = utf8_decode($str);
  256. $enlace = '<br><a href="http://www.open6hosting.com">www.open6hosting.com</a>';
  257. $enlaceBlog = '<br><a href="http://www.open6hosting.com/blog">Blog</a>';
  258. $enlaceFace = '<br><a href="http://www.facebook.com/open6hosting">Facebook</a>';
  259. $enlaceTwitter = '<br><a href="http://www.twitter.com/Open6Hosting">Twitter</a>';
  260. $enlacePriv = '<br><a href="http://www.open6hosting.com/empresa/legales">'.$acentuar.' de privacidad</a>';
  261. $enlaceAdvertencia = '<br><a href="http://www.open6hosting.com/lopd.html">Advertencia legal</a>';
  262. $enlaceMail = '<br><a href="info@open6hosting.com">info@open6hosting.com</a>';
  263. //print 'en creacion: ' . $nombre_bd . ' ' . $usuario_bd . ' ' . $pass_bd . ' Aqui la ip: ' . $la_ip4;
  264. $pdf = new PDFO6H();
  265. // Primera página
  266. $pdf->AddPage();
  267. //Uso un ttf con caracteres españoles
  268. $pdf->SetFont('Arial','',28);
  269. //$pdf->SetFont('','U');
  270. $pdf->SetFont('');
  271. $pdf->SetTextColor(0, 200, 100);
  272. $Text = sprintf($_POST['dominio_nuevo'], 0.5);
  273. //$pdf->ShadowCell(0, 50, $Text , 1, 1, 'C', false, '', 'B', 0.5);
  274. $pdf->SetTextColor(0, 0, 255);
  275. $pdf->WriteHTML('<br><br><br>');
  276. $pdf->Rect(7, 5, 197, 50, 'D');
  277. //Cabezera
  278. $col = array();
  279. $col[] = array('text' => '', 'width' => '55', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '255,255,255', 'linewidth' => '0.2', 'linearea' => '');
  280. $col[] = array('text' => $Text, 'width' => '125', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '20', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '140,220,80', 'drawcolor' => '0,0,0', 'linewidth' => '0.2', 'linearea' => '');
  281. $columns0[] = $col;
  282. $pdf->WriteTable($columns0);
  283. $pdf->AliasNbPages();
  284. $pdf->SetMargins($pdf->left, $pdf->top, $pdf->right);
  285. $pdf->WriteHTML('<br><br><br><br><br><br>');
  286. // create table
  287. $columns = array();
  288. $fecha = 'Documento creado el ' . $hoy = date("d-m-Y H:i:s");
  289. /*$col3 = array();
  290. $col3[] = array('text' => '', 'width' => '8', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '255,255,255', 'linewidth' => '0.0', 'linearea' => '');
  291. $col3[] = array('text' => $fecha, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '11', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  292. $col3[] = array('text' => '', 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  293. $columns3[] = $col3;
  294. $pdf->WriteTable($columns3);*/
  295. $pdf->WriteHTML('<br><br>');
  296. // header 3
  297. $col4 = array();
  298. $col4[] = array('text' => '', 'width' => '8', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '255,255,255', 'linewidth' => '0.0', 'linearea' => '');
  299. $col4[] = array('text' => 'Nuevo Dominio:', 'width' => '40', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  300. $col4[] = array('text' => $nombreDominio, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  301. $columns4[] = $col4;
  302. // Draw Table
  303. $pdf->WriteTable($columns4);
  304. $pdf->WriteHTML('<br><br>');
  305. // header tupla
  306. $col = array();
  307. $col[] = array('text' => '', 'width' => '8', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '255,255,255', 'linewidth' => '0.2', 'linearea' => '');
  308. $col[] = array('text' => 'BBDD', 'width' => '21', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '15', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.2', 'linearea' => '');
  309. $col[] = array('text' => '', 'width' => '140', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '15', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.2', 'linearea' => '');
  310. $columns[] = $col;
  311. //color guapo para fondo '135,206,250'
  312. // data tupla 1
  313. $col = array();
  314. $col[] = array('text' => '', 'width' => '8', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  315. $col[] = array('text' => 'Nombre:', 'width' => '21', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  316. $col[] = array('text' => $nombre_bd, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  317. $columns[] = $col;
  318. // data tupla 2
  319. $col = array();
  320. $col[] = array('text' => '', 'width' => '8', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  321. $col[] = array('text' => 'Usuario:', 'width' => '21', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  322. $col[] = array('text' => $usuario_bd, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  323. $columns[] = $col;
  324. // data tupla 3
  325. $col = array();
  326. $col[] = array('text' => '', 'width' => '8', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  327. $col[] = array('text' => 'Clave:', 'width' => '21', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  328. $col[] = array('text' => $pass_bd, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  329. $columns[] = $col;
  330. //$pdf->SetTextColor(0, 0, 100);
  331. // data tupla 3
  332. /*$col = array();
  333. $col[] = array('text' => '', 'width' => '8', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  334. $col[] = array('text' => 'Url:', 'width' => '21', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  335. $col[] = array('text' => $urlDB, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '3', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,90,255', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  336. $columns[] = $col;*/
  337. // Draw Table
  338. $pdf->WriteTable($columns);
  339. $pdf->SetLeftMargin(10);
  340. $pdf->SetFont('Arial','',13);
  341. $pdf->WriteHTML('Url: ');
  342. //$pdf->Rect(7, 5, 10, 50, 'D');
  343. $urlBBDD = $la_url_db; //'https://'. $la_ip4. '/phpmyadmin';
  344. $url = '<a href="' .$urlBBDD . '">'.$urlBBDD .'</a>';
  345. $pdf->SetFont('Arial','',13);
  346. $urlDB = $pdf->WriteHTML($url);
  347. $pdf->SetLeftMargin(2);
  348. $pdf->WriteHTML('<br>');
  349. // header tupla 2
  350. $col2 = array();
  351. $col2[] = array('text' => '', 'width' => '8', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '255,255,255', 'linewidth' => '0.0', 'linearea' => '');
  352. $col2[] = array('text' => 'FTP', 'width' => '21', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '15', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  353. $col2[] = array('text' => '', 'width' => '140', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '15', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  354. $columns2[] = $col2;
  355. // data tupla 1
  356. $col2 = array();
  357. $col2[] = array('text' => '', 'width' => '8', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  358. $col2[] = array('text' => 'Usuario:', 'width' => '21', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  359. $col2[] = array('text' => $usuario_ftp, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  360. $columns2[] = $col2;
  361. // data tupla 2
  362. $col2 = array();
  363. $col2[] = array('text' => '', 'width' => '8', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  364. $col2[] = array('text' => 'Clave:', 'width' => '21', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  365. $col2[] = array('text' => $pass_ftp, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  366. $columns2[] = $col2;
  367. $col2 = array();
  368. $col2[] = array('text' => '', 'width' => '8', 'height' => '7', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  369. $col2[] = array('text' => 'Servidor:', 'width' => '21', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  370. $col2[] = array('text' => $la_ip4, 'width' => '140', 'height' => '7', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '13', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.4', 'linearea' => '');
  371. $columns2[] = $col2;
  372. $pdf->WriteHTML('<br>');
  373. $pdf->WriteTable($columns2);
  374. //$pdf->AddPage();
  375. $pdf->SetLink($link);
  376. $pdf->Image('imagen/open6-logo.png',10,12,50,0,'','http://www.open6hosting.com');
  377. $pdf->SetLeftMargin(12);
  378. $pdf->SetFontSize(10);
  379. $pdf->WriteHTML('<br><br><br><br><br><br><br><br><br><br><br><br>');
  380. //$pdf->WriteHTML($name);
  381. //$pdf->WriteHTML($info);
  382. $pdf->WriteHTML($enlace);
  383. $pdf->WriteHTML('<b></b><br>Telf: 951 20 42 88 <br>');
  384. $pdf->WriteHTML('<b></b>Fax: 951 39 09 29');
  385. //$pdf->WriteHTML($enlace);
  386. $pdf->WriteHTML($enlaceBlog);
  387. $pdf->WriteHTML($enlaceFace);
  388. $pdf->WriteHTML($enlaceTwitter);
  389. $pdf->WriteHTML('<br>');
  390. $pdf->WriteHTML($enlacePriv);
  391. $pdf->WriteHTML($enlaceAdvertencia);
  392. $pdf->WriteHTML('<br><br>');
  393. $col5 = array();
  394. $col5[] = array('text' => '', 'width' => '22', 'height' => '6', 'align' => 'C', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '255,255,255', 'linewidth' => '0.0', 'linearea' => '');
  395. $col5[] = array('text' => $fecha, 'width' => '170', 'height' => '6', 'align' => 'R', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => '', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  396. //$col5[] = array('text' => '', 'width' => '140', 'height' => '6', 'align' => 'L', 'font_name' => 'Arial', 'font_size' => '10', 'font_style' => 'B', 'fillcolor' => '255,255,255', 'textcolor' => '0,0,0', 'drawcolor' => '0,0,0', 'linewidth' => '0.0', 'linearea' => '');
  397. $columns5[] = $col5;
  398. $pdf->WriteTable($columns5);
  399. //$pdf->WriteHTML($nombre_base);
  400. $pdf->Output();
  401. //header('Location: http://www.open6hosting.com');
  402. ?>