: So this is my plugin.
:
:
: <?php
: /*
: Plugin Name: Before maintainence
: Plugin URI: http://jbm.net76.net/?p=119
: Description: Shows a message that site goes into maintainence soon.
: Author: Johan Brodd
: Version: 1
: Author URI: http://jbm.net76.net/?p=119
: */
:
: function hello_world() {
: $hello = get_option(’hello_global’);
: Print(”$hello”);
: }
:
: function modify_menu() {
: add_options_page(
: ‘Hello World’,
: ‘Hello World’,
: ‘manage_options’,
: _File_,
: ‘admin_hello_options’
: );
: }
:
: function admin_hello_options(){
: Print(”<h2>Hello World Plugin</h2>”);
: if ($_REQUEST['submit']){
: upate_hello_options();
: }
: print_hello_form();
: }
:
: function upate_hello_options(){
: if ($_REQUEST['hello_global']) {
: update_option(’hello_global’,$_REQUEST['hello_global']);
: }
: }
:
: function print_hello_form() {
: $default_greeting = get_option(’hello_global’);
: Print (”<form method=’post’><label for=’hello_global’>Greeting:
: <input type=’text’ name=’hello_global’ value=’$default_greeting’>
: </label>
: <br />
: <input type=’submit’ name=’submit’ value=’Submit’ >
: </form>”);
: }
:
: ?>:
: This code generates an unexpected TVariable error. But I cannot find
: what the problem is.
And no response so far... I am waiting.