Exemplo n.º 1
0
/**
 * Get ALL the info about an addon, you will need addon id
 */
function addonInfo()
{
    global $url_params;
    if (isset($url_params['id'])) {
        $addon = new Addon();
        $addon_data = $addon->getAddonData($url_params['id']);
        printJson(json_encode($addon_data));
    }
}
						<p class="info_text">
							<?php 
            echo $lang['dashboard_err_12'];
            ?>
						</p>
					</div>
				</div>
			</div>
			<?php 
            exit;
        }
        $viewType = 2;
        //update mode
        $addon = new Addon();
        //create an instance of the addondashboard class
        $data = $addon->getAddonData($_GET['id']);
        $screenshot_array = $data['image_links'];
    } else {
        $viewType = 0;
        //submit mode
    }
} else {
    $viewType = 0;
    //submit mode
}
/**
 * If Dashboard submission is turned off show error message
 */
if ($viewType == 0 && !$setting['addonSubmissionOn']) {
    ?>
	<div class="main_content_wrapper col_2_1">