• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_app_info函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_app_info函数的典型用法代码示例。如果您正苦于以下问题:PHP get_app_info函数的具体用法?PHP get_app_info怎么用?PHP get_app_info使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_app_info函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: get_saved_data

function get_saved_data($val)
{
    global $mysqli;
    $q = 'SELECT ' . $val . ' FROM campaigns WHERE id = "' . mysqli_real_escape_string($mysqli, $_GET['c']) . '" AND userID = ' . get_app_info('main_userID');
    $r = mysqli_query($mysqli, $q);
    if ($r && mysqli_num_rows($r) > 0) {
        while ($row = mysqli_fetch_array($r)) {
            $value = stripslashes($row[$val]);
            //if title
            if ($val == 'title') {
                //tags for subject
                preg_match_all('/\\[([a-zA-Z0-9!#%^&*()+=$@._-|\\/?<>~`"\'\\s]+),\\s*fallback=/i', $value, $matches_var, PREG_PATTERN_ORDER);
                preg_match_all('/,\\s*fallback=([a-zA-Z0-9!,#%^&*()+=$@._-|\\/?<>~`"\'\\s]*)\\]/i', $value, $matches_val, PREG_PATTERN_ORDER);
                preg_match_all('/(\\[[a-zA-Z0-9!#%^&*()+=$@._-|\\/?<>~`"\'\\s]+,\\s*fallback=[a-zA-Z0-9!,#%^&*()+=$@._-|\\/?<>~`"\'\\s]*\\])/i', $value, $matches_all, PREG_PATTERN_ORDER);
                $matches_var = $matches_var[1];
                $matches_val = $matches_val[1];
                $matches_all = $matches_all[1];
                for ($i = 0; $i < count($matches_var); $i++) {
                    $field = $matches_var[$i];
                    $fallback = $matches_val[$i];
                    $tag = $matches_all[$i];
                    //for each match, replace tag with fallback
                    $value = str_replace($tag, $fallback, $value);
                }
                $value = str_replace('[Email]', get_saved_data('from_email'), $value);
            }
            return $value;
        }
    }
}
开发者ID:narareddy,项目名称:sendy,代码行数:30,代码来源:main.php


示例2: pagination

function pagination($limit)
{
    global $p;
    $curpage = $p;
    $next_page_num = 0;
    $prev_page_num = 0;
    $total_campaigns = totals($_GET['i']);
    $total_pages = @ceil($total_campaigns / $limit);
    if ($total_campaigns > $limit) {
        if ($curpage >= 2) {
            $next_page_num = $curpage + 1;
            $prev_page_num = $curpage - 1;
        } else {
            $next_page_num = 2;
        }
        echo '<div class="btn-group" id="pagination">';
        //Prev btn
        if ($curpage >= 2) {
            if ($prev_page_num == 1) {
                echo '<button class="btn" onclick="window.location=\'' . get_app_info('path') . '/templates?i=' . get_app_info('app') . '\'"><span class="icon icon icon-arrow-left"></span></button>';
            } else {
                echo '<button class="btn" onclick="window.location=\'' . get_app_info('path') . '/templates?i=' . get_app_info('app') . '&p=' . $prev_page_num . '\'"><span class="icon icon icon-arrow-left"></span></button>';
            }
        } else {
            echo '<button class="btn disabled"><span class="icon icon icon-arrow-left"></span></button>';
        }
        //Next btn
        if ($curpage == $total_pages) {
            echo '<button class="btn disabled"><span class="icon icon icon-arrow-right"></span></button>';
        } else {
            echo '<button class="btn" onclick="window.location=\'' . get_app_info('path') . '/templates?i=' . get_app_info('app') . '&p=' . $next_page_num . '\'"><span class="icon icon icon-arrow-right"></span></button>';
        }
        echo '</div>';
    }
}
开发者ID:5haman,项目名称:Sendy,代码行数:35,代码来源:main.php


示例3: listsDisabledForUser

function listsDisabledForUser()
{
    if (listsDisabledForBrand() && function_exists('get_app_info')) {
        if (get_app_info('is_sub_user')) {
            return 1;
        } else {
            return 0;
        }
    }
}
开发者ID:userexec,项目名称:Sendy-DisableLists,代码行数:10,代码来源:check-disableLists.php


示例4: get_subscribers_count

