function parse_options()
{
    global $argv;
    $avail_opts = array('--connection' => true, '--keep' => true, '--backup-dir' => true, '--exclude' => false);
    $args = $argv;
    array_shift($args);
    if (empty($args[0]) || strpos(implode(" ", $argv), '--help') !== false) {
        help();
    }
    $opts = array('extra' => '');
    foreach ($args as $arg) {
        $parts = explode('=', $arg);
        if (count($parts) !== 2) {
            $opts['extra'] .= ' ' . $arg;
            continue;
        }
        list($opt, $value) = $parts;
        if (isset($avail_opts[$opt])) {
            $opt = ltrim($opt, '-');
            $func_name = "parse_" . str_replace('-', '_', $opt);
            $opts[$opt] = $func_name($value);
        } else {
            $opts['extra'] .= ' ' . $arg;
        }
    }
    foreach ($avail_opts as $opt => $required) {
        if ($required && !isset($opts[ltrim($opt, '-')])) {
            error("Missing required option: {$opt}.");
        }
    }
    $opts['tmp-dir'] = sys_get_temp_dir();
    $opts += array('exclude' => array());
    return $opts;
}
Ejemplo n.º 2
0
/**
 * @fn     check
 * @param  command line parameter
 *         index type array
 * @return function object    
 */
function check($prm)
{
    try {
        if (0 === count($prm)) {
            /* cannnot find sub command */
            throw new \err\SynxErr('cannnot find sub command');
        }
        /* varsion */
        $ret_val = varsion($prm);
        if (null !== $ret_val) {
            return $ret_val;
        }
        /* help */
        $ret_val = help($prm);
        if (null !== $ret_val) {
            return $ret_val;
        }
        /* sub command */
        $ret_val = subcmd($prm);
        if (null !== $ret_val) {
            return $ret_val;
        }
        throw new \Exception();
    } catch (\Exception $e) {
        throw $e;
    }
}
Ejemplo n.º 3
0
function main()
{
    if ($_SERVER['argc'] > 1) {
        $option = $_SERVER['argv'][1];
    } else {
        help();
    }
    switch ($option) {
        case "install":
            install();
            break;
        case "uninstall":
            uninstall();
            break;
        case "newapp":
            $_SERVER['argc'] != 3 and help();
            newapp($_SERVER['argv'][2]);
            break;
        case "delapp":
            $_SERVER['argc'] != 3 and help();
            delapp($_SERVER['argv'][2]);
            break;
        case "help":
            help();
            break;
        default:
            help();
            break;
    }
}
Ejemplo n.º 4
0
function stop($m = null)
{
    if ($m) {
        message($m);
        echo PHP_EOL;
    }
    help();
    exit(1);
}
Ejemplo n.º 5
0
Archivo: help.php Proyecto: relrod/dagd
 public function render()
 {
     $routes = DaGdConfig::get('general.routemap');
     $return = '';
     $controllers_visited = array();
     foreach ($routes as $path => $controller) {
         if (in_array($controller, $controllers_visited)) {
             continue;
         }
         $return .= help($controller);
         $controllers_visited[] = $controller;
     }
     return $return;
 }
