From f705e67557123062f323041ab8d1e071bd49282d Mon Sep 17 00:00:00 2001 From: Erik Dubbelboer Date: Fri, 22 Jul 2011 14:44:48 +0200 Subject: [PATCH] replace print with echo (small bit faster) --- config.inc.php | 6 +++--- delete.php | 4 ++-- edit.php | 34 +++++++++++++++++----------------- export.php | 12 ++++++------ header.inc.php | 6 +++--- index.php | 20 ++++++++++---------- info.php | 6 +++--- overview.php | 4 ++-- rename.php | 12 ++++++------ ttl.php | 8 ++++---- view.php | 48 ++++++++++++++++++++++++------------------------ 11 files changed, 80 insertions(+), 80 deletions(-) diff --git a/config.inc.php b/config.inc.php index 237e29f..5a5a9be 100644 --- a/config.inc.php +++ b/config.inc.php @@ -3,12 +3,12 @@ $config = array( 'servers' => array( array( - 'name' => 'localhost', // Optional name. + 'name' => 'local server', // Optional name. 'host' => '127.0.0.1', 'port' => 6379, // Optional authentication. - //'auth' => 'redispasswordhere' // Warning: The password is send in plain-text to the redis server. + //'auth' => 'redispasswordhere' // Warning: The password is sent in plain-text to the redis server. ), /*array( @@ -40,4 +40,4 @@ 'maxkeylen' => 100 ); -?> \ No newline at end of file +?> diff --git a/delete.php b/delete.php index 8e4a079..931b023 100644 --- a/delete.php +++ b/delete.php @@ -47,7 +47,7 @@ ?> \ No newline at end of file +?> diff --git a/edit.php b/edit.php index 5eec746..237d513 100644 --- a/edit.php +++ b/edit.php @@ -68,7 +68,7 @@ ?> -

-
+

+

-> +>

-> +>

-> empty to append, -1 to prepend +> empty to append, -1 to prepend

-> +>

- - + +

- +

- +

@@ -179,4 +179,4 @@ require 'footer.inc.php'; -?> \ No newline at end of file +?> diff --git a/export.php b/export.php index 969d47f..01f8541 100644 --- a/export.php +++ b/export.php @@ -37,7 +37,7 @@ function export_redis($key) { $size = $redis->lSize($key); for ($i = 0; $i < $size; ++$i) { - echo 'LPUSH "',addslashes($key),'" "',addslashes($redis->lGet($key, $i)),'"',PHP_EOL; + echo 'RPUSH "',addslashes($key),'" "',addslashes($redis->lGet($key, $i)),'"',PHP_EOL; } } @@ -173,15 +173,15 @@ function export_json($key) { require 'header.inc.php'; ?> -

Export

+

Export

-
+

@@ -194,4 +194,4 @@ function export_json($key) { require 'footer.inc.php'; -?> \ No newline at end of file +?> diff --git a/header.inc.php b/header.inc.php index 753f099..996cee0 100644 --- a/header.inc.php +++ b/header.inc.php @@ -18,10 +18,10 @@ -<?php print format_html($server['host'])?> - phpRedisAdmin +<?php echo format_html($server['host'])?> - phpRedisAdmin - + @@ -29,7 +29,7 @@ - + diff --git a/index.php b/index.php index d7a84c1..3f2bcdf 100644 --- a/index.php +++ b/index.php @@ -110,13 +110,13 @@ function print_namespace($item, $name, $fullkey, $islast) { ?> - > - () + > + () -
  • ()
    +
  • ()
      @@ -185,4 +185,4 @@ function print_namespace($item, $name, $fullkey, $islast) { require 'footer.inc.php'; -?> \ No newline at end of file +?> diff --git a/info.php b/info.php index 09abce9..69c5338 100644 --- a/info.php +++ b/info.php @@ -31,7 +31,7 @@

      -Reset usage statistics +Reset usage statistics

      @@ -45,7 +45,7 @@ } ?> - >
      + >
      \ No newline at end of file +?> diff --git a/overview.php b/overview.php index fdbcf82..d3454e7 100644 --- a/overview.php +++ b/overview.php @@ -40,7 +40,7 @@ $server) { ?>
      -

      +

      @@ -69,4 +69,4 @@ require 'footer.inc.php'; -?> \ No newline at end of file +?> diff --git a/rename.php b/rename.php index f816d74..8264f1b 100644 --- a/rename.php +++ b/rename.php @@ -18,7 +18,7 @@ ?> -

      Edit Name of

      - +

      Edit Name of

      + - +

      -> +>

      @@ -53,4 +53,4 @@ require 'footer.inc.php'; -?> \ No newline at end of file +?> diff --git a/ttl.php b/ttl.php index 56084ac..fd9752d 100644 --- a/ttl.php +++ b/ttl.php @@ -26,16 +26,16 @@ ?>

      Edit TTL

      - +

      -> +>

      -> (-1 to remove the TTL) +> (-1 to remove the TTL)

      @@ -47,4 +47,4 @@ require 'footer.inc.php'; -?> \ No newline at end of file +?> diff --git a/view.php b/view.php index 9703aee..3cbcf2a 100644 --- a/view.php +++ b/view.php @@ -28,11 +28,11 @@ ?> -

      +

      - [R] - [X] - [E] + [R] + [X] + [E]

      - + - + - + - +
      Type:
      Type:
      TTL:
      [E]
      TTL:
      [E]
      Encoding:
      Encoding:
      Size:
      Size:
      @@ -103,10 +103,10 @@ if ($type == 'string') { ?> -
      - [E] +
      + [E]
      - [X] + [X]
      @@ -121,10 +121,10 @@
      Key
      Value
       
       
      $value) { ?> - >
      - [E] + >
      + [E]
      - [X] + [X]
      @@ -141,10 +141,10 @@ lGet($_GET['key'], $i); ?> - >
      - [E] + >
      + [E]
      - [X] + [X]
      @@ -160,10 +160,10 @@
      Value
       
       
      - >
      - [E] + >
      + [E]
      - [X] + [X]
      @@ -180,9 +180,9 @@ zScore($_GET['key'], $value); ?> - >
      - [E] - [X] + >
      + [E] + [X]
      @@ -195,7 +195,7 @@

      - Add another value + Add another value