• R/O
  • SSH
  • HTTPS

copper: Commit


Commit MetaInfo

Revision181 (tree)
Time2009-05-29 14:59:00
Authormiyabe

Log Message

(empty log message)

Change Summary

Incremental Difference

--- solutions/commerce/htdocs/commerce.php (revision 180)
+++ solutions/commerce/htdocs/commerce.php (revision 181)
@@ -2,5 +2,4 @@
22 if($_POST['receipt']) { include "receipt.php"; }
33 if($_POST['yamato']) { include "yamato.php"; }
44 if($_POST['stat']) { include "stat.php"; }
5-header("commerce.html");
65 ?>
--- solutions/commerce/htdocs/yamato.php (revision 180)
+++ solutions/commerce/htdocs/yamato.php (revision 181)
@@ -13,19 +13,10 @@
1313 $id=sprintf("%8d",rand());
1414
1515 $to_adr=$_POST['pref']." ".$_POST['city']." ".$_POST['strt']." ".$_POST['rest'];
16-/*
17-*/
1816
19-require_once ('cssj/cssj_driver.php');
17+require_once ('copper.inc.php');
2018 header("Content-Type: application/pdf");
2119
22-
23-//ドライバの作成
24-$driver = cssj_create_driver_for('localhost', 8099);
25-
26-//セッションの開始
27-$session = cssj_create_session($driver, 'user', 'kappa') or die('サーバーに接続できません');
28-
2920 cssj_set_property($session, 'output.page-width', '260mm' );
3021 cssj_set_property($session, 'output.page-height', '210mm' );
3122
--- solutions/commerce/htdocs/receipt.php (revision 180)
+++ solutions/commerce/htdocs/receipt.php (revision 181)
@@ -31,19 +31,9 @@
3131 $t_melon=$_POST['i_melon']*120;
3232 $id=sprintf("%8d",rand());
3333
34-/*
35-*/
36-
37-require_once ('cssj/cssj_driver.php');
34+require_once ('copper.inc.php');
3835 header("Content-Type: application/pdf");
3936
40-
41-//ドライバの作成
42-$driver = cssj_create_driver_for("localhost", 8099);
43-
44-//セッションの開始
45-$session = cssj_create_session($driver, 'user', 'kappa') or die('サーバーに接続できません');
46-
4737 //リソースの送信
4838 cssj_ob_start_resource($session, 'file:/receipt.css');
4939 readfile('receipt.css');
--- solutions/commerce/htdocs/stat.php (revision 180)
+++ solutions/commerce/htdocs/stat.php (revision 181)
@@ -1,19 +1,9 @@
11 <?php
2-//if(!isset($_POST)) { header("commerce.html"); }
32 $svgfile="stat_graph.svg";
43
5-/*
6-*/
7-require_once ('cssj/cssj_driver.php');
4+require_once ('copper.inc.php');
85 header("Content-Type: application/pdf");
96
10-
11-//ドライバの作成
12-$driver = cssj_create_driver_for('localhost', 8099);
13-
14-//セッションの開始
15-$session = cssj_create_session($driver, 'user', 'kappa') or die('サーバーに接続できません');
16-
177 //リソースの送信
188 cssj_ob_start_resource($session, 'file:/stat.css');
199 readfile('stat.css');
--- solutions/commerce/htdocs/copper.inc.php (nonexistent)
+++ solutions/commerce/htdocs/copper.inc.php (revision 181)
@@ -0,0 +1,9 @@
1+<?php
2+require_once ('cssj/cssj_driver.php');
3+
4+//ドライバの作成
5+$driver = cssj_create_driver_for("localhost", 8099);
6+
7+//セッションの開始
8+$session = cssj_create_session($driver, 'user', 'kappa') or die('サーバーに接続できません');
9+?>
\ No newline at end of file
Show on old repository browser