예제 #1
0
 * All rights reserved                             *
 * **************************************************
 * @author iZAP Team "<*****@*****.**>"
 * @link http://www.izap.in/
 * @version 1.0
 * Under this agreement, No one has rights to sell this script further.
 * For more information. Contact "Tarun Jangra<*****@*****.**>"
 * For discussion about corresponding plugins, visit http://www.pluginlotto.com/pg/forums/
 * Follow us on http://facebook.com/PluginLotto and http://twitter.com/PluginLotto
 */
$challenge = $vars['entity'];
?>
<!--this is the form for 'Send to a friend'-->
<div class="izapcontentWrapper">
  <form action="<?php 
echo IzapBase::getFormAction(send_to_friend, GLOBAL_IZAP_CONTEST_PLUGIN);
?>
" method="post">
    <?php 
echo elgg_view('input/securitytoken');
echo elgg_view('input/hidden', array('name' => 'attributes[guid]', 'value' => $challenge->guid));
?>

    <p>
      <label for="name" ><?php 
echo elgg_echo('izap-contest:your_name');
?>
</label>
<?php 
echo elgg_view('input/text', array('name' => 'attributes[_name]', 'value' => $vars['postArray']['name'], 'id' => "name"));
?>
예제 #2
0
                echo '<li>';
                echo '<a href = "' . $val['url'] . '" target ="_blank">' . $val['title'] . '</a> ';
                echo '(' . elgg_get_friendly_time($val['time_created']) . ')';
                echo '</li>';
            }
            echo '</ol><br />';
        }
        echo '</li>';
    }
    ?>
      </ol>
      <div align = "center">
          <?php 
    echo elgg_view('output/confirmlink', array('href' => IzapBase::getFormAction('not_spammer', GLOBAL_IZAP_ELGG_BRIDGE) . '?guid=' . $user->guid, 'text' => elgg_echo('izap-antispam:not_spammer')));
    ?>
        - 
          <?php 
    echo elgg_view('output/confirmlink', array('href' => IzapBase::getFormAction('submit_spammer', GLOBAL_IZAP_ELGG_BRIDGE) . '?guid=' . $user->guid, 'text' => elgg_echo('izap-antispam:submit_spam'), 'confirm' => sprintf(elgg_echo('izap-antispam:confirm'), $user->name . '(' . $user->email . ')')));
    ?>
        - <a href="#" class="izap_close_stats" title="<?php 
    echo $user->guid;
    ?>
">Close</a>
      </div>
    </div>
  </div>
</div>
  <?php 
} else {
    echo elgg_echo('izap-antispam:wrong_entity');
}
예제 #3
0
파일: start.php 프로젝트: socialweb/PiGo
function izap_unmark_spammer($hook, $type, $return, $params)
{
    $user = $params['entity'];
    if (elgg_instanceof($user, 'user')) {
        $item = new ElggMenuItem('unmark_spammer', elgg_echo('izap:bridge:unmark_spammer'), elgg_add_action_tokens_to_url(IzapBase::getFormAction('not_spammer', GLOBAL_IZAP_ELGG_BRIDGE) . '?guid=' . $user->guid));
        $item->setSection('admin');
        $return[] = $item;
    }
    return $return;
}
예제 #4
0
파일: view.php 프로젝트: socialweb/PiGo
 * For discussion about corresponding plugins, visit http://www.pluginlotto.com/forum/
 * Follow us on http://facebook.com/PluginLotto and http://twitter.com/PluginLotto
 */
if (!$vars['entity']) {
    return;
}
?>
<div><div>
  <?php 
if (elgg_get_logged_in_user_guid() != $vars['entity']->owner_guid) {
    echo elgg_view('page/elements/title', array('title' => ' <span class="quiz_answer">' . elgg_echo('izap-contest:quiz:quiz', array((int) $_SESSION['challenge'][$vars['entity']->container_guid]['qc'] + 1)) . '</span>' . $vars['entity']->title . ' ?'));
}
?>
</div>
  <form action="<?php 
