Changeset 1aceb9c in github for program/include/rcube_output_html.php
- Timestamp:
- Apr 16, 2012 7:02:21 AM (13 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo
- Children:
- be98dfc2
- Parents:
- 4372e92
- File:
-
- 1 edited
-
program/include/rcube_output_html.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_output_html.php
r0c25968 r1aceb9c 75 75 76 76 // add common javascripts 77 $this->add_script('var '. JS_OBJECT_NAME.' = new rcube_webmail();', 'head_top');77 $this->add_script('var '.rcmail::JS_OBJECT_NAME.' = new rcube_webmail();', 'head_top'); 78 78 79 79 // don't wait for page onload. Call init at the bottom of the page (delayed) 80 $this->add_script( JS_OBJECT_NAME.'.init();', 'docready');80 $this->add_script(rcmail::JS_OBJECT_NAME.'.init();', 'docready'); 81 81 82 82 $this->scripts_path = 'program/js/'; … … 184 184 public function add_gui_object($obj, $id) 185 185 { 186 $this->add_script( JS_OBJECT_NAME.".gui_object('$obj', '$id');");186 $this->add_script(rcmail::JS_OBJECT_NAME.".gui_object('$obj', '$id');"); 187 187 } 188 188 … … 458 458 $out = ''; 459 459 if (!$this->framed && !empty($this->js_env)) { 460 $out .= JS_OBJECT_NAME . '.set_env('.self::json_serialize($this->js_env).");\n";460 $out .= rcmail::JS_OBJECT_NAME . '.set_env('.self::json_serialize($this->js_env).");\n"; 461 461 } 462 462 if (!empty($this->js_labels)) { … … 471 471 $out .= sprintf( 472 472 "%s.%s(%s);\n", 473 ($parent ? 'if(window.parent && parent.'. JS_OBJECT_NAME.') parent.' : '') .JS_OBJECT_NAME,473 ($parent ? 'if(window.parent && parent.'.rcmail::JS_OBJECT_NAME.') parent.' : '') . rcmail::JS_OBJECT_NAME, 474 474 preg_replace('/^parent\./', '', $method), 475 475 implode(',', $args) … … 645 645 "\$this->app->config->get('\\1',get_boolean('\\3'))", 646 646 "\$this->env['\\1']", 647 "rcube_u i::get_input_value('\\1', rcube_ui::INPUT_GPC)",647 "rcube_utils::get_input_value('\\1', rcube_utils::INPUT_GPC)", 648 648 "\$_COOKIE['\\1']", 649 649 "\$this->browser->{'\\1'}", … … 813 813 break; 814 814 case 'request': 815 $value = rcube_u i::get_input_value($name, rcube_ui::INPUT_GPC);815 $value = rcube_utils::get_input_value($name, rcube_utils::INPUT_GPC); 816 816 break; 817 817 case 'session': … … 918 918 $this->add_script(sprintf( 919 919 "%s.register_button('%s', '%s', '%s', '%s', '%s', '%s');", 920 JS_OBJECT_NAME,920 rcmail::JS_OBJECT_NAME, 921 921 $command, 922 922 $attrib['id'], … … 930 930 if (in_array($attrib['command'], rcmail::$main_tasks)) { 931 931 $attrib['href'] = $this->app->url(array('task' => $attrib['command'])); 932 $attrib['onclick'] = sprintf("%s.command('switch-task','%s');return false", JS_OBJECT_NAME, $attrib['command']);932 $attrib['onclick'] = sprintf("%s.command('switch-task','%s');return false", rcmail::JS_OBJECT_NAME, $attrib['command']); 933 933 } 934 934 else if ($attrib['task'] && in_array($attrib['task'], rcmail::$main_tasks)) { … … 954 954 $attrib['onclick'] = sprintf( 955 955 "return %s.command('%s','%s',this)", 956 JS_OBJECT_NAME,956 rcmail::JS_OBJECT_NAME, 957 957 $command, 958 958 $attrib['prop'] … … 1329 1329 } 1330 1330 1331 return rcube_ idn_to_utf8($username);1331 return rcube_utils::idn_to_utf8($username); 1332 1332 } 1333 1333 … … 1348 1348 1349 1349 // save original url 1350 $url = rcube_u i::get_input_value('_url', rcube_ui::INPUT_POST);1350 $url = rcube_utils::get_input_value('_url', rcube_utils::INPUT_POST); 1351 1351 if (empty($url) && !preg_match('/_(task|action)=logout/', $_SERVER['QUERY_STRING'])) 1352 1352 $url = $_SERVER['QUERY_STRING']; … … 1398 1398 1399 1399 $table->add('title', html::label('rcmloginuser', html::quote($this->app->gettext('username')))); 1400 $table->add('input', $input_user->show(rcube_u i::get_input_value('_user', rcube_ui::INPUT_GPC)));1400 $table->add('input', $input_user->show(rcube_utils::get_input_value('_user', rcube_utils::INPUT_GPC))); 1401 1401 1402 1402 $table->add('title', html::label('rcmloginpwd', html::quote($this->app->gettext('password')))); … … 1406 1406 if (is_object($input_host) && !$hide_host) { 1407 1407 $table->add('title', html::label('rcmloginhost', html::quote($this->app->gettext('server')))); 1408 $table->add('input', $input_host->show(rcube_u i::get_input_value('_host', rcube_ui::INPUT_GPC)));1408 $table->add('input', $input_host->show(rcube_utils::get_input_value('_host', rcube_utils::INPUT_GPC))); 1409 1409 } 1410 1410 … … 1482 1482 $out = $this->form_tag(array( 1483 1483 'name' => "rcmqsearchform", 1484 'onsubmit' => JS_OBJECT_NAME . ".command('search');return false;",1484 'onsubmit' => rcmail::JS_OBJECT_NAME . ".command('search');return false;", 1485 1485 'style' => "display:inline"), 1486 1486 $out);
Note: See TracChangeset
for help on using the changeset viewer.