function get_subscribers_count($lid)
{
    global $mysqli;
    //Check if the list has a pending CSV for importing via cron
    $server_path_array = explode('list.php', $_SERVER['SCRIPT_FILENAME']);
    $server_path = $server_path_array[0];
    if (file_exists($server_path . 'uploads/csvs') && ($handle = opendir($server_path . 'uploads/csvs'))) {
        while (false !== ($file = readdir($handle))) {
            if ($file != '.' && $file != '..' && $file != '.DS_Store' && $file != '.svn') {
                $file_array = explode('-', $file);
                if (!empty($file_array)) {
                    if (str_replace('.csv', '', $file_array[1]) == $lid) {
                        return _('Checking..') . '
					    		<script type="text/javascript">
					    			$(document).ready(function() {
					    			
					    				list_interval = setInterval(function(){get_list_count(' . $lid . ')}, 2000);
						    			
						    			function get_list_count(lid)
						    			{
						    				clearInterval(list_interval);
							    			$.post("includes/list/progress.php", { list_id: lid, user_id: ' . get_app_info('main_userID') . ' },
											  function(data) {
											      if(data)
											      {
											      	if(data.indexOf("%)") != -1)
											      		list_interval = setInterval(function(){get_list_count(' . $lid . ')}, 2000);
											      		
											      	$("#progress' . $lid . '").html(data);
											      }
											      else
											      {
											      	$("#progress' . $lid . '").html("' . _('Error retrieving count') . '");
											      }
											  }
											);
										}
										
						    		});
					    		</script>';
                    }
                }
            }
        }
        closedir($handle);
    }
    //if not, just return the subscriber count
    $q = 'SELECT COUNT(*) FROM subscribers WHERE list = ' . $lid . ' AND unsubscribed = 0 AND bounced = 0 AND complaint = 0 AND confirmed = 1';
    $r = mysqli_query($mysqli, $q);
    if ($r) {
        while ($row = mysqli_fetch_array($r)) {
            return $row['COUNT(*)'];
        }
    }
}
开发者ID:narareddy,项目名称:sendy,代码行数:55,代码来源:main.php


示例5: get_app_data

function get_app_data($val)
{
    global $mysqli;
    $q = 'SELECT ' . $val . ' FROM apps WHERE id = "' . get_app_info('app') . '" AND userID = ' . get_app_info('main_userID');
    $r = mysqli_query($mysqli, $q);
    if ($r && mysqli_num_rows($r) > 0) {
        while ($row = mysqli_fetch_array($r)) {
            return $row[$val];
        }
    }
}
开发者ID:narareddy,项目名称:sendy,代码行数:11,代码来源:main.php


示例6: get_paypal

function get_paypal()
{
    global $mysqli;
    $q = 'SELECT paypal FROM login WHERE id = ' . get_app_info('main_userID');
    $r = mysqli_query($mysqli, $q);
    if ($r && mysqli_num_rows($r) > 0) {
        while ($row = mysqli_fetch_array($r)) {
            return $row['paypal'];
        }
    }
}
开发者ID:narareddy,项目名称:sendy,代码行数:11,代码来源:main.php


示例7: get_saved_data

function get_saved_data($val)
{
    global $mysqli;
    $q = 'SELECT ' . $val . ' FROM apps WHERE id = "' . mysqli_real_escape_string($mysqli, $_GET['i']) . '" AND userID = ' . get_app_info('userID');
    $r = mysqli_query($mysqli, $q);
    if ($r && mysqli_num_rows($r) > 0) {
        while ($row = mysqli_fetch_array($r)) {
            return $row[$val];
        }
    }
}
开发者ID:5haman,项目名称:Sendy,代码行数:11,代码来源:main.php


示例8: _

								      if(data)
								      {
								      	$("#' . $id . '").fadeOut();
								      }
								      else
								      {
								      	alert("' . _('Sorry, unable to delete. Please try again later!') . '");
								      }
								  }
								);
							}
							});
						    </script>
			  			</tr>';
    }
} else {
    echo '
				  	<tr>
				  		<td><a href="' . get_app_info('path') . '/new-brand" title="">' . _('Add your first brand!') . '</a></td>
				  		<td></td>
				  		<td></td>
				  	</tr>
				  	';
}
?>
		  </tbody>
		</table>
    </div>   