echo IzapBase::getFormAction('answer', GLOBAL_IZAP_CONTEST_PLUGIN);
?>
" method="post">
<?php 
echo elgg_view('input/securitytoken');
?>
   <p>
</p> 
<p>
</p>  
	<div class="quiz_answer">
    <?php 
echo elgg_echo('izap-contest:quiz:answers');
?>
    <p>
</p></div><div style="margin:10px;">
예제 #5
0
파일: new_edit.php 프로젝트: socialweb/PiGo
 * *************************************************
 * @author iZAP Team "<*****@*****.**>"
 * @link http://www.izap.in/
 * Under this agreement, No one has rights to sell this script further.
 * For more information. Contact "Tarun Jangra<*****@*****.**>"
 * For discussion about corresponding plugins, visit http://www.pluginlotto.com/forum/
 * Follow us on http://facebook.com/PluginLotto and http://twitter.com/PluginLotto
 */
// this is the form for adding/editing a new challenge
IzapBase::loadLib(array('plugin' => GLOBAL_IZAP_CONTEST_PLUGIN, 'lib' => 'izap-contest'));
$challenge_entity = izap_array_to_object(isset($vars['challenge_entity']) ? $vars['challenge_entity'] : array('access_id' => defined('ACCESS_DEFAULT') ? ACCESS_DEFAULT : 1));
?>

<div>
  <form action="<?php 
echo IzapBase::getFormAction('challenge_save', GLOBAL_IZAP_CONTEST_PLUGIN);
?>
" method="post" enctype="multipart/form-data">
    <?php 
echo elgg_view('input/securitytoken');
?>
    <p>
      <label>
        <?php 
echo elgg_echo('izap-contest:title');
?>
        <?php 
echo elgg_view("input/text", array("name" => "attributes[_title]", "value" => $challenge_entity->title));
?>
      </label>
    </p>
예제 #6
0
파일: new_edit.php 프로젝트: socialweb/PiGo
    if (elgg_is_active_plugin(GLOBAL_IZAP_VIDEOS_PLUGIN)) {
        ?>
          <li class="<?php 
        echo $vars['mtype'] == 'video' ? 'elgg-state-selected' : '';
        ?>
"><a href="?type=video">Video</a></li>
        <?php 
    }
    ?>
      </ul>
    </div>
  <?php 
}
?>
  <form action="<?php 
echo IzapBase::getFormAction('quiz_save', GLOBAL_IZAP_CONTEST_PLUGIN);
?>
" method="post" enctype="multipart/form-data">
    <?php 
echo elgg_view('input/securitytoken');
?>
    <p>
      <label>
        <?php 
echo elgg_echo('izap-contest:quiz:title');
?>
        <?php 
echo elgg_view("input/longtext", array("name" => "attributes[_title]", "value" => $quiz_entity->title));
?>
      </label>
    </p>
예제 #7
0
파일: js.php 프로젝트: socialweb/PiGo
<?php

/* * ************************************************
 * PluginLotto.com                                 *
 * Copyrights (c) 2005-2010. iZAP                  *
 * All rights reserved                             *
 * **************************************************
 * @author iZAP Team "<*****@*****.**>"
 * @link http://www.izap.in/
 * Under this agreement, No one has rights to sell this script further.
 * For more information. Contact "Tarun Jangra<*****@*****.**>"
 * For discussion about corresponding plugins, visit http://www.pluginlotto.com/pg/forums/
 * Follow us on http://facebook.com/PluginLotto and http://twitter.com/PluginLotto
 */
?>
$('.izap_suspected_spammer').live('click',function(){
  elgg.action("<?php 
echo IzapBase::getFormAction('mark_spammer', GLOBAL_IZAP_ELGG_BRIDGE);
?>
",
    {data: {guid:$(this).attr('guid')}}
  );
});