Example #1
0
Developer Site: http://yunus.sourceforge.net
Demo Site:		http://yunus.sourceforge.net/eogr
Source Track:	http://eogr.googlecode.com 
Support:		http://www.ohloh.net/p/eogr

This project is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or any later version. See the GNU
Lesser General Public License for more details.
*/
@session_start();
header("Content-Type: text/html; charset=iso-8859-9");
require "conf.php";
checkLoginLang(true, true, "addComment.php");
check_source();
?>

<h2><?php 
echo $metin[290];
?>
</h2>
<div id="commAdderResult" style="visibility:hidden;"> <?php 
echo $metin[293];
?>
 </div>
<div id="commAdder" style="visibility:visible;">
  <textarea cols="50" rows="3" name="acomment" id="acomment" ></textarea>
  <input type="button" name="gonder" value="<?php 
echo $metin[30];
?>
Example #2
0
<?php

/* This is a script which generates simple PHPT test cases from the name of the function.
 * It works using the {{{ proto for the function PHP source code. The test cases that it generates 
 * are simple, however you can also give it the name of a file with PHP code in and it will turn this
 * into the right format for a PHPT test. 
 * This script will not generate expected output. 
 * Further quidance on how to use it can be found on qa.php.net, or by using the -h command line option.
 */
//read the command line input and parse it, do some basic checks to make sure that it's correct
$opt = initialise_opt();
$opt = parse_args($argv, $opt);
check_source($opt['source_loc']);
check_fname($opt['name']);
check_testcase($opt['error_gen'], $opt['basic_gen'], $opt['variation_gen']);
if ($opt['include_block'] != NULL) {
    check_file($opt['include_block']);
}
//Get a list of all the c funtions in the source tree
$all_c = array();
$c_file_count = 0;
dirlist($opt['source_loc'], $c_file_count, $all_c);
//Search the list of c functions for the function prototype, quit if can't find it or if the function is an alias
$test_info = get_loc_proto($all_c, $opt['name'], $opt['source_loc']);
if (!$test_info['found']) {
    echo "\nExiting: Unable to find implementation of {$opt['name']} in {$opt['source_loc']}\n";
    if ($test_info['falias']) {
        //But it may be aliased to something else
        echo "\n{$test_info['name']}() is an alias of {$test_info['alias']}() --- Write test cases for this instead \n";
    }
    exit;
Example #3
0
<?php

/*
the returned xml has the following structure
<results>
	<rs>foo</rs>
	<rs>bar</rs>
</results>
*/
@session_start();
include "../../conf.php";
checkLoginLang(true, true, "test2.php");
if (!check_source()) {
    die("<font id='hata'>{$metin['295']}</font>");
}
$taraDili = isset($_COOKIE["lng"]) ? $_COOKIE["lng"] : "";
if (!($taraDili == "TR" || $taraDili == "EN")) {
    $taraDili = "EN";
}
dilCevir($taraDili);
$aUsers = array();
$aID = array();
$aInfo = array();
$result = mysql_query("select realName from eo_users order by id");
for ($i = 0; $sonuc = mysql_fetch_assoc($result); $i++) {
    $aUsers[$i] = iconv("ISO-8859-9", "UTF-8", temizle(htmlentities($sonuc["realName"])));
}
$result = mysql_query("select id from eo_users order by id");
for ($i = 0; $sonuc = mysql_fetch_assoc($result); $i++) {
    $aID[$i] = iconv("ISO-8859-9", "UTF-8", temizle(htmlentities($sonuc["id"])));
}
Example #4
0
    </p> 
    
    <p class="town">  
        <input type="text" name="town" id="town" value="<?php 
if (!empty($town)) {
    echo $town;
}
?>
" />  
        <label for="town">town</label>  
    </p> 
        
    <p class="source"> 
        <select name="source"> 
            <?php 
check_source($id);
?>
        </select>
        <label for="source">Source Code</label>  
    </p> 
  
    <p>
        <input type="hidden" name="submitted" value="1" />
    </p>
    <p class="submit">  
        <input type="submit" value="Create" />
        <?php 
if ($usr_ex == 1) {
    ?>
        <input type="submit" name='Modify' value="Modify" /> 
        <?php