Ejemplo n.º 6
0
function executeCommand($params, $chatID)
{
    // Prepare an array of parameters without the command
    for ($i = 1; $i < count($params); $i++) {
        $parameters[$i - 1] = $params[$i];
    }
    $command = $params[0];
    // Execute command
    if ($command == "/start") {
        start($chatID);
    }
    if ($command == "/help") {
        help($chatID);
    }
    if ($command == "/tex") {
        tex($chatID, $parameters);
    }
}
 public function __construct()
 {
     $args = Console_Getopt::readPHPArgv();
     if (PEAR::isError($args)) {
         fwrite(STDERR, $args->getMessage() . "\n");
         exit(1);
     }
     // Compatibility between "php script.php" and "./script.php"
     if (realpath($_SERVER['argv'][0]) == __FILE__) {
         $this->options = Console_Getopt::getOpt($args, $this->short_format_config);
     } else {
         $this->options = Console_Getopt::getOpt2($args, $this->short_format_config);
     }
     // Check for invalid options
     if (PEAR::isError($this->options)) {
         fwrite(STDERR, $this->options->getMessage() . "\n");
         $this->help();
     }
     $this->command = array();
     // Loop through the user provided options
     foreach ($this->options[0] as $option) {
         switch ($option[0]) {
             case 'h':
                 help();
                 break;
             case 's':
                 $this->command['syntax'] = $option[1];
                 break;
             case 't':
                 $this->command['transform'] = $option[1];
                 break;
             case 'c':
                 $this->command['config'] = $option[1];
                 break;
         }
     }
     // Loop through the user provided options
     foreach ($this->options[1] as $argument) {
         $this->command['query'] .= ' ' . $argument;
     }
 }
Ejemplo n.º 8
0
 public function render()
 {
     if (server_or_default('REQUEST_METHOD') == 'POST') {
         error400('This service has been deprecated, no new pastes are being accepted.');
         return;
     } else {
         // Trying to access one?
         if (count($this->route_matches) > 1) {
             // Yes
             $this->paste_id = $this->route_matches[1];
             $this->fetch_paste();
             if ($this->paste_text) {
                 // NEVER EVER EVER EVER EVER EVER EVER remove this header() without
                 // changing the lines below it. XSS is bad. :)
                 header('Content-type: text/plain; charset=utf-8');
                 header('X-Content-Type-Options: nosniff');
                 $this->wrap_pre = false;
                 $this->escape = false;
                 $this->text_html_strip = false;
                 $this->text_content_type = false;
                 return $this->paste_text;
             } else {
                 error404();
                 return;
             }
         } else {
             if (!is_html_useragent()) {
                 // No use in showing a form for text UAs. Rather, show help text.
                 return help('DaGdPastebinController');
             }
             $content = '
       ***da.gd Pastebin***
       This feature is being deprecated and no new pastes are being accepted.
     ';
             $markup = new DaGdMarkup($content);
             $markup = $markup->render();
             echo $markup;
             return;
         }
     }
 }
Ejemplo n.º 9
0
function userinput()
{
    global $handle, $user;
    $option = 1;
    echo "Succesfully logged in.\n";
    echo "Enter h for help.\n";
    while ($option != "q\n") {
        echo "Enter an option: ";
        $option = fgets($handle);
        if ($option == "a\n") {
            newsite();
        }
        if ($option == "h\n") {
            help();
        }
        if ($option == "l\n") {
            listsite();
        }
        if ($option == "o\n") {
            openurl();
        }
        if ($option == "d\n") {
            deleteurl();
        }
        if ($option == "r\n") {
            replaceurl();
        }
        if ($option == "s\n") {
            search();
        }
        if ($option == "e\n") {
            export();
        }
        if ($option == "i\n") {
            import();
        }
    }
}
Ejemplo n.º 10
0
    ?>
    </tbody>
    </table>
</div>

<div class="btn_list01 btn_list">
    <input type="button" value="선택삭제" id="sel_option_delete">
</div>

<fieldset <?php 
    echo $super_view;
    ?>
>
    <legend>옵션 일괄 적용</legend>
    <?php 
    echo help('전체 옵션의 추가금액, 재고/통보수량 및 사용여부를 일괄 적용할 수 있습니다. 단, 체크된 수정항목만 일괄 적용됩니다.');
    ?>
    <label for="opt_com_price">추가금액</label>
    <label for="opt_com_price_chk" class="sound_only">추가금액일괄수정</label><input type="checkbox" name="opt_com_price_chk" checked="checked" value="1" id="opt_com_price_chk" class="opt_com_chk">
    <input type="text" name="opt_com_price" value="0" id="opt_com_price" class="frm_input" size="5">
    <label for="opt_com_stock">재고수량</label>
    <label for="opt_com_stock_chk" class="sound_only">재고수량일괄수정</label><input type="checkbox" name="opt_com_stock_chk" checked="checked" value="1" id="opt_com_stock_chk" class="opt_com_chk">
    <input type="text" name="opt_com_stock" value="0" id="opt_com_stock" class="frm_input" size="5">
    <label for="opt_com_noti">통보수량</label>
    <label for="opt_com_noti_chk" class="sound_only">통보수량일괄수정</label><input type="checkbox" name="opt_com_noti_chk" checked="checked" value="1" id="opt_com_noti_chk" class="opt_com_chk">
    <input type="text" name="opt_com_noti" value="0" id="opt_com_noti" class="frm_input" size="5">
    <label for="opt_com_use">사용여부</label>
    <label for="opt_com_use_chk" class="sound_only">사용여부일괄수정</label><input type="checkbox" name="opt_com_use_chk" value="1"  checked="checked" id="opt_com_use_chk" class="opt_com_chk">
    <select name="opt_com_use" id="opt_com_use">
        <option value="1">사용함</option>
        <option value="0">사용안함</option>
            $PHPCOVERAGE_HOME = $argv[++$i];
            break;
        case "-b":
            $LOCAL_PHPCOVERAGE_LOCATION = $argv[++$i];
            break;
        case "-u":
            $UNDO = true;
            break;
        case "-e":
            $EXCLUDE_FILES = explode(",", $argv[++$i]);
            break;
        case "-v":
            $VERBOSE = true;
            break;
        case "-h":
            help();
            break;
        default:
            $paths[] = $argv[$i];
            break;
    }
}
if (!is_dir($LOCAL_PHPCOVERAGE_LOCATION)) {
    error("LOCAL_PHPCOVERAGE_LOCATION [{$LOCAL_PHPCOVERAGE_LOCATION}] not found.");
}
if (empty($PHPCOVERAGE_HOME) || !is_dir($PHPCOVERAGE_HOME)) {
    $PHPCOVERAGE_HOME = __PHPCOVERAGE_HOME;
    if (empty($PHPCOVERAGE_HOME) || !is_dir($PHPCOVERAGE_HOME)) {
        error("PHPCOVERAGE_HOME does not exist. [" . $PHPCOVERAGE_HOME . "]");
    }
}
Ejemplo n.º 12
0
$maintOpt = isset($row[5]) ? $row[5] == 'Y' ? 5 : 0 : 0;
$groomOpt = isset($row[6]) ? $row[6] == 'Y' ? 6 : 0 : 0;
$boardOpt = isset($row[7]) ? $row[7] == 'Y' ? 7 : 0 : 0;
$companyOpt = isset($row[10]) ? $row[10] == 'Y' ? 10 : 0 : 0;
$docmgmtOpt = isset($row[34]) ? $row[35] == 'Y' ? 14 : 0 : 0;
$adminOpt = isset($row[35]) ? $row[35] == 'Y' ? 12 : 0 : 0;
$menuOpt = 'mo';
$logoffOpt = 11;
echo '<div class="center">Petclinic Management</div>';
echo '<form method="post">';
echo '<div class="center">';
echo '<div class="mainItem"><div title="Appointments" id="appointmentImg" class="mainImg" data-menu="' . $apptOpt . '" onclick="sendmmnav(this); return false;"></div><div>Appointments</div></div>';
echo '<div class="mainItem"><div title="Phone Messages" id="phonemsgImg" class="mainImg" data-menu="' . $phoneOpt . '" onclick="sendmmnav(this);"></div><div>Phone Messages</div></div>';
echo '<div class="mainItem"><div title="Search" id="searchImg" class="mainImg" data-menu="' . $searchOpt . '" onclick="sendmmnav(this); return false;"></div><div>Search</div></div>';
echo '<div class="mainItem"><div title="Clients" id="clientsImg" class="mainImg" data-menu="' . $clientOpt . '" onclick="sendmmnav(this); return false;"></div><div>Clients</div></div>';
echo '<div class="mainItem"><div title="Listings" id="listingsImg" class="mainImg" data-menu="' . $listOpt . '" onclick="sendmmnav(this); return false;"></div><div>Listings</div></div>';
echo '<div class="mainItem"><div title="Maintenance" id="maintImg" class="mainImg" data-menu="' . $maintOpt . '" onclick="sendmmnav(this); return false;"></div><div>Maintenance</div></div>';
echo '<div class="mainItem"><div title="Grooming" id="groomingImg" class="mainImg" data-menu="' . $groomOpt . '" onclick="sendmmnav(this); return false;"></div><div>Grooming</div></div>';
echo '<div class="mainItem"><div title="Boarding" id="boardingImg" class="mainImg" data-menu="' . $boardOpt . '" onclick="sendmmnav(this); return false;"></div><div>Boarding</div></div>';
echo '<div class="mainItem"><div title="Company" id="companyImg" class="mainImg" data-menu="' . $companyOpt . '" onclick="sendmmnav(this); return false;"></div><div>Company</div></div>';
echo '<div class="mainItem"><div title="Document Mgmt" id="docmgmtImg" class="mainImg" data-menu="' . $docmgmtOpt . '" onclick="sendmmnav(this); return false;"></div><div>Document Mgmt</div></div>';
echo '<div class="mainItem"><div title="System Admin" id="systemadminImg" class="mainImg" data-menu="' . $adminOpt . '" onclick="sendmmnav(this); return false;"></div><div>System Admin</div></div>';
echo '<div class="mainItem"><div title="Main Menu" id="menuImg" class="mainImg" data-menu="' . $menuOpt . '" onclick="sendmmnav(this); return false;"></div><div>Main Menu</div></div>';
echo '<div class="mainItem"><div title="Logoff" id="logoffImg" class="mainImg" data-menu="' . $logoffOpt . '" onclick="sendmmnav(this);"></div><div>Logoff</div></div>';
echo '</div></form>';
echo '<div><font size="+2" color="red">';
include "includes/display_errormsg.inc";
echo '</font></div>';
require_once "includes/helpline.inc";
help("mainicon.php");
require_once "includes/footer.inc";
Ejemplo n.º 13
0
                <option value="pc"<?php 
echo get_selected($nw['nw_device'], 'pc');
?>
>PC</option>
                <option value="mobile"<?php 
echo get_selected($nw['nw_device'], 'mobile');
?>
>모바일</option>
            </select>
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="nw_disable_hours">시간<strong class="sound_only"> 필수</strong></label></th>
        <td>
            <?php 
echo help("고객이 다시 보지 않음을 선택할 시 몇 시간동안 팝업레이어를 보여주지 않을지 설정합니다.");
?>
            <input type="text" name="nw_disable_hours" value="<?php 
echo $nw['nw_disable_hours'];
?>
" id="nw_disable_hours" required class="frm_input required" size="5"> 시간
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="nw_begin_time">시작일시<strong class="sound_only"> 필수</strong></label></th>
        <td>
            <input type="text" name="nw_begin_time" value="<?php 
echo $nw['nw_begin_time'];
?>
" id="nw_begin_time" required class="frm_input required" size="21" maxlength="19">
            <input type="checkbox" name="nw_begin_chk" value="<?php 
Ejemplo n.º 14
0
        <th scope="row"><label for="cf_point">문자전송 차감 포인트<strong class="sound_only"> 필수</strong></label></th>
        <td>
            <?php 
    echo help("회원이 문자를 전송할시에 차감할 포인트를 입력해주세요. 0이면 포인트를 차감하지 않습니다.");
    ?>
            <input type="text" name="cf_point" value="<?php 
    echo $sms5['cf_point'];
    ?>
" id="cf_point" required class="frm_input required" size="5">
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="cf_day_count">문자전송 하루제한 갯수<strong class="sound_only"> 필수</strong></label></th>
        <td>
            <?php 
    echo help("회원이 하루에 보낼수 있는 문자 갯수를 입력해주세요. 0이면 제한하지 않습니다.");
    ?>
            <input type="text" name="cf_day_count" value="<?php 
    echo $sms5['cf_day_count'];
    ?>
" id="cf_day_count" required class="frm_input required" size="5">
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="cf_skin">스킨 디렉토리<strong class="sound_only">필수</strong></label></th>
        <td>
            <?php 
    echo get_sms5_skin_select('skin', 'cf_skin', 'cf_skin', $sms5['cf_skin'], 'required');
    ?>
        </td>
    </tr>
Ejemplo n.º 15
0
	<tbody>
	<tr>
		<td align="center">탭라인</td>
		<td>
			<select name="wset[tab]">
				<?php 
echo apms_color_options($wset['btn1']);
?>
			</select>
		</td>
	</tr>
	<tr>
		<td align="center">썸네일</td>
		<td>
			<?php 
echo help('기본 400x540 - 미입력시 기본값 적용');
?>
			<input type="text" name="wset[thumb_w]" value="<?php 
echo $wset['thumb_w'];
?>
" class="frm_input" size="4">
			x
			<input type="text" name="wset[thumb_h]" value="<?php 
echo $wset['thumb_h'];
?>
" class="frm_input" size="4">
			px 
			&nbsp;
			<select name="wset[shadow]">
				<?php 
echo apms_shadow_options($wset['shadow']);
Ejemplo n.º 16
0
            <th scope="row"><label for="cf_icode_id">아이코드 회원아이디</label></th>
            <td>
                <?php 
echo help("아이코드에서 사용하시는 회원아이디를 입력합니다.");
?>
                <input type="text" name="cf_icode_id" value="<?php 
echo $config['cf_icode_id'];
?>
" id="cf_icode_id" class="frm_input" size="20">
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="cf_icode_pw">아이코드 비밀번호</label></th>
            <td>
                <?php 
echo help("아이코드에서 사용하시는 비밀번호를 입력합니다.");
?>
                <input type="password" name="cf_icode_pw" value="<?php 
echo $config['cf_icode_pw'];
?>
" id="cf_icode_pw" class="frm_input">
            </td>
        </tr>
        <tr>
            <th scope="row">요금제</th>
            <td>
                <input type="hidden" name="cf_icode_server_ip" value="<?php 
echo $config['cf_icode_server_ip'];
?>
">
                <?php 
Ejemplo n.º 17
0
            $id_pages++;
        }
        fim_:
        echo cores("g2") . "'-----------------------------------------------------------------------------'\n";
    }
    saida:
}
####################################################################################################
## CONFIGS
$OPT = array();
$OPT["db"] = array(0);
if (!isset($oo["banner-no"])) {
    echo banner();
}
if (isset($oo["h"]) or isset($oo["help"])) {
    echo help();
}
if (isset($oo["a"]) or isset($oo["about"])) {
    echo about();
}
if (isset($oo["s"])) {
    $OPT["find"] = $oo["s"];
} else {
    $O = 1;
}
if (isset($oo["search"])) {
    $OPT["find"] = $oo["search"];
} else {
    $O = $O + 1;
}
if (isset($oo["p"])) {
Ejemplo n.º 18
0
			<tr>
				<th scope="row">입력일시</th>
				<td colspan="2">
					<?php 
        echo help("상품을 처음 입력(등록)한 시간입니다.");
        ?>
					<?php 
        echo $it['it_time'];
        ?>
				</td>
			</tr>
			<tr>
				<th scope="row">수정일시</th>
				<td colspan="2">
					<?php 
        echo help("상품을 최종 수정한 시간입니다.");
        ?>
					<?php 
        echo $it['it_update_time'];
        ?>
				</td>
			</tr>
			<?php 
    }
    ?>
		<?php 
}
// 관리자 끝
?>
		</tbody>
        </table>
Ejemplo n.º 19
0
            echo " SELECTED ";
        }
    }
    echo " >" . $rowstate[1] . "</option>";
}
echo "\"></select>";
echo "</td></tr>";
echo "<tr><td align=\"right\"> Automatically Update Medicine Sales Price</td><td> <select name=\"autosalesprice\" size=\"2\">";
echo "<option value=\"Y\">Yes</option><option value=\"N\">No</select></td></tr>";
echo "<tr><td align=\"right\"> Time Zone</td><td> <select name=\"timezone\" size=\"4\">";
$file_handle = fopen("data/timezones.txt", "r");
while (!feof($file_handle)) {
    $line = fgets($file_handle);
    echo "<option value=\"" . $line . "\">" . $line . "</option>";
}
fclose($file_handle);
echo "</select></td></tr>";
echo "<tr><td align=\"right\">Which Procedures Database do you want to be the default &nbsp; </td><td>";
if (substr($procedures, 1, 1) == "V") {
    echo "<input type='radio' name='defproc[]' value='V'> VeNom ";
}
if (substr($procedures, 2, 1) == "P") {
    echo "<input type='radio' name='defproc[]' value='P'> Your Own Procedures </table>";
}
echo "<br>PLEASE NOTE: The Default Procedure Database will be the only Procedure to be displayed. However, you can change the Default Procedure Database any time.</tr>";
echo "</center><br><br><center><input type=\"submit\" value=\"Update Preferences\"></center></form>";
echo "<form action=\"corpmenu.php\"><br><br><center><input type=\"submit\" value=\"Return to Company Information menu\"></center</form>";
require_once "includes/helpline.inc";
help("corpdef.php");
$display = "corpdef";
require_once "includes/footer.inc";
Ejemplo n.º 20
0
        <td colspan="3"><?php 
    echo $mb['mb_ip'];
    ?>
</td>
    </tr>
    <?php 
    if ($config['cf_use_email_certify']) {
        ?>
    <tr>
        <th scope="row">인증일시</th>
        <td colspan="3">
            <?php 
        if ($mb['mb_email_certify'] == '0000-00-00 00:00:00') {
            ?>
            <?php 
            echo help('회원님이 메일을 수신할 수 없는 경우 등에 직접 인증처리를 하실 수 있습니다.');
            ?>
            <input type="checkbox" name="passive_certify" id="passive_certify">
            <label for="passive_certify">수동인증</label>
            <?php 
        } else {
            ?>
            <?php 
            echo $mb['mb_email_certify'];
            ?>
            <?php 
        }
        ?>
        </td>
    </tr>
    <?php 
	
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsSquidAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}

if(isset($_POST["ProxyPacCacheTime"])){settings_save();exit;}
if(isset($_GET["settings-js"])){settings_js();exit;}
if(isset($_GET["settings-popup"])){settings_popup();exit;}
if(isset($_POST["EmptyCache"])){EmptyCache();exit;}
if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["help"])){help();exit;}

if(isset($_GET["events"])){events();exit;}
if(isset($_GET["events-search"])){events_search();exit;}
if(isset($_GET["events-script"])){events_script_js();exit;}
if(isset($_GET["events-script-popup"])){events_script_popup();exit;}
if(isset($_GET["events-script-tester-js"])){events_script_tester_js();exit;}
if(isset($_GET["events-script-tester-popup"])){events_script_tester_popup();exit;}
if(isset($_POST["TESTER-URL"])){events_script_tester_perform();exit;}