</div>
<?php 
include 'includes/footer.php';
开发者ID:narareddy,项目名称:sendy,代码行数:31,代码来源:index.php


示例9: get_app_info

	        	<?php 
    if (get_app_info('version_latest') > get_app_info('version')) {
        ?>
		        <a href="http://sendy.co/get-updated?l=<?php 
        echo get_app_info('license');
        ?>
" target="_blank" style="text-decoration:none;"><span class="label label-info">new version: <?php 
        echo get_app_info('version_latest');
        ?>
 available</span></a>
		        <?php 
    }
    ?>
	        </p>
	        <?php 
} else {
    ?>
	        <p>&copy; <?php 
    echo date("Y", time());
    ?>
 <?php 
    echo get_app_info('company');
    ?>
</p>
	        <?php 
}
?>
	      </footer>
	    </div>
	</body>
</html>
开发者ID:narareddy,项目名称:sendy,代码行数:31,代码来源:footer.php


示例10: get_app_info

<?php

include '../functions.php';
include '../login/auth.php';
/********************************/
$userID = get_app_info('main_userID');
$app = $_POST['app'];
$listID = mysqli_real_escape_string($mysqli, $_POST['list_id']);
$line = $_POST['line'];
/********************************/
//if user did not enter anything
if ($line == '') {
    //show error msg
    header("Location: " . get_app_info('path') . '/unsubscribe-from-list?i=' . $app . '&l=' . $listID . '&e=2');
    exit;
}
$line_array = explode("\r\n", $line);
for ($i = 0; $i < count($line_array); $i++) {
    $q = 'UPDATE subscribers SET unsubscribed = 1 WHERE email = "' . $line_array[$i] . '" AND list = ' . $listID . ' AND userID = ' . $userID;
    $r = mysqli_query($mysqli, $q);
    if ($r) {
    }
}
header("Location: " . get_app_info('path') . '/subscribers?i=' . $app . '&l=' . $listID);
开发者ID:narareddy,项目名称:sendy,代码行数:24,代码来源:line-unsubscribe.php


示例11: header

<?php

include_once 'includes/functions.php';
if (unlog_session()) {
    header('Location: ' . get_app_info('path') . '/login');
}
开发者ID:5haman,项目名称:Sendy,代码行数:6,代码来源:logout.php


示例12: _

?>
/settings"><?php 
echo _('Settings');
?>
</a>.</div><br/>
	    
	    <div class="well">
	    	<h3><?php 
echo _('Client login details');
?>
</h3><br/>
	    	<p><strong><?php 
echo _('Login URL');
?>
</strong>: <?php 
echo get_app_info('path');
?>
</p>
		    <p><strong><?php 
echo _('Login email');
?>
</strong>: <span id="login-email"><?php 
echo _('Not set yet');
?>
 (<?php 
echo _('uses');
?>
 <em><?php 
echo _('From email');
?>
</em>)</span></p>
开发者ID:narareddy,项目名称:sendy,代码行数:31,代码来源:new-brand.php


示例13: _

</a>
    </div>
  </div>
