Example #1
0
                    $this->render_dots();
                    $this->render_point_labels();
                }
                break;
            case "pie":
                $this->render_pie();
                break;
            default:
                $this->create_error_graphic("unknown graph type: " . $this->options["type"]);
                break;
        }
        if ($this->options["debug"]) {
            $this->log("would have output png now.");
        } else {
            imagepng($this->img);
        }
        imagedestroy($this->img);
    }
}
$scriptname = basename($_SERVER["PHP_SELF"]);
switch ($scriptname) {
    case "eqn_multigraph.php":
        // called to render inline
        $foo = new Eqn_multigraph();
        $foo->parseurl();
        $foo->render();
        if ($foo->options["debug"]) {
            $foo->dump_errors();
        }
        break;
}