if(isset($_POST["rebuild-tables"])){rebuild_tables();exit;}
if(isset($_GET["rules"])){rules();exit;}
if(isset($_GET["rules-search"])){rules_search();exit;}
if(isset($_GET["rule-js"])){rules_js();exit;}
if(isset($_GET["rules-tabs"])){rules_tabs();exit;}
Ejemplo n.º 22
0
        <th scope="row"><label for="co_include_head">상단 파일 경로</label></th>
        <td>
            <?php 
echo help("설정값이 없으면 기본 상단 파일을 사용합니다.");
?>
            <input type="text" name="co_include_head" value="<?php 
echo $co['co_include_head'];
?>
" id="co_include_head" class="frm_input" size="60">
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="co_include_tail">하단 파일 경로</label></th>
        <td>
            <?php 
echo help("설정값이 없으면 기본 하단 파일을 사용합니다.");
?>
            <input type="text" name="co_include_tail" value="<?php 
echo $co['co_include_tail'];
?>
" id="co_include_tail" class="frm_input" size="60">
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="co_himg">상단이미지</label></th>
        <td>
            <input type="file" name="co_himg" id="co_himg">
            <?php 
$himg = G5_DATA_PATH . '/content/' . $co['co_id'] . '_h';
if (file_exists($himg)) {
    $size = @getimagesize($himg);
Ejemplo n.º 23
0
 case '/старт':
 case '/Старт':
 case '/Start':
     start($from['id'], $from['first_name'], $from['last_name']);
     break;
 case '/stop':
 case '/end':
 case '/стоп':
 case '/Стоп':
 case '/Stop':
 case '/quit':
 case '/exit':
     stop($from['id']);
     break;
 case '/help':
     help($from['id']);
     break;
 case '/top':
     top($from['id']);
     break;
 case '/mytop':
     mytop($from['id']);
     break;
 case '/reloadquiz':
     if ($from['id'] == administrator_id) {
         global $questionlist;
         $questions = file_get_contents('quiz');
         $questions .= "\n" . file_get_contents('quiz2');
         $questionlist = explode("\n", trim($questions));
     }
     break;
Ejemplo n.º 24
0
    echo '<input type="checkbox" name="ev_himg_del" value="1" id="ev_himg_del"> <label for="ev_himg_del">삭제</label>';
    $himg_str = '<img src="' . G5_DATA_URL . '/event/' . $ev['ev_id'] . '_h" width="' . $width . '" alt="">';
}
if ($himg_str) {
    echo '<div class="banner_or_img">';
    echo $himg_str;
    echo '</div>';
}
?>
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="ev_timg">하단이미지</label></th>
        <td>
            <?php 
echo help("이벤트 페이지 하단에 업로드 한 이미지를 출력합니다.");
?>
            <input type="file" name="ev_timg" id="ev_timg">
            <?php 
$timg_str = "";
$timg = G5_DATA_PATH . '/event/' . $ev['ev_id'] . '_t';
if (file_exists($timg)) {
    $size = @getimagesize($timg);
    if ($size[0] && $size[0] > 750) {
        $width = 750;
    } else {
        $width = $size[0];
    }
    echo '<input type="checkbox" name="ev_timg_del" value="1" id="ev_timg_del"> <label for="ev_timg_del">삭제</label>';
    $timg_str = '<img src="' . G5_DATA_URL . '/event/' . $ev['ev_id'] . '_t" width="' . $width . '" alt="">';
}
Ejemplo n.º 25
0
   	<div class="footservice">
   		<div class="support">
		<?php 
$getlis = $this->mysql_model->GetList("select * from `@#_category` where `parentid`='1'");
//var_dump($getlis);
?>
			<?php 
foreach ($getlis as $articl) {
    ?>
   			<dl class="ft-newbie">
   				<dt><span><?php 
    echo $articl['name'];
    ?>
</span></dt>
				 <?php 
    echo help($articl['cateid']);
    ?>
 
   			</dl>
			
			<?php 
}
?>
   			
   			<dl class="ft-fwrx">
   				<dt><span>服务热线</span></dt>
   				<dd class="ft-fwrx-tel"><i style="display: none;">4006859800</i></dd>
   				<dd class="ft-fwrx-time">周一至周五 8:30-18:30</dd>
		
   			</dl>
   			<dl class="ft-weixin">
Ejemplo n.º 26
0
                        $res = searchCustomer(substr($n, 3, 80));
                        socket_write($client[$i], "{$res}\r\n");
                        closeClient($i);
                    } else {
                        if (testIP($n) == FALSE) {
                            // print something on the server, then echo the incoming
                            // data to all of the clients in the $client array.
                            if (DEBUG) {
                                print "From {$remote_host[$i]}:{$remote_port[$i]}, client[{$i}]: {$n}\n";
                            }
                            //socket_write($client[$i], "From client[$i]: $n\r\n");
                            $res = searchIP($n);
                            socket_write($client[$i], "{$res}\r\n");
                            closeClient($i);
                        } else {
                            $res = help();
                            $res .= "Invalid query\n";
                            socket_write($client[$i], "{$res}\r\n");
                            closeClient($i);
                        }
                    }
                }
            }
            if (--$nready <= 0) {
                break;
            }
        }
    }
}
function help()
{
Ejemplo n.º 27
0
				<?php 
echo apms_term_options($wset['term']);
?>
			</select>
			&nbsp;
			<input type="text" name="wset[dayterm]" value="<?php 
echo $wset['dayterm'];
?>
" size="4" class="frm_input"> 일전까지 자료(일자지정 설정시 적용)
		</td>
	</tr>
	<tr>
		<td align="center">회원지정</td>
		<td>
			<?php 
echo help('회원아이디를 콤마(,)로 구분해서 복수 등록 가능');
?>
			<input type="text" name="wset[mb_list]" value="<?php 
echo $wset['mb_list'];
?>
" size="46" class="frm_input">
			&nbsp;
			<label><input type="checkbox" name="wset[ex_mb]" value="1"<?php 
echo get_checked('1', $wset['ex_mb']);
?>
> 제외하기</label>
		</td>
	</tr>
	<tr>
		<td align="center">캐시사용</td>
		<td>
Ejemplo n.º 28
0
    echo $pg_anchor;
    ?>

    <div class="tbl_frm01 tbl_wrap">
        <table>
        <caption>분류 추가 기타설정</caption>
        <colgroup>
            <col class="grid_4">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <th scope="row">하위분류</th>
            <td>
                <?php 
    echo help("이 분류의 코드가 10 이라면 10 으로 시작하는 하위분류의 설정값을 이 분류와 동일하게 설정합니다.\n<strong>이 작업은 실행 후 복구할 수 없습니다.</strong>");
    ?>
                <label for="sub_category">이 분류의 하위분류 설정을, 이 분류와 동일하게 일괄수정</label>
                <input type="checkbox" name="sub_category" value="1" id="sub_category" onclick="if (this.checked) if (confirm('이 분류에 속한 하위 분류의 속성을 똑같이 변경합니다.\n\n이 작업은 되돌릴 방법이 없습니다.\n\n그래도 변경하시겠습니까?')) return ; this.checked = false;">
            </td>
        </tr>
        </tbody>
        </table>
    </div>
</section>
<?php 
    echo $frm_submit;
}
?>

</form>
Ejemplo n.º 29
0
 function tooltiphelp()
 {
     $strreturn = '<link rel="stylesheet" type="text/css" href="/js/tooltip/balloontip.css">';
     $strreturn .= '<script language="javascript" src="/js/tooltip/balloontip.js"></script>';
     foreach ($this->array_data_value as $key => $value) {
         $strreturn .= '<div id="' . $value . '_help" class="balloonstyle">' . help($value) . '</div>';
     }
     echo $strreturn;
 }
Ejemplo n.º 30
0
 function parse_helplink($topic)
 {
     help($topic);
 }