<script type="text/javascript">
	$(".subscriber-info").click(function(){
		s_id = $(this).data("id");
		$("#subscriber-text").html("<?php 
echo _('Fetching');
?>
..");
		
		$.post("<?php 
echo get_app_info('path');
?>
/includes/subscribers/subscriber-info.php", { id: s_id, app:<?php 
echo get_app_info('app');
?>
 },
		  function(data) {
		      if(data)
		      {
		      	$("#subscriber-text").html(data);
		      }
		      else
		      {
		      	$("#subscriber-text").html("<?php 
echo _('Oops, there was an error getting the subscriber\'s info. Please try again later.');
?>
");
		      }
		  }
开发者ID:narareddy,项目名称:sendy,代码行数:31,代码来源:report.php


示例14: get_app_info

?>
"></i> All templates</a></li>
        <li <?php 
if (currentPage() == 'templates.php' && $_GET['do'] == "create") {
    echo 'class="active"';
}
?>
><a href="<?php 
echo get_app_info('path') . '/templates.php?i=' . $_GET['i'] . '&do=create';
?>
"><i class="icon-edit  <?php 
if (currentPage() == 'templates.php' && $_GET['do'] == "create") {
    echo 'icon-white';
}
?>
"></i> Create template</a></li>
        <li <?php 
if (currentPage() == 'templates.php' && $_GET['do'] == "campaign") {
    echo 'class="active"';
}
?>
><a href="<?php 
echo get_app_info('path') . '/templates.php?i=' . $_GET['i'] . '&do=campaign';
?>
"><i class="icon-edit  <?php 
if (currentPage() == 'templates.php' && $_GET['do'] == "campaign") {
    echo 'icon-white';
}
?>
"></i> New template campaign</a></li>
</ul>
开发者ID:bogdanhruban,项目名称:Templates-for-Sendy,代码行数:31,代码来源:sidebar.php


示例15: mysqli_real_escape_string

<?php

include '../functions.php';
include '../login/auth.php';
$subscriber_id = mysqli_real_escape_string($mysqli, $_POST['subscriber_id']);
$q = 'DELETE FROM subscribers WHERE id = ' . $subscriber_id . ' AND userID = ' . get_app_info('main_userID');
$r = mysqli_query($mysqli, $q);
if ($r) {
    echo true;
}
开发者ID:5haman,项目名称:Sendy,代码行数:10,代码来源:delete.php


示例16: mysqli_query

    }
} else {
    //Check if 'From email's bounces/complaints 'Notifications' are set previously
    $q = 'SELECT bounce_setup, complaint_setup FROM campaigns WHERE from_email = "' . $from_email . '" AND bounce_setup=1 AND complaint_setup=1';
    $r = mysqli_query($mysqli, $q);
    if ($r && mysqli_num_rows($r) > 0) {
        $bounce_setup = 1;
        $complaint_setup = 1;
    }
    //Insert into campaigns
    $q = 'INSERT INTO campaigns (userID, app, from_name, from_email, reply_to, title, label, plain_text, html_text, query_string, wysiwyg, bounce_setup, complaint_setup) VALUES (' . get_app_info('main_userID') . ', ' . get_app_info('app') . ', "' . $from_name . '", "' . $from_email . '", "' . $reply_to . '", "' . $subject . '", "' . $campaign_title . '", "' . $plain . '", "' . addslashes($html) . '", "' . $query_string . '", ' . $wysiwyg . ', ' . $bounce_setup . ', ' . $complaint_setup . ')';
    $r = mysqli_query($mysqli, $q);
    if ($r) {
        //get the campaign id from the new insert
        $campaign_id = mysqli_insert_id($mysqli);
        //Upload attachment(s)
        if ($file[0] != '') {
            if (!file_exists("../../uploads/attachments/{$campaign_id}")) {
                mkdir("../../uploads/attachments/{$campaign_id}", 0777);
            }
            for ($i = 0; $i < count($file); $i++) {
                move_uploaded_file($file[$i], "../../uploads/attachments/{$campaign_id}/" . $filename[$i]);
            }
        }
        if ($w_clicked) {
            header('Location: ' . get_app_info('path') . '/edit?i=' . get_app_info('app') . '&c=' . $campaign_id);
        } else {
            header('Location: ' . get_app_info('path') . '/send-to?i=' . get_app_info('app') . '&c=' . $campaign_id);
        }
    }
}
开发者ID:5haman,项目名称:Sendy,代码行数:31,代码来源:save-campaign.php


示例17: _

}
?>
"></i> <?php 
echo _('View all lists');
?>
</a></li>
    </ul>
    <ul class="nav nav-list">
        <li class="nav-header"><?php 
echo _('Reports');
?>
</li>
        <li <?php 
if (currentPage() == 'report.php' || currentPage() == 'reports.php') {
    echo 'class="active"';
}
?>
><a href="<?php 
echo get_app_info('path') . '/reports?i=' . $app;
?>
"><i class="icon-zoom-in  <?php 
if (currentPage() == 'report.php' || currentPage() == 'reports.php') {
    echo 'icon-white';
}
?>
"></i> <?php 
echo _('See reports');
?>
</a></li>
    </ul>
</div>
开发者ID:5haman,项目名称:Sendy,代码行数:31,代码来源:sidebar.php


示例18: mysqli_query

//------------------------------------------------------//
//                      FUNCTIONS                       //
//------------------------------------------------------//
//get brand's data
$q = 'SELECT from_name, from_email, reply_to FROM apps WHERE id = ' . $app_id;
$r = mysqli_query($mysqli, $q);
if ($r && mysqli_num_rows($r) > 0) {
    while ($row = mysqli_fetch_array($r)) {
        $from_name = $row['from_name'];
        $from_email = $row['from_email'];
        $reply_to = $row['reply_to'];
    }
}
//get campaign's data
$q2 = 'SELECT title, plain_text, html_text FROM campaigns WHERE id = ' . $campaign_id;
$r2 = mysqli_query($mysqli, $q2);
if ($r2) {
    while ($row = mysqli_fetch_array($r2)) {
        $title = stripslashes($row['title']);
        $plain_text = stripslashes($row['plain_text']);
        $html_text = stripslashes($row['html_text']);
    }
}
//Insert into database
$q3 = 'INSERT INTO campaigns (userID, app, from_name, from_email, reply_to, title, plain_text, html_text) VALUES (' . get_app_info('main_userID') . ', ' . $app_id . ', "' . $from_name . '", "' . $from_email . '", "' . $reply_to . '", "' . addslashes($title) . '", "' . addslashes($plain_text) . '", "' . addslashes($html_text) . '")';
$r3 = mysqli_query($mysqli, $q3);
if ($r3) {
    header("Location: " . get_app_info('path') . "/app?i=" . $app_id);
} else {
    echo 'Error duplicating.';
}
开发者ID:narareddy,项目名称:sendy,代码行数:31,代码来源:duplicate.php


示例19: get_app_info

 if (get_app_info('s3_key') != '' && get_app_info('s3_secret') != '') {
     $mail->IsAmazonSES();
     $mail->AddAmazonSESKey(get_app_info('s3_key'), get_app_info('s3_secret'));
 } else {
     if ($smtp_host != '' && $smtp_port != '' && $smtp_username != '' && $smtp_password != '') {
         $mail->IsSMTP();
         $mail->SMTPDebug = 0;
         $mail->SMTPAuth = true;
         $mail->SMTPSecure = $smtp_ssl;
         $mail->Host = $smtp_host;
         $mail->Port = $smtp_port;
         $mail->Username = $smtp_username;
         $mail->Password = $smtp_password;
     }
 }
 $mail->Timezone = get_app_info('timezone');
 $mail->CharSet = "UTF-8";
 $mail->From = $from_email;
 $mail->FromName = $from_name;
 $mail->Subject = $title2;
 $mail->AltBody = $plain_text2;
 $mail->MsgHTML($html_text2);
 $mail->AddAddress($test_email_array[$i], '');
 $mail->AddReplyTo($reply_to, $from_name);
 if (file_exists('../../uploads/attachments/' . $campaign_id)) {
     foreach (glob('../../uploads/attachments/' . $campaign_id . '/*') as $attachment) {
         if (file_exists($attachment)) {
             $mail->AddAttachment($attachment);
         }
     }
 }
开发者ID:narareddy,项目名称:sendy,代码行数:31,代码来源:test-send.php


示例20: get_app_info

<?php

include '../functions.php';
include '../login/auth.php';
/********************************/
$table = 'subscribers';
// table to export
$userID = get_app_info('main_userID');
$ares_id = mysqli_real_escape_string($mysqli, $_GET['c']);
$action = $_GET['a'];
$additional_query = '';
/********************************/
if ($action == 'clicks') {
    //file name
    $filename = 'clicked.csv';
    $additional_query = 'AND unsubscribed = 0 AND bounced = 0 AND complaint = 0';
    //get
    $clicks_join = '';
    $clicks_array = array();
    $clicks_unique = 0;
    $q = 'SELECT * FROM links WHERE ares_emails_id = ' . $ares_id;
    $r = mysqli_query($mysqli, $q);
    if ($r && mysqli_num_rows($r) > 0) {
        while ($row = mysqli_fetch_array($r)) {
            $id = stripslashes($row['id']);
            $clicks = stripslashes($row['clicks']);
            if ($clicks != '') {
                $clicks_join .= $clicks . ',';
            }
        }
    }
开发者ID:5haman,项目名称:Sendy,代码行数:31,代码来源:export-csv.php



注:本文中的get_app_info函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_approved_comments函数代码示例发布时间:2022-05-15
下一篇:
PHP get_app_data函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap