Lines Matching +full:ini +full:- +full:values
16 if (!isset($_REQUEST['cmd'])) return; // first time - nothing to do
18 $this->output = '';
24 $ini = $INPUT->str('ini_file','none');
25 $tpl = $INPUT->str('tpl_file','none');
26 $nosave = $INPUT->str('nosave','none');
27 $userepl = $INPUT->str('userrelpl','none');
28 $tplns = $this->getConf('default_tplns');
29 $user = $INPUT->server->str('REMOTE_USER', 'none');
31 $this->help = false;
34 $this->output = 'submit';
37 $this->output = "The -p (--page) option requires a template";
40 $cmdL = '-p ' .$_REQUEST['id'] . " -t $tplns:$tpl";
42 $cmdL .= " -u \"$userepl\" ";
44 $cmdL .= " -s admin ";
46 $cmdL .= " -n true ";
49 $cmdL .= " -c $user ";
51 $this->output = shell_exec(NEWPAGETPL_CMDL . $cmdL) ;
52 $this->help = true;
54 else if($ini != 'none') {
55 $cmdL = " -i $ini";
57 $cmdL .= " -u \"$userepl\" ";
59 $cmdL .= " -s admin ";
61 $cmdL .= " -n $nosave ";
64 $cmdL .= " -c $user ";
66 $this->output = shell_exec(NEWPAGETPL_CMDL . $cmdL) ;
67 $this->help = true;
69 $this->output = preg_replace("/\n+/","<br />", $this->output);
72 $this->help = true;
73 $this->output = shell_exec(NEWPAGETPL_CMDL .'-h') ;
74 … $this->output = preg_replace("/\n\n/","<br />", htmlentities($this->output));
75 …$this->output = preg_replace("/(-\w\,\s+--\w+)/","<span style='color:blue;'>$1</span>",$this->outp…
76 $this->output = preg_replace("/browser]]/","browser]]",$this->output);
77 $this->output = preg_replace("/OPTIONS:/","OPTIONS:<br />",$this->output);
78 $this->output = preg_replace("/https:\/\/www.dokuwiki.org\/plugin:newpagetemplate/",
80 'https://www.dokuwiki.org/plugin:newpagetemplate</a>',$this->output);
93 …;" onclick="nptpl_toggle(\'#nptpl_howto\')">' . $this->getLang('close'). '</button> ' . $this…
94 …ptln('<button style = "float:right" onclick="nptpl_toggle(\'#nptpl_howto\')">' . $this->getLang('…
97 // output hidden values to ensure dokuwiki will return back to this plugin
99 ptln(' <input type="hidden" name="page" value="' . $this->getPluginName() . '" />');
102 /*Select ini files */
103 ptln($this->getLang('select-ini') .': <select name="ini_file">');
104 $ini_files = $this->ini_files();
109 ptln($this->getLang('templ') .': <select name="tpl_file">');
110 $tpls = $this->templates();
114 ptln($this->getLang('page') .': <input type="textbox" name="id"/> ');
115 … ptln($this->getLang('userrelpl') . ': <input type="textbox" name="userrelpl"/>');
117 …ptln('<div style="line-height:2"><input type="submit" name="cmd[submit]" value="' . $this->getLan…
119 …ptln('<input type = "button" onclick=" nptpl_toggle(\'#nptpl_howto\')" value ="'. $this->getLang('…
120 …ptln('<input type="submit" name="cmd[help]" value="' . $this->getLang('btn_help') . '" /></div>')…
121 …ptln('<div>'.$this->getLang('nosave') . ' <input type="radio" checked name="nosave" value = …
122 …ptln($this->getLang('overwrite') . ' <input type="radio" name="nosave" value = "false"/> …
123 …ptln($this->getLang('existing') . ' <input type="radio" name="nosave" value="existing"/></div…
127 if($this->help) {
132 … border:1px black solid;padding:12px 12px 12px 8px;height:400px;overflow:auto;">' . $this->output);
133 …display:'. $display .';" onclick=" nptpl_toggle(\'#nptpl_output\')">'. $this->getLang('close') .'<…
141 $opt_str = "<option value = 'none'>".$this->getLang('no_selection')."</option>";
143 if (preg_match("/\.ini$/", $file)) {
150 $tplns = $this->getConf('default_tplns');
153 $opt_str = "<option value='none'>".$this->getLang('no_selection')."</option>";